Jump to content
Pat Stanford

Rotate objects by individual centers

Recommended Posts

Posted (edited)

@Boh I noticed that Active layer have to be Visible. Invisible or Grayed do not works even if are Active.

@Sam Jones  I found that GetLVis procedure cause this problem. I analyzed this script and I think this is it. Do you known how fix it?

Edited by Robert J | Design Express
  • Like 1

Share this post


Link to post

Ok confirming that for the second script to work the layer the objects are on not only has to be the active layer but also has to be set to visible. Thanks @Robert J | Design Expressfor pointing this out.

 

@Sam Jones it easy to tweek this script to work even if the active layer is not set to visible? 

Share this post


Link to post

Not near a computer right now, but first, all the objects need to be on visible layers, but only one of them has to be on the active layer.  I had assumed that since the active layer is always visible the selected/is visible criteria should work I will investigate.  I do not want the command to rotate objects that are not visible.  I'm sure that the problem of a not set to visible active layer can be solved by adding "on active layer" as a criteria, but the actual wording of the added criteria I will have to investigate at a computer.

Share this post


Link to post

Remember there is a check box that you must check in order to rotate objects on all visible layers.  If that box remains unchecked only the active layer objects will be rotated.

  • Like 1

Share this post


Link to post

Thanks Sam, I tried toggling all the options. It was just the active layer wasn't set to visible (despite being visible because it was the active layer). 

Share this post


Link to post

Change the line that says:

                        IF (GetLVis(objLayer) = 0) THEN

(I think it is 152) to:

                        IF ((theLayer = ActLayer) | (GetLVis(objLayer) = 0)) THEN
 

  • Like 1

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.


 

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...