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
Shape factory
Shape gallery
What's new
System requirements
Download Center
Public license
Getting started
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
Home / Developer Corner / Forums / Usage issues / Naming data in IGES Export

Naming data in IGES Export

Naming data in IGES Export
Philippe Carret 2013/04/09 20:55
Dear OCC members,

We are trying to export names of our entities in IGES export and we are not fully successful (enclosed is a 3d viewer screenshot) .
It works only for the first entity.
We don't know how to set names of hierarchy at level 0 and level 1

|_ level 0
| level 1 (only this one "JOUE_DRO" is OK)
| level 1
|_ level 0
| level 1
| level 1
| level 1


Here is our code :

     TopoDS_Shape ithShape;
     CString ithName;
     Handle(IGESData_IGESEntity) ithEntity;
//     Handle(IGESData_NameEntity) ithNamedEntity;
//     Handle(IGESData_LevelListEntity) ithLevelListEntity;

     for (Standard_Integer iShape = 1; iShape <= NbShape; iShape++)
          ithShape = aSequenceOfShape.Value(iShape);

          Handle(IGESData_IGESModel) aModel = _igesWriter.Model();
          Handle(IGESData_IGESEntity) aModelEntity = aModel->Entity(iShape);
//          Handle(IGESData_LevelListEntity) aLevelListEntity = aModelEntity->LevelList();

          ithName.Format("MM%d", iShape);
          aModelEntity->SetLabel(new TCollection_HAsciiString(Standard_CString((LPCSTR) ithName)));


I've tried to read IGESCAFControl_Writer.
Any code or any indication is welcome.

Thanks for any help,

You have to be logged in to download the attached file
Latest news
  • Open CASCADE Technology 6.7.1 is available for download!
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!

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