I would like to open a step file on Rhino7 to get the part name, how can I find it?
I attach a sample data. I can’t find the part name “SG1” anywhere in Rhino.
Is there any way to do this, including the grasshopper and script method?
Since the available design data defines part names as “Product” (which I think is very common), I consider whether it is possible to get the part name defined in the product of the step file.
Sorry for the late reply.
Thank you for your kind consideration.
However, as you are concerned, if there is more than one part, the result will be incorrect.
This is because the order in which they are imported in Import3dm does not always match. sg1-c5-214_V2.stp (89.7 KB) GetStepName_V2.gh (21.3 KB)
Thank you for your reply.
Yes. This is when opened in Fusion360, there are 4 part names (SG1,SG2,SG3,SG4). These are not the same as the names of the Brep.
@11159
Thank you all for your contributions. However, I am sorry to say this, but in general, the STEP file does not make sense in the order of its lines.
For example, the attached file would give the wrong result. sg1-c5-214_V3.stp (89.7 KB)
@Macuso
Thank you for your consideration.
However, I apologize for the lack of clarity, but the correct name is SG1-4, starting from the one closest to the origin.
This is because the order of the breps read in pcImportFrom and the order of the names read as text are different.
I’m sorry I can’t help you because I don’t know what exactly you want to do.
Considering what you probably want to do, I would suggest that you consider creating a macro in CATIA or using a plug-in that can read CATIA files into Rhino without using STEP.
I apologize for the lack of clarity, as I can only provide sample data.
What I want to do is very simple: How to import the step file with part names, not in a way that depends on the sample data. But apparently it is very difficult with Rhino7.
Special thanks to @11159 Masaki for contributing so much.