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

custom properties

JonvollmerJonvollmer 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 

Answers

  • Options
    alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    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.com

  • Options
    john_mcclaryjohn_mcclary Member, Developers Posts: 3,896 PRO
    You can use set custom property then use the variable created by measure value.

    https://cad.onshape.com/documents/11eb3fc7b01f4997e5318a6f/w/49252498f47d8a706baf2f54/e/675f33b3c1587cc12c20e6fc
  • Options
    JonvollmerJonvollmer Member Posts: 2 PRO
    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.
  • Options
    john_mcclaryjohn_mcclary Member, Developers Posts: 3,896 PRO
    Sorry, looks like I had a bug, It should be fixed now
  • Options
    alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    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.com

  • Options
    NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,362
    @alan_baljeu - those are custom properties that can only be created with a Professional account
    Senior Director, Technical Services, EMEAI
  • Options
    alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    edited October 2020
    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.com

  • Options
    NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,362
    I would think so? If you have an entry called custom properties in your company settings then you're good.
    Senior Director, Technical Services, EMEAI
  • Options
    alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    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.com

  • Options
    NeilCookeNeilCooke Moderator, Onshape Employees Posts: 5,362
    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, EMEAI
  • Options
    alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    Thanks very much john
    Creating knowledge-driven design automation software, for molds, etc.
    www.virtualmold.com

  • Options
    Calum_DoigCalum_Doig Member Posts: 1 PRO
    Is there a way of getting this to read from composite parts and assemblies?
  • Options
    alan_baljeualan_baljeu Member, User Group Leader Posts: 111 ✭✭
    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.com

Sign In or Register to comment.