For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

STEP Issues

Carsten Zerbst's picture

Hello All,

we would like to create a STEP file containing geometry, assembly structure and metadata, but have some issues.

#1 Names sometimes wrong

We create the assembly structure for the like this


TopoDS_Shape plateBody =...
TDF_Label plateLabel = XCAFDoc_DocumentTool::ShapeTool(stepDocument->Main())->NewShape();
XCAFDoc_DocumentTool::ShapeTool(stepDocument->Main())->SetShape(plateLabel, plateBody);
TDataStd_Name::Set(plateLabel, plateName.c_str());

TDF_Label panelLabel = XCAFDoc_DocumentTool::ShapeTool(stepDocument->Main())->NewShape();
TDataStd_Name::Set(panelLabel, panelName.c_str());

TDF_Label component =XCAFDoc_DocumentTool::ShapeTool(stepDocument->Main())->AddComponent(panelLabel, plateLabel, location0);


The resulting STEP file does not contain the allways the correct name, but looks like this

#39686 = PRODUCT('Open CASCADE STEP translator 6.9',  'Open CASCADE STEP translator 6.9','',(#39687));

Does someone has an idea, when this default value is used instead of the given name ?

#2 Direct Access to STEP Entities

Is is possible to directly access the STEP entity, e.g. to change values in Product, ProductDefinition or NextAssembly or add new categorization ?

Thank you, Carsten