Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
custom properties
Jonvollmer
Member Posts: 2 PRO
Sorry if this has been asked before.. new to Onshape. I found a feature script Measure Value #1188 that I would like to link the result to a custom property. Can this be done and if so, could you please explain how to do it. Thanks, Jon
0
Answers
-
I believe it can be done, but might involve some editing of the featurescript. I don't know how to find Measure Value. Measure Distance assigns a variable and you can use that variable in OnShape.
What kind of property are you trying to assign? A part property?Creating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com0 -
You can use set custom property then use the variable created by measure value.
https://cad.onshape.com/documents/11eb3fc7b01f4997e5318a6f/w/49252498f47d8a706baf2f54/e/675f33b3c1587cc12c20e6fc
0 -
Thank you for the replies, I managed to get the above working except I can't seem to get the result to appear in my custom property. I have created one for Cut Length that I would like to transfer to my BOM.0
-
Sorry, looks like I had a bug, It should be fixed now0
-
I'm trying to understand what you presented John. I see the feature scripts and they run, but where do I as a user get access to the properties you set here in this example?Creating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com0 -
@alan_baljeu - those are custom properties that can only be created with a Professional account
Senior Director, Technical Services, EMEA0 -
Thank you Neil. I need to learn about this more. Can you direct me?
Besides the question of learning this feature, I just checked, my account is "Partner". Does this include Pro features or do I need to upgrade?Creating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com0 -
I would think so? If you have an entry called custom properties in your company settings then you're good.Senior Director, Technical Services, EMEA0
-
Yes I have this. Now, how can I view the custom properties in the above document?Creating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com0 -
Custom properties are unique to a company. In John’s code you’ll see id numbers for the custom props. You can find this by creating/ editing the custom prop in company settings.Senior Director, Technical Services, EMEA0
-
Here is a GIF showing how to set to a custom property "on the fly" and later in the GIF it shows how to permanently add a custom property to the drop down list

5 -
Thanks very much johnCreating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com0 -
Is there a way of getting this to read from composite parts and assemblies?
0 -
Featurescripts operate in part studios which can have composite parts. Assemblies do not support featurescript. You can add custom properties to assemblies but “read from” can’t be automated. Now if you just mean to draw the properties into a BOM, I expect you can achieve your goal.Creating knowledge-driven design automation software, for molds, etc.
www.virtualmold.com0



