Message 1 of 18

Not applicable
05-03-2019
03:32 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have created a DCL but I still can not create the lisp because
I get tangled with the button opcoon and the list,
I need the buttons to work and insert the blocks according to the selection and also
those from the list called others, each key must to send to a defun like this:
(defun rb1 ( / Nme FName1) (vl-load-com) (prompt "\nInsert BLOCK 01.") (setvar "cmdecho" 1) (setvar "insunits" 4) (setq FName1 (strcat "BLOCK01" ".dwg")) (vl-cmdf "_.-insert" FName1 "0,0" "" "" "") (command "zoom" "e" "") (prompt "\n") (princ) )
The dcl code that I am still developing is this:
test1 : dialog { label = "Insercion de bloques DWG" ; : row { :boxed_column { label = "Block 01" ; : button { key = "C1" ; label = "TYPE 1" ; value = "0" ; } : button { key = "C2" ; label = "TYPE 2" ; value = "0" ; } : button { key = "C3" ; label = "TYPE 3" ; value = "0" ; } : button { key = "C4" ; label = "TYPE 4" ; value = "0" ; } : button { key = "C5" ; label = "TYPE 5" ; value = "0" ; } : button { key = "C6" ; label = "TYPE 6" ; value = "0" ; } : button { key = "C7" ; label = "TYPE 7" ; value = "0" ; } : button { key = "C8" ; label = "TYPE 8" ; value = "0" ; } } : row { :boxed_column { label = "Block 02" ; : button { key = "C9" ; label = "TYPE 1" ; value = "0" ; } : button { key = "C10" ; label = "TYPE 2" ; value = "0" ; } : button { key = "C11" ; label = "TYPE 3" ; value = "0" ; } : button { key = "C12" ; label = "TYPE 4" ; value = "0" ; } : button { key = "C13" ; label = "TYPE 5" ; value = "0" ; } : button { key = "C14" ; label = "TYPE 6" ; value = "0" ; } : button { key = "C15" ; label = "TYPE 7" ; value = "0" ; } : button { key = "C16" ; label = "TYPE 8" ; value = "0" ; } } } : boxed_column { label = "Other"; : popup_list { key = "selections"; value = "0" ; } } } ok_cancel ; }
I hope you can help me, thank you very much.
Solved! Go to Solution.