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...
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...
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 =...
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...
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.