cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

GetMassProperty accuracy (weblink)

AnderasFromm
Visitor

GetMassProperty accuracy (weblink)

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.
Tags (1)
5 REPLIES 5

Re: GetMassProperty accuracy (weblink)

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?

Re: GetMassProperty accuracy (weblink)

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

Re: GetMassProperty accuracy (weblink)

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.

Re: GetMassProperty accuracy (weblink)

No, that's not a good solution for me. I wanted to integrate it into our toolbox website. With a mapkey i would also have to first parse the result and write an external app, that's much more effort then planed to spend here. But it is always good to know some alternatives.

Re: GetMassProperty accuracy (weblink)

In CREO Parametric Toolkit, the two functions ProSolidAccuracyGet() and ProSolidAccuracySet() get and set the solid accuracy.

Announcements