| Get names from STEP file. |
 |
| Cauchy Ding |
2013/02/27 09:57 |
Hi guys,
I have a STEP file which contains two solid shapes. One is named as "test", another named as "Boss-Extrude1". In SolidWorks2010, it can read all solid shapes' name. But in my OCC6.5.3, I can only read the compound shape "Assemb1" and compound shape "Part1".
The hierarchy of the step file seems:
Compound(Assemb1) -> Compound(Part1) --> Solid 1 and Solid 2. No matter how I try, I can't get two solids names. I am using STEPCAFControl_Reader.
Any suggestion is welcome. Thanks.
Ding
|
|
You have to be logged in to download the attached file
|
 |
| |
 | | jeholl |
2013/05/15 12:40 |
| I have the same question. |
 |
| |
 | | WuXuan |
2013/05/17 05:55 |
use STEPCAFControl_Reader to Transfer Handle(TDocStd_Document).
then (XCAFDoc_ShapeTool) myAssembly = XCAFDoc_DocumentTool::ShapeTool(doc->Main());
myAssembly->GetShapes(Labels);
and get a label from labels, use aLabel.FindAttribute(TDataStd_Name::GetID(), N) to get name. |
 |
| |
 | | Cauchy Ding |
2013/05/17 08:55 |
Hi WuXuan,
Have you tried my attached .step file? Does it work for you?
Thanks.
Ding
|
 |
| | | |