Export of STEP files: adding metadata such as materials

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
tobycz
Posts: 28
Joined: Tue Jul 26, 2016 2:35 am

Export of STEP files: adding metadata such as materials

Post by tobycz »

Hi,

I have a question which is probably a bit off-topic since the STEP file export seems to be managed entirely by OCC.

However, is it possible to add some additional metadata such as materials to the exported STEP file?
I know that I can add some information (company, author) for STEP file export in the FreeCAD preferences.

Cheers,
Tobi

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/Australia (en_AU)
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Export of STEP files: adding metadata such as materials

Post by easyw-fc »

STEP format supports many extra data:
STEP AP203E2 and AP214IS Classes
The AP203E2 and AP214IS STEP classes support the exchange of the following non-geometric data between the Creo application and STEP:
• Material properties of name and density
• The geometric and assembly validation properties
• Datum features such as points, planes, axes, and coordinate systems
• The user-defined parameters for the part and assembly models, components, and entities such as quilts, surfaces, edges, and curves
• Annotations that include Product Manufacturing Information (PMI)
• The import of STEP groups
http://support.ptc.com/help/creo/creo_p ... asses.html

Those should be fully supported by OCC, but ATM are not translated by FC.

https://www.opencascade.com/content/rea ... nformation

A FC thread:
https://forum.freecadweb.org/viewtopic. ... 2&start=10
tobycz
Posts: 28
Joined: Tue Jul 26, 2016 2:35 am

Re: Export of STEP files: adding metadata such as materials

Post by tobycz »

Thanks, easyw-fc!

Your links look like a good starting point!
I was only searching for "STEP files and metadata".
But of course "STEP files and annotations" makes a lot of sense.

Cheers,
Tobi
keithsloan52
Veteran
Posts: 2764
Joined: Mon Feb 27, 2012 5:31 pm

Re: Export of STEP files: adding metadata such as materials

Post by keithsloan52 »

easyw-fc wrote: Sun Sep 15, 2019 9:58 am STEP format supports many extra data:
STEP AP203E2 and AP214IS Classes
The AP203E2 and AP214IS STEP classes support the exchange of the following non-geometric data between the Creo application and STEP:
• Material properties of name and density
• The geometric and assembly validation properties
• Datum features such as points, planes, axes, and coordinate systems
• The user-defined parameters for the part and assembly models, components, and entities such as quilts, surfaces, edges, and curves
• Annotations that include Product Manufacturing Information (PMI)
• The import of STEP groups
http://support.ptc.com/help/creo/creo_p ... asses.html

Those should be fully supported by OCC, but ATM are not translated by FC.

https://www.opencascade.com/content/rea ... nformation

A FC thread:
https://forum.freecadweb.org/viewtopic. ... 2&start=10
With my GDML workbench each GDML object has a material. I would like to have the material included in an exported step file.
I am also having problems preserving structure when exporting stand alone. https://forum.freecadweb.org/viewtopic.php?f=22&t=44454

Where can I find more info on directly coding an export via pythonocc?
Post Reply