Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

SetCoordinateSystem (IMassProperty)

Status
Not open for further replies.

sisau

Mechanical
Mar 5, 2010
19
0
0
SE
hello, i need to do an interface between MSExcel and SolidWorks using MSVisualBasic to calculate the mass properties from different coordinates systems. i need exactly to do what the function SetCoordinateSystem does: set the coordinate system to use when calculating mass properties for a model.

i have a lot of problems because i am a beginner using visual basic...

i have checked the APIhelp and it gives me this information
_____________________________________
Visual Basic (Declaration)
Function SetCoordinateSystem( _
ByVal Coords As MathTransform _
) As Boolean


Visual Basic (Usage) Copy Code
Dim instance As IMassProperty
Dim Coords As MathTransform
Dim value As Boolean

value = instance.SetCoordinateSystem(Coords)
______________________________________________

in the other interfaces i have done, i was just copying examples from APIhelp, but in this case there isn't any example and i don't know what to do with this information.

i know i have to change IMassProperty for Object, when i am using it on VB, but i don't know what to do with MathTransform nor Coords, and i don't know neither what they mean.

any help will be very welcome. thanks!
 
Status
Not open for further replies.
Back
Top