Skip to main content
1-Visitor
December 12, 2016
Question

GetMassProperty accuracy (weblink)

  • December 12, 2016
  • 1 reply
  • 3641 views

How can i specify the accuracy for the getMassProperty function of a solid in weblink? Even in the toolkit API documentation i can not see a parameter for this?

The default accuracy value is too high, so the center of mass is rounded to zero. But for my calculations, i need to detect those small values.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

1 reply

21-Topaz I
December 12, 2016

I don't know if the API has a handle for this or not. If it doesn't though can you call a mapkey who's only function is to update that value?

1-Visitor
December 12, 2016

Even when i change the value in the GUI, the getMassProperty function in weblink seems to use a default value.

21-Topaz I
December 12, 2016

Can you do the whole thing with a mapkey rather than using the API?

I currently do this with a mapkey and then hit the button and export the text to a file which I then post process. This likely isn't want you were looking for but might be a work around if you don't find anyone else who knows the API better.