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 / Looking entities indexes and names from a step import

Looking entities indexes and names from a step import

Looking entities indexes and names from a step import
Berron 2007/10/31 09:01
Hello,

I need to build a tree from the TopoDS_Shape loaded from a step import.
For each leave, I need to get the entities types (done with childShape.ShapeType()), and the index and name of the entity that was stored within the step file, as, for example:

...
#5=PRODUCT('Product1','','',(#2)) ;
#54=PRODUCT('Part1','','',(#2)) ;
#229=PRODUCT('Part2','','',(#2)) ;
...

with, for example:
index = "#5"
name = "'Product1'"

I am wondering if those fields are mapped into an OpenCASCADE structure when importing step files, and how to access them.

Thank you very much in advance,

Nicolas Berron.
Francesco Argese 2012/02/08 14:28
Hello,

I'm searching the same thing.

Is there a manner to retrieve name of a shape through XDE? I have loaded a .stp file but I am able only to retrieve label names.

I have read in the xde.pdf document (page 12) that

"Name is implemented and used as a TDataStd_Name, which can be attached to any label. Before proceeding, consider that:
In IGES, every entity can have a name with an optional numeric part called a Subscript Label. For example, "MYCURVE" is a name, and "MYCURVE(60)" is a name with a Subscript Label.
In STEP, there are two levels: Part Names and Entity Names:
Part Names are attached to "main shapes" such as parts and assemblies. These Part Names are specifically supported by XDE.
Entity Names can be attached to every Geometric Entity. This option is rarely used, as it tends to overload the exploitation of the data structure. Only some specific cases justify using this option: for example, when the sending system can really ensure the stability of an entity name after each STEP writing."

How is possible to use this last option? I have not found it neither on the documentation nor on the forum.

Thanks in advance,
Francesco
Francesco Argese 2012/02/08 14:40
I have resolved in this manner:

1) I retrieve label from shape
2) I retrieve name from label at point one

Francesco
Hennig 2012/11/22 19:29
Hallo Francesco,

do you know if you get only the names from entities which are TopoDS or also from entities which are geom based, like a CARTESIAN_POINT. Is it possible to give an example from your code?

I am faced with the same problem...
Thanks in advance
Paul
 
 
Latest news
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!

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