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
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
-
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
-
Hi and welcome.
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.
Business Systems and Configuration Controller
HWM-Water Ltd0 -
here is the FS you looking for - https://cad.onshape.com/documents/77baa8153589a7fc5f289829/w/cffd0f2a7077380d5378a885/e/d3174bf5315e6aafcb889367
2 -
Thanks for the quick reply ! This looks like what I would be looking for.1
-
Thanks for the quick reply ! This looks like what I would be looking for.0
-
This is a partial yes since it looks like second moment of inertia is not a value available. I might be able to do a work-around using the mass mome t of inertia.
0 -
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 -
Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc0
-
konstantin_shiriazdanov, is there any way the obtained variable&value can be used in another partstudio or assembly?konstantin_shiriazdanov said:here is the FS you looking for - https://cad.onshape.com/documents/77baa8153589a7fc5f289829/w/cffd0f2a7077380d5378a885/e/d3174bf5315e6aafcb889367
It would be great if you could add the following functionality: changing the name of the variable should propagate0 -
@rune_thorsen229
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-useJake Rosenfeld - Modeling Team1 -
Jake_Rosenfeld Beautiful and clear answer, thanks.0
-
You could derive your part into other studios, then use konstantain's measure value featurescirpt to re-create the variables off the derived geometry.rune_thorsen229 said:
konstantin_shiriazdanov, is there any way the obtained variable&value can be used in another partstudio or assembly?konstantin_shiriazdanov said:here is the FS you looking for - https://cad.onshape.com/documents/77baa8153589a7fc5f289829/w/cffd0f2a7077380d5378a885/e/d3174bf5315e6aafcb889367
It would be great if you could add the following functionality: changing the name of the variable should propagate0





