Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Options

Exports & attributes

brooke_spreenbrooke_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

Comments

  • Options
    caden_armstrongcaden_armstrong Member, User Group Leader Posts: 127 ✭✭✭
    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.
  • Options
    brooke_spreenbrooke_spreen Member, Developers Posts: 115 ✭✭✭
    Hmm intriguing.... thank you for the feedback!
    Design Engineer | Anerdgy AG
Sign In or Register to comment.