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.
Measure to Variable feature
kevin_o_toole_1
Onshape Employees, Developers, HDM Posts: 565
This custom feature will measure a distance between entities (or the length, area, or volume of entities) and store it in a variable which can be used in downstream features and sketches.
Click the link below to add it to your toolbar now:
https://cad.onshape.com/documents/cc0e00cacc4401e125d7b538/w/ae938ab05c35f7c826263f5e/e/eb30fd60f2938035ced700c5
There have been a few "Measure"-type features written before, but none have had quite the full set of niceness that FeatureScript allows. This feature was written for Onshape by Andrii Furseiev and has already gone through some internal testing and code review.
Our hope is that this feature (or a descendant of it) will eventually become more integrated into Onshape by default. That means we want it to have a high-quality experience, which
– Kevin
Click the link below to add it to your toolbar now:
https://cad.onshape.com/documents/cc0e00cacc4401e125d7b538/w/ae938ab05c35f7c826263f5e/e/eb30fd60f2938035ced700c5
There have been a few "Measure"-type features written before, but none have had quite the full set of niceness that FeatureScript allows. This feature was written for Onshape by Andrii Furseiev and has already gone through some internal testing and code review.
Our hope is that this feature (or a descendant of it) will eventually become more integrated into Onshape by default. That means we want it to have a high-quality experience, which
- Presents a clear, uncluttered interface
- Has the full set of options you would expect out of such a feature, so you don't need to go searching elsewhere
- Quickly gives you the correct info you need
– Kevin
Tagged:
8
Comments
My only thought at this point would be that it would be nice if the "size" allowed multiple selection, and the variable be the sum of whatever was selected. Would be helpful to get the length of a chain of edges for example
Some issues:
Great catch!
You can now update to the latest version to allow measuring multiple entities.
Can you confirm that this tool does not currently measure angles (like, between two lines, or between two planes etc).
Just want to make sure I'm not missing the special way to select elements that might give an angle.
Thanks!
romeo
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴
Can you use this tool to measure a distance beween 2 features in a certain direction (other than WCS x, y, z)?
This has the following caveat. You can take "measure a distance in a direction" to mean "get the distance vector, then project it onto the direction" or "project both entities onto a line along that direction, then measure the distance between the projections". Our feature does the former.
You're correct, there is an inherent loop in that structure. To use the result of this feature in a sketch, you will need to measure entities that existed before the sketch was created.