elmundo777
Automotive
- Jun 23, 2020
- 93
Hello
I have a button on the vb.net form.
with its help I try to generate AllCatPart
But nothing happens, but some report menu is called up.
The code I use is below:
Perhaps something should be highlighted or transferred? Please tell me how to implement this correctly.
I have a button on the vb.net form.
with its help I try to generate AllCatPart
But nothing happens, but some report menu is called up.
The code I use is below:
Code:
Dim actdoc As ProductDocument
actdoc = Catia.ActiveDocument
Dim MySel As Selection
MySel = Catia.ActiveDocument.Selection
MySel.Clear()
MySel.Add(actdoc.Product)
'CATIA.RefreshDisplay = True
Catia.StartCommand("Generate CATPart from Product...")
Perhaps something should be highlighted or transferred? Please tell me how to implement this correctly.