panta rhei Posted January 7, 2009 Share Posted January 7, 2009 For a single object, I can 'Set3DInfo', but that does not work for groups. The 'Scale' call is 2D only. Is there a simple way to scale a group of objects in 3D? Am I missing something glaringly obvious once again? Luckily, 'Get3DInfo' does work with groups, so I have a start. I can then enter the group and scale & move each component proportionally one at a time ? but I'd rather not. Quote Link to comment
Pat Stanford Posted January 7, 2009 Share Posted January 7, 2009 If you check the on-line reference http://developer.vectorworks.net/index.php?title=VS:Function_Reference, there are calls for HScale2D and HScale3D. The 2D Scales groups, the 3D does not. Could you change the view and scale using the HScale 2D in two different views to get the result you need? Quote Link to comment
MullinRJ Posted January 7, 2009 Share Posted January 7, 2009 Hi Petri, There are two undocumented commands, but they work on individual objects. HScale2D(h: HANDLE; centerX, centerY, scaleX, scaleY: REAL; scaleText: BOOLEAN); HScale3D(h: HANDLE; centerX, centerY, centerZ, scaleX, scaleY, scaleZ: REAL); HScale3D does not work for Groups of 3D objects. For 3D Groups I scale from the top with HScale2D using Scale_X and Scale_Y, then from the front using Scale_X=1 and Scale_Z. A Redraw will be needed to see the results. HTH, Raymond Quote Link to comment
MullinRJ Posted January 7, 2009 Share Posted January 7, 2009 Pat, You're too fast for me... Quote Link to comment
panta rhei Posted January 7, 2009 Author Share Posted January 7, 2009 Thanks, guys! I was afraid of this... HScale3D one by one then ? and then I have to move them one by one, too. Quote Link to comment
panta rhei Posted January 7, 2009 Author Share Posted January 7, 2009 (edited) How frustrating... This call does not work with 3D polygons and I can't control the users! I think I have to bury the entire idea. EDIT It seems to work only with extrusions and solids. I wonder if this is By Design... Edited January 7, 2009 by panta rhei Quote Link to comment
Recommended Posts
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.