×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SetCoordinateSystem (IMassProperty)

SetCoordinateSystem (IMassProperty)

SetCoordinateSystem (IMassProperty)

(OP)
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!
  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources