Jump to content
Sign in to follow this  
Cloud Hidden

Setting position of object

Recommended Posts

I want an object to be moved to a specific x,y,z position. There doesn't seem to be a Set3DCntr complement to Get3DCntr. What's the best way to do that--Get3DCntr and then Move3DObj by the difference? Or is there a direct way that I've overlooked? Thanks.

Share this post


Link to post

Your guess is correct, move the difference. If you haven't already written one, here's a short procedure I've used before for Set3DCntr.

HTH,

Raymond

Procedure Set3DCntr(H :Handle; x, y, z :Real);

{ Set the 3D center point of the object referenced by handle "H",

to the coordinates specified by "x", "y" & "z" }

Var

u, v, w :Real;

Begin

Get3DCntr(H, u, v, w);

Move3DObj(H, x-u, y-v, z-w);

End;

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...