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

Can Part Studio dimensions be added to custom properties?

Is it possible to leverage dimensions used in Part Studio into custom properties? I would imagine this would best be done by creating a variable in Part Studio and then referencing the variable in the Custom Property. This would allow a Stock Size field in custom properties to be brought over to the drawings via custom properties as well as dynamically update in custom properties as the part is updated.

Answers

  • Options
    philip_thomasphilip_thomas Member, Moderator, Onshape Employees, Developers Posts: 1,381
    edited February 2019
    Vincent - the short answer is YES!
    It is absolutely possible to set variables (defined or measured) to a custom property.

    The long answer is that you will need a custom feature.
    Here is a link to a public document that shows various examples of setting the values of custom properties.
    https://cad.onshape.com/documents/0ce17b6f297c6baae1ea4f31/w/bf0718cfe1b17361423f8bb1/e/b40512a94183a47f3ddf7d4a

    If you have some programming chops, here are the steps.
    1) Use the custom feature (measure extended) to create a variable that is the measured value of something
    2) modify the above custom feature to allow the selection of variables AND modify the id of the custom property (each one has a unique id)
    3) Use the custom feature to pick a geometric entity to measure and have that value assigned to your custom property.

    (long term, you would likely make a custom feature that would do both in one go)

    If you do not have programming chops, you could paste this into the FeatureScript forum so see if anyone wants to make this for you. Note that this may already exist and i am just unaware of that - in that case, someone may just be able to point you to it.

    :)
    Philip Thomas - Onshape
Sign In or Register to comment.