×
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

Changing the object distance from the origin (API - COM)

Changing the object distance from the origin (API - COM)

Changing the object distance from the origin (API - COM)

(OP)
Hi!
I'am a C++ programmer. I like to change the my object (in .SLDPRT file) distance from the origin (X, Z, Y coordinate) in my C++ (COM) program.
Which object and method do it? (Enough only the object/method name...)
Sorry a lamer question, but I'm lost in the SW object-tree... smile
Thanks!
ZsZs.

RE: Changing the object distance from the origin (API - COM)

To my knowledge there is not an easy way to move an arbitrarily designed part relative to its origin.  There are workarounds depending on why you want the origin in a different place.

Eric

RE: Changing the object distance from the origin (API - COM)

(OP)
I found a good example.
The after the SW API install, in the C:\Solidworks\api  directory (where is api help too) have a example by solidworks_api_session name.
It is very good...

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