Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set MathTransform = ???

Status
Not open for further replies.

sisau

Mechanical
Mar 5, 2010
19
Hello, i've written a macro for SW2007 but it doesn't works. i think the reason is that i need to set csystransform. the macro i have written is the following:

Dim swApp As SldWorks.SldWorks
Dim Part As SldWorks.ModelDoc2
Dim mass as SldWorks.MassProperty
Dim swCoordSys as SldWorks.Feature
Dim csystransform as SldWorks.MathTransform

Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set mass = Part.Extension.CreateMassProperty
Set csystransform = ???

csystransform=Part.Extension.GetCoordinateSystemTransformByName(swCoordSys.Name)
mass.SetCoordinateSystem(csystransform)

any idea about how to do it? thank you!
 
Replies continue below

Recommended for you

it says ActiveX component can't create object
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor