• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Visual LISP, AutoLISP and General Customization

    Reply
    Distinguished Contributor
    Posts: 117
    Registered: ‎01-04-2008

    Combined commands MVsetup and Rotate

    162 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

     

    Please use plain text.
    *Expert Elite*
    Posts: 2,054
    Registered: ‎11-24-2009

    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]

     

    Please use plain text.
    Distinguished Contributor
    Posts: 117
    Registered: ‎01-04-2008

    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

     

     

     

    Please use plain text.
    *Expert Elite*
    Posts: 2,054
    Registered: ‎11-24-2009

    Re: Combined commands MVsetup and Rotate

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

    Have you tried using DVIEW / Twist  instead?

     

     

     

     

     

    Please use plain text.
    Distinguished Contributor
    Posts: 117
    Registered: ‎01-04-2008

    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

     

    Please use plain text.
    *Expert Elite*
    Posts: 2,054
    Registered: ‎11-24-2009

    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.

     

    Please use plain text.