theoldlr
Automotive
- Nov 19, 2012
- 3
I have a CATPart template that consists of a number of empty geometrical sets that all begin with a smart number followed by their name. The process that I'm attempting to automate is to import .stl point clouds (already named with the same smart numbers) and then move them to their appropriate geometrical set. The workflow I have working so far is to create a new "temp" geometrical set at the end of the tree, import the .stl files. To import I used the command
and let the user choose the stls to be imported. That is all well and good, but I cannot determine a way to get the names (and the smart number) of the .stl files either before or after import.
If i look at the the HybridShapes property of the temp geometrical set in the VB watch window then it shows a count of 0, yet still shows an ItemX for each stl all of which are "Empty" despite the files being fully intact. I have even found a way to select them programmatically, but grabbing the names from something like
results in "CATIASelection1"
Can anyone offer insight?
Thank you in advance!
Code:
CATIA.StartCommand ("Import")
If i look at the the HybridShapes property of the temp geometrical set in the VB watch window then it shows a count of 0, yet still shows an ItemX for each stl all of which are "Empty" despite the files being fully intact. I have even found a way to select them programmatically, but grabbing the names from something like
Code:
Selection.item(x).name
Can anyone offer insight?
Thank you in advance!