Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Help: id mleader lisp
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Help: id mleader lisp (Read 629 times)
0 Members and 1 Guest are viewing this topic.
mhy3sx
Newt
Posts: 120
Help: id mleader lisp
«
on:
May 29, 2023, 11:44:37 AM »
Hi, I am using this code to id coordinates. This code use leader and mtext. Is it possible to use mleader ? I don't want the line and mtext to be separate
Code - Auto/Visual Lisp:
[Select]
(
defun
c:idd
(
)
(
setq
lup
(
getvar
"luprec"
)
)
(
setvar
"luprec"
3
)
(
setq
zin
(
getvar
"dimzin"
)
)
(
setvar
"dimzin"
0
)
(
setvar
"cmdecho"
0
)
(
setq
po
(
getpoint
"Pick First Point:"
)
)
(
setq
po2
(
getpoint
po
"Pick Second Point:"
)
)
(
setq
xp
(
strcat
"N "
(
rtos
(
cadr
po
)
2
3
)
)
)
(
setq
yp
(
strcat
"E "
(
rtos
(
car
po
)
2
3
)
)
)
(
command
"leader"
po po2
""
yp xp
""
)
)
Thanks
Logged
Tharwat
Swamp Rat
Posts: 710
Hypersensitive
WWW
Re: Help: id mleader lisp
«
Reply #1 on:
May 29, 2023, 01:45:31 PM »
If you want the two strings to inline then just remove the "\\P" from the command.
Code - Auto/Visual Lisp:
[Select]
(
command
"Mleader"
po po2
(
strcat
yp
"
\\
P"
xp
)
)
Logged
HVAC, Plumbing, Drainage, Electricity , Fire Fighting Programs and many more .....
mhy3sx
Newt
Posts: 120
Re: Help: id mleader lisp
«
Reply #2 on:
May 29, 2023, 04:02:25 PM »
Thanks Tharwat
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Help: id mleader lisp