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.

Export parametric relationships to text files

gregory_gundersengregory_gundersen Member Posts: 2
I would like to export the parametric relationships in an Onshape model to a text file. For example, if I had a simple model with a cuboid A and sphere B and a parametric constraint such that the width of A is the radius of B, I want that data in plain text: A and B have such and such coordinates and dimensions, and they share a single constraint. Is this possible?

Comments

  • philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    Short answer is yes
    Long answer is you would need to write a custom feature (featurescript) that would output these as text to the console
    Philip Thomas - Onshape
  • lucas_green366lucas_green366 Member Posts: 2

    I'm brand new to OnShape and I was wondering if there would be any pushback to me attempting to write a way to export an openscad file from OnShape, preserving variables and constraints if that is possible?

    I expect that a combination of FeatureScript, API calls and a browser extension might be able to pull it off, but I don't want to go down this road if it's an unwelcome idea.

Sign In or Register to comment.