Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by MahPLM

  1. MahPLM

    StartCommand and SaveAs

    Hello Tiago Figueiredo, I'am trying to save a part generated by the command "Generate CATPart from Product" . Any help please ?
  2. MahPLM

    StartCommand and SaveAs

    Hello, I'm trying to write a macro to do "Generate CATPart from Product" then save the new part: **** current_prod.Selection.Add current_prod.Product ' CATIA.StartCommand "Generate CATPart from Product" CATIA.RefreshDisplay = True For i = 1 To 100 SendKeys "{DELETE}" Next i SendKeys...
  3. MahPLM

    Hide / Show in a product

    Hi Ferdo, Thanks for your answer. Unfortunately, i make a mistake : I want to hide parts with name different to "Test" : If (oInProduct.PartNumber = "Test") Then Selection1.VisProperties.SetShow catVisPropertyShowAttr Else Selection1.VisProperties.SetShow catVisPropertyNoShowAttr Thanks...
  4. MahPLM

    Hide / Show in a product

    Hello, I have an assembly , who contains sub-assemblies and parts. I try to create a macro to hide all parts or products named "Test" , but it not works: Sub CATMain() Dim oProdDoc As ProductDocument Set oProdDoc = CATIA.ActiveDocument Dim oRootProd As Product Set oRootProd =...
  5. MahPLM

    Querying for a List of Electrical Objects

    Hello AtomicNico, Thank you for your rapid response. I try to write something like this : Imports ProductStructureTypeLib Imports ElectricalTypeLib Public Class Form1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim CATIA As INFITF.Application...
  6. MahPLM

    Querying for a List of Electrical Objects

    Hello, I try writing a macro (and also a vb.net project)to extract electrical objects information from a Catia assembly (wires: number, length...)using the ElectricalTypeLib library. But I can't access to any ElectricalObject. Any help please ? Thanks.

Part and Inventory Search