Well, after a little deeper diver into the Object Reference it looks like class name and Type definition have some discrepancies.
Dim oPLMX As PLMXEngine
Set oPLMX = CATIA.GetItem("PLMXEngine")
First hurdle cleared.
Does anyone have any experience with the PowerBy Integration VBA Libraries in CATIA V5? I have not been able to find any documentation on how to INstantiate the ENOIAPLMXEngine Class. Working in V5-6R2022 but haven't yet checked in Documentation for later releases.
Are placing the BOM on the Drawing "MainView" / "Background View" or as an element inside the view to which it is linked?
In the past I have noticed that the BOM will not get triggered as out of date unless its parent is a View Containing linked geometry. You could also try typing: c:Force...
In the material library browser, from which you select the material to apply it, be sure to remove the 'Link to File' option in the bottom left corner. This will break the link between the material object and the Catalog from which it was applied. The Material object and its properties will...
Do you have a 'Relations' set and Parameters set included in your PowerCopy? You might try adding a GeoSet with a Parameter Set and Releations set to the PC Definition.
--Doug
CATStart.exe is a utility that launches a specified environment for the Application [CNEXT.exe (CATIA), DMU.exe (DMU Viewer), etc].
You can see an example of these be inspecting the launch strings of the default Launch Icons produced by the installations of each product.
Search the V5Automation.chm Help file in your CATIA Installation path for DrawingComponent. It has a method called GetModifiableObject() the will retrieve the Modifiable objects in the 2dComponent.
Best way to do this in my experience is to manually create the search in the 'Find' command under the Advanced tab, save the Search as a Favorite Search, then edit the Favorite search to obtain the search you created manually.
In the Part Design Workbench, Edit Menu > 'Scan or Define In Work Object' should accomplish what you are looking to do. You can scan by Structure or Update sequence.
Once a CATPart Electrical Component is defined as a specific Electrical Datatype it is locked into that type (Single Insert Connector, Multi Insert connector, etc). To my knowledge, there is not a way to make a modification between connector types. The component will need to be recreated in a...
The generic steps are below.
Create the Text in Drafting workbench
Save the CATDrawing As DXF
Open DXF file
Copy geometry representing the Text
Switch to Part Document window
Create or modify a Sketch
Paste the Geometric Elements representing the text
--Doug