TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: kottok on March 24, 2017, 03:12:31 AM
Title:
Routine wanted to modifile
Post by:
kottok
on
March 24, 2017, 03:12:31 AM
i wanted to put a constant correction angle inside the routine,how to do it? :idea:
thanks!
Title:
Re: Routine wanted to modifile
Post by:
Peter2
on
March 24, 2017, 04:18:31 AM
Maybe I don't understand the functionality and your question, but try this.
a)
backup the current code!
b)
Replace
Code - Auto/Visual Lisp:
[Select]
(
setq
Ang
""
dist
0
)
with
Code - Auto/Visual Lisp:
[Select]
;;;; (setq Ang "" dist 0)
(
setq
Ang
"1234.5"
dist
0
)
Replace 1234.5 with the value you need. Keep the quotes ""
c) Replace
Code - Auto/Visual Lisp:
[Select]
(
setq
AngTMP Ang
)
(
if
(
=
(
setq
Ang
(
getstring
(
strcat
"
\n
Specify Bearing <"
Ang
">: "
)
)
)
""
)
(
setq
Ang AngTMP
)
)
with
Code - Auto/Visual Lisp:
[Select]
;;;; (setq AngTMP Ang)
;;;; (if(=(setq Ang(getstring (strcat "\nSpecify Bearing <" Ang ">: ")))"")
;;;; (setq Ang AngTMP )
;;;; )
The unneeded, original code is not deleted; it is commented for a quick restauration.
Try it.
Untested, no guarantee!
Title:
Re: Routine wanted to modifile
Post by:
kottok
on
March 24, 2017, 04:54:34 AM
Thanks Peter , i will try it.
Title:
Re: Routine wanted to modifile
Post by:
kottok
on
March 24, 2017, 11:55:22 PM
Hi Peter,
i added a DCL , but the result not satisfied.