API: GetMassProperties2...???

Feb 02, 2004 1 Replies

Hi,



I've noticed some irratic behaviour from the 'retval = SldWorks.GetMassProperties2 ( filePathName, configurationName, Accuracy )' -function...



the function should return a safe Array of massproperties for the specified file&configuration but sometimes it will return an Empty array instead. It seems like the API-call only works if I've done a 'Mass Property'-analysis the old fashion way first (manually by selecting Tools/Mass Properties from the drop-down menu).... Why is that. Are there some pre-conditions that I should be aware of that aren't described in the API-help section?



Also if I modify the part (adding configurations etc...) it seems like I'd need to manually check the mass properties (for each configuration separately) before I successfully can use the API call again...



Any ideas...



TIA, KimSky


Couldn't manage to make it work either. Will mail apisupport about this

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required