Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
ctnycc
Posts: 126
Registered: ‎01-04-2008
Message 1 of 6 (458 Views)

Combined commands MVsetup and Rotate

458 Views, 5 Replies
01-15-2013 08:31 AM

I was wondering if anyone could help with this?

 

I have set up a command which uses MVSETUP, Align, Rotate in the viewport to change the orientation of maps within the viewport by entering the angle and press return.  I just want to take this one step further by combining the command sequence with the rotate command so we can rotate by moving the mouse to achieve the desired effect for the viewport instead of trying all different angles.

 

I have used the following sequence in the macro command line ^C^C_.MSPACE;MVSetup;a;r

 

I think this may well require a lisp route to achieve the command i am after as to insert the rotate command above would mean coming out of the mvsetup command.

 

Can anyone help?

 

Thanks

 

Colin

 

*Expert Elite*
pbejse
Posts: 2,500
Registered: ‎11-24-2009
Message 2 of 6 (425 Views)

Re: Combined commands MVsetup and Rotate

01-16-2013 10:46 PM in reply to: ctnycc

ctnycc wrote:

 

I think this may well require a lisp route to achieve the command i am after as to insert the rotate command above would mean coming out of the mvsetup command.

 

Colin 


 Lets make this clear, you want to rotate the "VIEW" and not objects? or after MVSETUP then  rotate objects?

 

AFAICT, you cannot loop the MVSETUP command as it is already a lisp program, [unless you modifty the code, watch out for copyright issues]

 

Distinguished Contributor
ctnycc
Posts: 126
Registered: ‎01-04-2008
Message 3 of 6 (417 Views)

Re: Combined commands MVsetup and Rotate

01-17-2013 03:43 AM in reply to: ctnycc

Patrick

 

Thanks for looking at this.

 

when we use the rotate command, after selecting the base point it allows one to rotate the "object" with a handle to show the effect before accepting.

 

I use MVsetup to orient the maps in drawings with the sequence of commands through a viewport MVSETUP;a;r; where this asks for the angle of rotation.  the only thing with htis is it can be fiddly trying to set the best angle for the best effect in the drawing. 

 

I wondered about the idea of combining MVSETUP with Rotate where it will allow the use of the handle to orientate the map in the viewport rather than stating / geussing an angle.   I dont want to rotate the viewport.

 

I have attached a drawing which shows the rotation of the map within the viewport on the left by an angle of 45degrees, 

 

Hope this is clearer, any queries let me know.

 

Regards

Colin

 

 

 

*Expert Elite*
pbejse
Posts: 2,500
Registered: ‎11-24-2009
Message 4 of 6 (411 Views)

Re: Combined commands MVsetup and Rotate

01-17-2013 04:01 AM in reply to: ctnycc

Have you tried using DVIEW / Twist  instead?

 

 

 

 

 

Distinguished Contributor
ctnycc
Posts: 126
Registered: ‎01-04-2008
Message 5 of 6 (404 Views)

Re: Combined commands MVsetup and Rotate

01-17-2013 05:18 AM in reply to: ctnycc

Interesting command Patrick, useful if there is just one block,  however when we are doing schemes the map is made up of several blocks which would be difficult to select through the viewport as the image disappears.

 

Colin

 

*Expert Elite*
pbejse
Posts: 2,500
Registered: ‎11-24-2009
Message 6 of 6 (399 Views)

Re: Combined commands MVsetup and Rotate

01-17-2013 06:21 AM in reply to: ctnycc

ctnycc wrote:

Interesting command Patrick, useful if there is just one block,  however when we are doing schemes the map is made up of several blocks which would be difficult to select through the viewport as the image disappears.

 

Colin

 


What do you mean by "disappears" ?  one good thing about Dview is you get to select the objects the "target" object and isolate those as you "twist' the view. 

 

Tell me more Colin, i think i'm missingsomething here.

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.