Err maybe I should pay more attention to the original post. What I listed will give you what the part in question references not what refers to the part.
S
You can use ug_edit_part_names with the -list option to display all external references in a part. This includes assembly information, WAVE data and IPE.
S
Unfortunately I am not able to release what has been written. I can though give a brief description of how it works. We load all of the existing numbers from the first level parts into a dictionary (key = part-number, value = item-number), check to see it has been previously numbered and ask to...
That is pretty much impossible we have the same problem we do not want the parts of a subassembly numbered we want that subassembly as a whole numbered. Stated another way we want the first level children of an assembly numbered and nothing else. In the model we have given up on CATIA's default...
I've been trying to calculate the mass and center of gravity for assemblies and I’ve been running into a problem with different output from oProduct.Analyze vs. oProduct.GetTechnologicalObject("Inertia"). Both have a .mass and a method of obtaining the COG but the values are not always equal. In...
Unfortunately everyone’s says PSN briefly before displaying the visualization for an assembly and it might well for a part but the windows flashes by to fast for me to tell.
What version of CATIA are you running, V and SP. Do you get an error message if so what does it say? It’s hard to...
I forgot to mention a few things in using VBA you first need to add the reference to the Microsoft Scripting Runtime to be able to create a Dictionary. Then the declaration is rather simple;
Dim PARTS As Dictionary
Set PARTS = New Dictionary
The nice thing about a Dictionary is the...
Sorry I must have missed that part, so you are looking at recusivly parsing the entire assembly tree, not just the first level children but all levels. Sometimes it may also be productive to use a Dictionary instead of an array this would allow you to search without the need to loop through each...
One comment on the "For Each" statement. You don't need to use the i=1 and i=1+1 before and following the loop. all you need to do is use the "Product" declared in the "for Each" statement.
selection1.Clear
For PARTSval = LBound(PARTS) To UBound(PARTS)
For Each Product In products1
If...
Here is the code to select a product object;
Dim oSelection As Selection
Set oSelection = CATIA.ActiveDocument.Selection
oSelection.Clear
oSelection.Add oRoot_Product
If you don't first clear the current selection it adds to the current selection, i.e. if you had one part selected in an...
I was wondering if you found the list of parameters for the GetTechnologicalObject? I need it for access a different property but have'nt had a whole lot of luck.
Thanks,
Shawn