Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

MULTILEADER TEXT ONLY SHOWING UP ON LEFT HAND SIDE OF THE INSERTION POINT

I've used our previous CAD templates to import data and play around with our LISPS and I can't see any text in a multi leader when it is out to the left. The multileader has populated the text fields and I can see them in the properties tab AND they reappear when I move the leader to the right of the insertion point.

If I create a multileader and pull it out to the left it does the same but doesn't change when I move it to the right of the insertion point, because the direction is still to the left for the text box (?)

this is one of our multileader insertion LISPs:

(defun c:LINEND ( / )
(varopen)
(setq Blname (car(entsel "\nSelect Survey point:")))
(setq NAME () CODE () ELEVATION () DEPTH () SIZE () MATERIAL () COMMONNOTES () END () NUMBEROF ())
(GA Blname)
(Coordw Blname)
(LinEndText NUMBEROF Size Material Depth COMMONNOTES End)
(COMMAND "-LAYER" "M" (strcat lay "_TXT") "")
(COMMAND "_MLEADER" coord PAUSE TX)
(Varclose)
(prin1)
)

which pairs with

(defun LinEndText ( NUMBEROF Size Material depth COMMONNOTES End / )
( IF (/= NUMBEROF "1x") (SETQ NUM NUMBEROF) (SETQ NUM ""))
(SETQ DIA "%%C")
(IF (/= SIZE "UKN") (setq Si_dia (strcat Size DIA " ")) (SETQ Si_dia ""))
(if (/= Material "UKN") (setq Mat Material) (setq mat ""))
(setq Si_dia_mat (strcat Si_dia Mat))
(IF (/= SI_DIA_MAT "") (SETQ SI_DIA_MAT_RET (STRCAT SI_DIA_MAT "\n")) (SETQ SI_DIA_MAT_RET ""))
(setq H (atof depth))
(setq G (rtos H 2 2))
(IF (/= G "0.00") (SETQ F (STRCAT "\U+0028-" G "\U+0029\n")) (SETQ F ""))
(SETQ COM COMMONNOTES)
(IF (/= COM "NA") (SETQ COM_RET (STRCAT COM "\n")) (SETQ COM_RET ""))
(setq endd end)
(setq Tx (strcat NUM si_dia_mat_ret F COM_RET endd))
(princ)
)

to populate the attributes into the text box

Is there a variable setting I'm missing from our old AutoCAD setup?

Comments

  • So I used the multileader styles to change to 'justify left' which fixes the issue, mostly. If I don't have the justify left box ticked in the styles then the multileader text writes itself out offset from 0,0,0. Can I only have left justified multileaders? They are actively changing left-right contextually in AutoCAD.

Sign In or Register to comment.
Origami
Origami is the Japanese word for paper folding. ORI means to fold and KAMI means paper and involves the creation of paper forms usually entirely by folding.

Powered by VanillaForums, Designed by Steam