
Wed, 02/27/2013 - 12:57
Forums:
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
Wed, 05/15/2013 - 14:40
I have the same question.
Fri, 05/17/2013 - 07: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.
Fri, 05/17/2013 - 10:55
Hi WuXuan,
Have you tried my attached .step file? Does it work for you?
Thanks.
Ding
Fri, 05/24/2013 - 13:27
i try now, the same problem, the names are assembly1 and part1.
Mon, 05/20/2013 - 16:58
Dear Ding,
Indeed the document structure doesn't contain names of the mentioned solids.
Probably it may be a bug.
I suggest you to register the issue in Mantis Bugtracker which is available via the Collaborative portal - http://dev.opencascade.org/index.php?q=home/get_involved.
If the problem is critical for you, you may contact us via the Contact Form http://www.opencascade.org/about/contacts/.
Regards