Changing a viewport through (entmod) is problematic.
There are restrictions on the changes the entmod function can make:
- An entity's type and handle cannot be changed. If you want to do this, use entdel to delete the entity, and then make a new entity with the command or entmake function.
- The entmod function cannot change internal fields, such as the entity name in the -2 group of a seqend entity. Attempts to change such fields are ignored.
- You cannot use the entmod function to modify a viewport entity.
I use this lisp code is perfect !!This code changes the twist angle not the viewport UCS. Changing the twist angle can be done with Visual Lisp (without activating the viewport).
This code changes the twist angle not the viewport UCS. Changing the twist angle can be done with Visual Lisp (without activating the viewport).
I use this lisp code is perfect !!As a licensed Surveyor doing Civil work like Topographer I avoid changing the coordinate system. I use a macro to twist views as needed that resets the crosshairs after DVIEW withCode - Auto/Visual Lisp: [Select]
; DVA.LSP ; Jim Nakazawa ; (415) 768-1234 ; TO SET DVIEW TWIST ANGLE BY POINTING TO AN EXISTING LINE ; FIRST DRAW THE LINE FROM LEFT TO RIGHT THAT YOU WANT TO SET THE DVIEW ; TWIST ANGLE FROM ;this should be modified to show angle in current angular units ) ;this routine seems to work
(setvar "snapang" (- (getvar "viewtwist")))
. Added it to your routine for my purposes.Thank you all!
I managed to solve my problem without rotating the UCS in the viewport, but thank you all for your concern
That's great!
How did you do it ??