Hi, guys, since i m creating a lot of different configurations for part, i would like my macro to measure the mass properties from my coordinate system that i inserted, instead of default set by solidworks. I know i can change that manually when i go to evaluate and mass properties, but i want macro that will do that at the beginning so i can just automatically write those results to txt without my intervention.
This is my code so far and right now it shows mass for default system.
Dim swApp As SolidWorks.Interop.sldworks.SldWorks
Dim Part As SolidWorks.Interop.sldworks.ModelDoc2
Dim warnings As Integer
Dim errors As Integer
Dim vMassProp As Object
Dim nStatus As Long
Dim swModelExt As SolidWorks.Interop.sldworks.ModelDocExtension
vMassProp = (swModelExt.GetMassProperties2(0, nStatus, True))