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.
Measured value as a variable
stephane_leveel
Member Posts: 6 ✭
Hi, I am both a SW and ProE user and am now looking at Onshape.
For my CAD needs, I need to use some of the measurements like volume, inertia, distances as input to calculations that drive the model.
I can then use an optimizer or a goal-seek to drive the model.
This is possible in ProE but not in SW.
It looks like Onshape is following the SW approach.
Will Onshape offer similar features to ProE?
If not, is it something I could build using Featurescript?
Thanks
For my CAD needs, I need to use some of the measurements like volume, inertia, distances as input to calculations that drive the model.
I can then use an optimizer or a goal-seek to drive the model.
This is possible in ProE but not in SW.
It looks like Onshape is following the SW approach.
Will Onshape offer similar features to ProE?
If not, is it something I could build using Featurescript?
Thanks
0
Best Answer
-
konstantin_shiriazdanov Member Posts: 1,221 ✭✭✭✭✭This FS has only measuring functionality which is provided by functions, implemented in standard library, sadly there are no function to calculate moments of inertia.
5
Answers
There is a great existing featurescript that will measure various parameters and store them in variables that you can then use downstream in your feature tree. @konstantin_shiriazdanov was this yours? The names "measure distance" and "measure extended" ring a bell but I'm not sure what the latest and greatest version is called or what it can and can't measure.
Also with the owners of ProE buying Onshape, and the existing SOLIDWORKS talent involved, I'm convinced the future of Onshape's methods will be a mixture of the best bits of other systems and some special sauce of their own design...
Cheers Owen.
HWM-Water Ltd
evApproximateMassProperties will give you moments of inertia.
It would be great if you could add the following functionality: changing the name of the variable should propagate
Unfortunately we do not have a concept of a "global variable" that is accessible in the whole document. Lot's of people have asked for it, and you can help by adding your vote here: https://forum.onshape.com/discussion/4027/global-variables/p1
There is nothing Konstantin can do about the name change not propagating. The code he has control over is local to just that one feature, it cannot reach out and change the inputs to other features. Variable name refactoring like this is something that we have on our radar, because it does cause a lot of frustration for our users. You can vote for that too: https://forum.onshape.com/discussion/5871/cascade-variable-name-changes-to-instances-of-its-use