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:
Loop for Pline input with Osnap tracking
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Loop for Pline input with Osnap tracking (Read 1252 times)
0 Members and 1 Guest are viewing this topic.
BazzaCAD
Guest
Loop for Pline input with Osnap tracking
«
on:
October 19, 2018, 06:16:15 PM »
I use this code to loop while the user picks points & draw the Pline as they go.
Code - Auto/Visual Lisp:
[Select]
(
command
"pline"
)
(
setq
pt
nil
)
(
while
(
if
pt
(
setq
pt
(
getpoint
pt
"
\n
next point: "
)
)
(
setq
pt
(
getpoint
"
\n
first point: "
)
)
)
(
command
pt
)
)
(
command
)
It works fine, but if they use Osnap tracking, the Pline snaps back the Osnap point instead of the tracked pick point.
Has anyone been able to work around this? No I can't turn off Osnaps while the user is picking points.
Logged
Lee Mac
Seagull
Posts: 12914
London, England
WWW
Re: Loop for Pline input with Osnap tracking
«
Reply #1 on:
October 19, 2018, 06:40:59 PM »
Change
(command pt)
to
(command "_non" pt)
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
BazzaCAD
Guest
Re: Loop for Pline input with Osnap tracking
«
Reply #2 on:
October 19, 2018, 07:12:24 PM »
Dah, that was easy.
Thanks Lee
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Loop for Pline input with Osnap tracking