Author Topic: Routine wanted to modifile  (Read 1427 times)

0 Members and 1 Guest are viewing this topic.

kottok

  • Mosquito
  • Posts: 3
Routine wanted to modifile
« 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!

Peter2

  • Swamp Rat
  • Posts: 650
Re: Routine wanted to modifile
« Reply #1 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]
  1. (setq Ang "" dist 0)
with
Code - Auto/Visual Lisp: [Select]
  1. ;;;; (setq Ang "" dist 0)
  2. (setq Ang "1234.5" dist 0)
Replace 1234.5 with the value you need. Keep the quotes ""

c) Replace
Code - Auto/Visual Lisp: [Select]
  1.         (setq AngTMP Ang)
  2.         (if(=(setq Ang(getstring  (strcat "\nSpecify Bearing <" Ang ">: ")))"")
  3.           (setq Ang AngTMP )
  4.         )
  5.  
with
Code - Auto/Visual Lisp: [Select]
  1. ;;;;        (setq AngTMP Ang)
  2. ;;;;        (if(=(setq Ang(getstring  (strcat "\nSpecify Bearing <" Ang ">: ")))"")
  3. ;;;;          (setq Ang AngTMP )
  4. ;;;;        )
  5.  
The unneeded, original code is not deleted; it is commented for a quick restauration.

Try it.

Untested, no guarantee!
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

kottok

  • Mosquito
  • Posts: 3
Re: Routine wanted to modifile
« Reply #2 on: March 24, 2017, 04:54:34 AM »
Thanks Peter , i will try it.

kottok

  • Mosquito
  • Posts: 3
Re: Routine wanted to modifile
« Reply #3 on: March 24, 2017, 11:55:22 PM »
Hi Peter,

i added a DCL , but the result not satisfied.