Does anyone know how to keep the snap mode settings from disappering after certain commands. For example everytime I use a lisp routine I have to go and reset my settings because they are no longer the way I had them set before I performed the lisp command.
"Would you be willing to share your lisp Allen?" Yes.
"Does it also work for multileaders?" No
Very simple written for our use. No error checking of bells and wistles. Simply passes an angle derived from 'ViewTwist" to the (R)otation option in the MText Command.
; Mtext at Viewtwist rotation
(defun c:mtr()
(setq twang (-(/ (* (GETVAR "viewtwist") 180.0) PI))
)
(initdia)
(command "mtext" PAUSE "R" twang)
)
Allen
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Your welcome. I was wondering about the MLeaders. I don't use them often. I did a test and they seem to orient themselves to the current view set by DView. They don't reorient when you go back to plan.
What were you looking to happen with MLeaders? BTW I did the test in 2012.
Allen
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Mark Green
Working on Civil 3D in Canada
troma wrote:
Are you just using DView to set the screen rotation, or do you use UCS too?
No. Just DView. Sometimes a lisp that will set it from a line (if I have a line). I have a separate lisp that sets the SnapAng.
I tried it in 2014 and Chronicled it. Looks like it follows the DView Twist there also. Don't know if there's a variable. I don't see it in the list.
Allen
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
I noticed something watching the Chronicle that I hadn't before. It looks like the MLeader is setting a temporary UCS while it is active. Watch the UCSIcon in the lower left.
It's not as obvious in the embeded Chronicle. See if you can follow THIS link.
Allen
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Mark Green
Working on Civil 3D in Canada
You could try a Support Request. See what the PTB think about it. Point to this thread so they can see the Chronicle.
Allen
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
I added a Command to the CUI
Name: Multiline Text 0 width
Description: Creates a horizontal 0 width multi-line text object.
Macro: ^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);w;0
Tooltip Title: Multiline Text 0 width
Small image: Mtext0.bmp
Large image: Mtext0.bmp
Mark Green
Working on Civil 3D in Canada
No. But check you MLeader Style. This is how mine is set up. Two things to check might be to not constrain the second segment and to set the text angle to horizontal.
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Allen,
My settings are almost identical to yours (except sizes are set for a metric drawing, but I have different scales anyway). The only different setting was that I didn't have a max set on the number of leader points. I tried setting it to 2, as yours is, but it made no difference. (Can't see why it would make a difference.)
Can you respond back on this other thread, which already referneces this one, and is rather more "on topic".
Thanks.
Multileaders in Dview Twisted Viewport - rotation problem
Mark Green
Working on Civil 3D in Canada
Allen, did you ever figure out why your mleader command was setting a temporary UCS as shown in your video? It does not do that for me inherently in either Civil 3D 2016, 2017 or vanilla AutoCAD 2016. I have had to get help redefining the command to do the UCS view before the command and UCS world after the command.
Any insight to what was going on for you?
I use a macro for Mtext drawn horizontally with the same code.
^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);
That's a great solution. Text styles do have a property now (not sure which version this was introduced) to react to the view so long as you're in a viewport. Why that doesn't also react to mspace is beyond me.
It does require that you use annotative text though. I am surprised by how many Civil 3D users/firms don't use AutoCAD's annotative text. To me, it's even better than c3d labels. But that's my opinion...
I'm glad Jeff answered your question because after nearly three years. I doubt I could have.
Allen Jessup
CAD Manager - Designer
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.