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

How Can I Map a Configuration Variable to a Custom Property

Kyler_WalkerKyler_Walker Member Posts: 183 PRO
I have parts that have a configuration variable defining their lengths.  I need to get their lengths into OpenBOM.  I'm pretty sure that I can get the lengths into OpenBOM if I send OpenBOM a custom property containing the length.  I just don't know how to link my "Length" custom property to a configuration variable.  How might I do this?  When setting up the custom property, I noticed that there was a button that said "Select computed part property function."  This button allowed my to select a featurescript.  I assume this allows me to write a featurescript to define the value of the configured property.  What would this look like?  Can I directly write to my "Length" property in the featurescript?  Does the featurescript need to return a value that will then get assigned to my "Length" property?  How do I reference the featurescript ID associated with a configuration variable?  This needs to work generally for all my parts across many part studios that have configuration variables determining their lengths.

Thanks

Answers

Sign In or Register to comment.