CATIA V5 - CATScript - Identify Order of Geometric Sets and Bodies in CATPart
CATIA V5 - CATScript - Identify Order of Geometric Sets and Bodies in CATPart
(OP)
Hi,
I have created a script to export the names of Geometric Sets and Bodies in the specification tree from a CATPart to a text file. Unfortunately, because of the mix of the 2 CATScript types (Bodies and HybridBodies) I have to export first the names of all of the Geometric Sets/Hybrid Bodies and then the names of the Part Bodies.
Ideally, I would like to export so that the order of the names in the text file matches the order in the CATPart but I can't find a property to identify where an object is located in the tree (first, second, third, etc.)
Does such a property exist?
Thanks,
Jeff
I have created a script to export the names of Geometric Sets and Bodies in the specification tree from a CATPart to a text file. Unfortunately, because of the mix of the 2 CATScript types (Bodies and HybridBodies) I have to export first the names of all of the Geometric Sets/Hybrid Bodies and then the names of the Part Bodies.
Ideally, I would like to export so that the order of the names in the text file matches the order in the CATPart but I can't find a property to identify where an object is located in the tree (first, second, third, etc.)
Does such a property exist?
Thanks,
Jeff
RE: CATIA V5 - CATScript - Identify Order of Geometric Sets and Bodies in CATPart
Maybe you can try another approach...do a single selection for all what you need to extract and after, get the selection item(i) names in a loop.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: CATIA V5 - CATScript - Identify Order of Geometric Sets and Bodies in CATPart
I tried it and it worked!
Jeff
RE: CATIA V5 - CATScript - Identify Order of Geometric Sets and Bodies in CATPart
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU