I can show you a vb code for getting the Massproperties of the active document, maybe this will help you:
Dim swApp As sldworks.SldWorks
Dim swDoc As sldworks.ModelDoc2
Dim swDocConfigurations
Dim massProperties
Dim swDocPath As String
swApp = CreateObject("sldworks.application")
swDoc = swApp.ActiveDoc
swDocConfigurations = swDoc.GetConfigurationNames
swDocPath = (swDoc.GetPathName())
For Each swconfig In swDocConfigurations
massProperties = swApp.GetMassProperties2(swDocPath, swconfig, 1)
Next
--
****************************************************
* Skype: gegy,,,gegy
* Web:
http://draxbar.no-ip.org
* Mail:
geg...@gmail.com * Twitter:
http://twitter.com/gegy -----------------------------------------------------------------
* A strange game. The only winning move is not to play.
****************************************************