Jump to content

Multileaders in Twisted Viewport


Recommended Posts

Posted

I have just recently begun toying with multileaders and I'm wondering how the heck can one set the mleader style up so that the multileaders and their respective text will rotate properly in a viewport that has been dview twisted?

 

I've been playing with my mleader style and can't figure this out.

Posted

UCS > View... then place the mleader

UCS > Previous (or World)

 

if you add this to your acaddoc.lsp it simplifies things

(defun c:uw ()(command "ucs" "w"))
(defun c:uv ()(command "ucs" "v"))
(defun c:up ()(command "ucs" "p"))

Posted

What does that code do? Just create shortcuts for it?

Posted

There wouldn't happen to be a way to add the text box around these like you can with Civil 3D labels would there?

Posted

Yes, but you probably won't like it... no way to adjust the offset

j1.JPG

Posted

Bleah! Were the programmers high when they compiled that part of the software? That sucks.

I guess I'll manually add boxes. Like the rounded rectangles for them anyway.

  • 8 months later...
Posted
UCS > View... then place the mleader

UCS > Previous (or World)

 

if you add this to your acaddoc.lsp it simplifies things

(defun c:uw ()(command "ucs" "w"))
(defun c:uv ()(command "ucs" "v"))
(defun c:up ()(command "ucs" "p"))

 

I have had the same problem with the mleader being rotated but this post gave me an idea for a lisp which I have tried and the only bug with it is that if you cancel the command before you type your text the ucs remains at "v". easy fix tho (ucs w). anyways.. here it is:

 

(defun c:MLST ()(command "cmleaderstyle""stnd")
                 (command "ucs""v")
                 (initcommandversion 2)
                 (command "mleader" pause pause)
                 (command "ucs""w")
                 (prin1))

 

For those that have your own style just change it to (command "cmleaderstyle""yourstyle"). If you really dont care or use the cad default styles why couldnt you do something like:

 

(defun c:MLST ()(command "ucs""v")
                 (initcommandversion 2)
                 (command "mleader" pause pause)
                 (command "ucs""w")
                 (prin1))[/

 

Works great for me :D

 

Ryan

Posted

ops, minus the "[/" part at the end of the second code.. dont know how those got there

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...