Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / Get names from STEP file.

Get names from STEP file.

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

WuXuan 2013/05/24 11:27
i try now, the same problem, the names are assembly1 and part1.
Forum supervisor 2013/05/20 14: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
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map