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

Feature scripts

GummyGummy Member Posts: 2

Hello everyone, I was hoping someone can give me guidance on how to create a fully customized table , for mass properties, withe specific density for each material. Its basicallyto show the current, mass if i were to assign the material, ive been strugglingthe whole day but cant for the love of me figure this out , any inputwould be reallygreatly appreciated.

Answers

  • GregBrownGregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 324
    edited July 20

    I fixed a few issues in your custom table… try this now: https://cad.onshape.com/documents/bcb49665ab815049abfc33a0/w/f05bf45252300e5c0fbe04b3/e/14f645ee405326a00c3fd52d

    You had missed a few things with the maps references needed to be made to the key e.g. densities[material.key]

    Also your helper function computeMasses needed to be outside the custom table function…

  • MichaelPascoeMichaelPascoe Member Posts: 2,433 PRO
    edited 4:26AM

    Now that's some first class forum support! ⬆️


    Learn more about the Gospel of Christ  ( Here )

    CADSharp  -  We make custom features and integrated Onshape apps!   Learn How to FeatureScript Here 🔴
Sign In or Register to comment.