PDA

View Full Version : 2016 Mtext Match Orientation



tim_newsome
2016-11-07, 02:15 PM
Is match orientation only applicable through a viewport?

Is there a way to make it functional in model when a Dview twist is current?

BlackBox
2016-11-07, 02:47 PM
Is match orientation only applicable through a viewport?


Yup - hella dumb, IMO.




Is there a way to make it functional in model when a Dview twist is current?


Yes... You can either do so manually, or (and this may depend on how you 'twist', as example: I maintain WCS, but adjust SNAPANG for selection, ortho drawing aligned to view, etc.), you can do so programmatically based on SNAPANG, etc.

There are some other implicit tasks to make the latter viable, such as implementing a mechanism for knowing when/which annotation entities to rotate, and which not to, etc.


Cheers

tim_newsome
2016-11-07, 03:02 PM
"Yup - hella dumb, IMO." What is this referring to?

BlackBox
2016-11-07, 03:25 PM
"Yup - hella dumb, IMO." What is this referring to?

The fact that "match orientation [is] only applicable through a viewport" - it *should* also match Model orientation.

Tom Beauford
2016-11-08, 08:33 PM
I create Mtext horizontal with a couple macros.
Mtext 0 width
^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);w;0
Mtext
^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);

For toggling SNAPANG between horizontal and matching viewtwist try:

(if(= (+ (getvar "snapang")(getvar "viewtwist")) (* 2 PI)) (setvar "snapang" 0.0) (setvar "snapang" (- (getvar "viewtwist")))) (princ)

NEaton
2016-11-27, 06:14 PM
Nice one-liners!


I create Mtext horizontal with a couple macros.
Mtext 0 width
^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);w;0
Mtext
^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);

For toggling SNAPANG between horizontal and matching viewtwist try:

(if(= (+ (getvar "snapang")(getvar "viewtwist")) (* 2 PI)) (setvar "snapang" 0.0) (setvar "snapang" (- (getvar "viewtwist")))) (princ)