Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SNAP MODE SETTINGS

37 REPLIES 37
Reply
Message 1 of 38
wbrustle
1841 Views, 37 Replies

SNAP MODE SETTINGS

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.

37 REPLIES 37
Message 21 of 38
AllenJessup
in reply to: troma

"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.

EESignature

Message 22 of 38
troma
in reply to: AllenJessup

Thanks!

Mark Green

Working on Civil 3D in Canada

Message 23 of 38
AllenJessup
in reply to: troma

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.

EESignature

Message 24 of 38
troma
in reply to: AllenJessup

Are you just using DView to set the screen rotation, or do you use UCS too?
I have a lisp that sets VIEWTWIST and SNAPANG together. I just tested in 2011 & 2013, and my multileaders ignore the view; they are set parallel to the UCS.

PS Apologies for hijacking this thread, but the conversation just flowed naturally in this direction. Sorry.

Mark Green

Working on Civil 3D in Canada

Message 25 of 38
AllenJessup
in reply to: troma

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.

EESignature

Message 26 of 38
AllenJessup
in reply to: troma

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.

EESignature

Message 27 of 38
troma
in reply to: AllenJessup

Yep, I see it. Something weird. Something I wish would happen for me!

Mark Green

Working on Civil 3D in Canada

Message 28 of 38
AllenJessup
in reply to: troma

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.

EESignature

Message 29 of 38
TomBeauford
in reply to: AllenJessup

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

64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
Message 30 of 38
troma
in reply to: AllenJessup

I'm wondering if there's a sysvar for this. Anything you can think of?

Mark Green

Working on Civil 3D in Canada

Message 31 of 38
AllenJessup
in reply to: troma

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.

 

ml1.PNG

 

ml2.PNG

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.

EESignature

Message 32 of 38
troma
in reply to: AllenJessup

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

Message 33 of 38
Kevin.Spear
in reply to: AllenJessup

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?

 

Thanks
Kevin

Kevin Spear, PE
Message 34 of 38
Jeff_M
in reply to: Kevin.Spear

Not sure how I missed this conversation when it was active.... Allen uses the Sincpac-C3D add-on package which has the option you all were looking for:

 

7-17-2016 4-00-50 PM.png

Jeff_M, also a frequent Swamper
EESignature
Message 35 of 38
Kevin.Spear
in reply to: Jeff_M

That makes sooo much sense. Ironically, i had a memory that it worked like Allen showed but couldn't recall why. Now i know. Thanks Jeff!
Thanks
Kevin

Kevin Spear, PE
Message 36 of 38
TomBeauford
in reply to: AllenJessup

I use a macro for Mtext drawn horizontally with the same code.

^C^C_mtext;\r;(/ (* 180 (- (getvar "viewtwist"))) pi);
64bit AutoCAD Map & Civil 3D 2023
Architecture Engineering & Construction Collection
2023
Windows 10 Dell i7-12850HX 2.1 Ghz 12GB NVIDIA RTX A3000 12GB Graphics Adapter
Message 37 of 38
Kevin.Spear
in reply to: TomBeauford

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...

 

SNAG-0049.png

 

 

 

 

Thanks
Kevin

Kevin Spear, PE
Message 38 of 38
AllenJessup
in reply to: Kevin.Spear

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.

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report