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?
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.