大家好,
我正在努力建立一个lisp,用户可以编辑标题栏,更新revblocks。我们有使用图形属性框上的“自定义”选项卡的模板,该选项卡与我们使用的标题栏相关联。我只是想让用户可以使用这个lisp,而不是每次打开dwgprops框。
以下是dwgprops框的外观:
这是我目前得到的:
- (defun c:TB ()
- (if (setq Opt
- (getint
- "\nDo you want to: 1- Update Titleblock 2- Update RevBlock 3- Update Drawing Titles: "
- )
- );;user input for variable "opt"
- (progn
- (cond
- ((= opt 1);;if user picks to update titleblock
- (setq titletop (getstring "\nWhat is title top? "))
- (setq titlemiddle (getstring "\nWhat is title middle? "))
- (setq titlebottom (getstring "\nWhat is title bottom? "))
- )
- ((= opt 2);;if user picks to update revblock
- (setq
- row (getint "\nWhich revision row do you wish to edit? ")
- )
- (progn
- (cond
- ((= row 1)
- (setq 1rowrev (getstring "\n1st row rev: "))
- (setq 1rowyy (getstring "\n1st row year: "))
- (setq 1rowmm (getstring "\n1st row month: "))
- (setq 1rowdd (getstring "\n1st row day: "))
- (setq 1rdesc (getstring T "\n1st row description: "))
- (setq 1rowby (getstring "\n1st row by: "))
- (setq 1rowchk (getstring "\n1st row chk: "))
- (setq 1roweng (getstring "\n1st row eng: "))
- (setq 1rowapp (getstring "\n1st row app: "))
- )
- ((= row 2)
- (setq 2rowrev (getstring "\n2nd row rev: "))
- (setq 2rowyy (getstring "\n2nd row year: "))
- (setq 2rowmm (getstring "\n2nd row month: "))
- (setq 2rowdd (getstring "\n2nd row day: "))
- (setq 2rdesc (getstring T "\n2nd row description: "))
- (setq 2rowby (getstring "\n2nd row by: "))
- (setq 2rowchk (getstring "\n2nd row chk: "))
- (setq 2roweng (getstring "\n2nd row eng: "))
- (setq 2rowapp (getstring "\n2nd row app: "))
- )
- ((= row 3)
- (setq 3rowrev (getstring "\n3rd row rev: "))
- (setq 3rowyy (getstring "\n3rd row year: "))
- (setq 3rowmm (getstring "\n3rd row month: "))
- (setq 3rowdd (getstring "\n3rd row day: "))
- (setq 3rdesc (getstring T "\n3rd row description: "))
- (setq 3rowby (getstring "\n3rd row by: "))
- (setq 3rowchk (getstring "\n3rd row chk: "))
- (setq 3roweng (getstring "\n3rd row eng: "))
- (setq 3rowapp (getstring "\n3rd row app: "))
- )
- ((= row 4)
- (setq 4rowrev (getstring "\n4th row rev: "))
- (setq 4rowyy (getstring "\n4th row year: "))
- (setq 4rowmm (getstring "\n4th row month: "))
- (setq 4rowdd (getstring "\n4th row day: "))
- (setq 4rdesc (getstring T "\n4th row description: "))
- (setq 4rowby (getstring "\n4th row by: "))
- (setq 4rowchk (getstring "\n4th row chk: "))
- (setq 4roweng (getstring "\n4th row eng: "))
- (setq 4rowapp (getstring "\n4th row app: "))
- )
- );;end cond
- );; end progn
- );;end opt 2
- ((= opt 3);;if user picks to update drawing titles, still figuring this section out
- )
- );;end cond
- );;end 1st progn
- );;end 1st if
- );;end defun
我最难弄清楚的是如何将用户输入的值放入正确的自定义图形属性中,这只适用于revbock更新。
我也不知道如何将标题用户输入放入正确的图形属性位置(尽管我认为它们密切相关)
我确实发现这个列表可能对狩猎有帮助,但我不知道如何把它翻译成有用的东西。。。
谢谢你的帮助! |