Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
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.
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?
Even when i change the value in the GUI, the getMassProperty function in weblink seems to use a default value.
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.
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.
In CREO Parametric Toolkit, the two functions ProSolidAccuracyGet() and ProSolidAccuracySet() get and set the solid accuracy.