Exports & attributes
brooke_spreen
Member, Developers Posts: 115 ✭✭✭
My team is currently looking for ways to convert Onshape models into IFC files. There are a few third-party options out there for converting the geometry, but in all cases we need a way to specify which IFC attributes should be attached to which parts.
In theory, it would be convenient to use Onshape's `setAttribute` functionality to mark up the model as needed. The question is, is there any way that these attributes could be preserved on export? Is it even possible to preserve attributes in Parasolid or STP files?
Any insight would be appreciated!
Design Engineer | Anerdgy AG
Tagged:
0
Comments
-
As far as I know there is no way to preserve attributes on export. (You can test this by creating a part with attributes, exporting the file and looking at the file in notepad, no attributes show up ).
One solution would be to use the API,
You could:
- Export the file as STEP
- Read the attributes by using the EvaluteFeaturescript API endpoint with a function that does the 'getAttribute'
- Using an IFC library (such as xbim) combine the STEP and attributes into a single IFC file.2 -
Hmm intriguing.... thank you for the feedback!
Design Engineer | Anerdgy AG0
