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.

Custom Table: Length Dimension of Sketch

philipp_wehrphilipp_wehr Member Posts: 7 PRO

I wanted to ask if someone could help me with creating a Custom Table for the Length and angle dimensions in a Sketch 
I looked at a few different custom tables, but couldn't figure out, how I get the dimensions of a sketch into a Custom Table. 
This would be my sketch the name of the Dimensions could be predefined and the Custom Table should only show the Name of the Dimension and then the Value. 

Thanks for the help, 



  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 3,113
    Hi Philipp, it's not possible to extract dimension values directly from a sketch. The only way to get the values in a table is to use variables or a feature like Measure Value. Here is an example:

  • philipp_wehrphilipp_wehr Member Posts: 7 PRO
    Thank you so much that would work.
    Could you maybe show me how to write the Feature Script only that Variables with a specific Name or  a specific Selection of Variables gets added to the Table and not all Variables. In some cases I have more Variables that dont need to be in the Table

  • philipp_wehrphilipp_wehr Member Posts: 7 PRO
    I tried to find a solution for picking the Variables to add to the custom Table and not all Variables, but the query parameter function can not add Variables. Is there another way to pick the variables and not have all Variables selected ? I also wanted to ask if there is a good way to learn to code FeatureScript. I did all the Tutorials available for Onshape, but still can't figure out how I can Pick Variables and add them to Variable in Feature Script. There is also not that much to find on the Forum about Picking Variables in Onshape. 
  • NeilCookeNeilCooke Moderator, Onshape Employees Posts: 3,113
    Picking variables is not possible. I would suggest prefixing each variable that you want to use so you can collect by name, e.g. #table_xxxx
Sign In or Register to comment.