Message 1 of 3

Not applicable
11-20-2018
09:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I am trying to construct a GUI to manipulate custom properties in a more organized way for the population of formats. I was able to get the DCL to load and have the appearance I desired and could get the property of "Drawing Number" to load into the field, but am having trouble getting the change to the field to be applied to the property. I have attached the Lisp and DCL code. Thank you, any help would be greatly appreciated.
(prompt "\nType TEST_DCL1 to run...") (vl-load-com) (defun C:TEST_DCL1 () (setq doc (vla-get-ActiveDocument (vlax-get-Acad-Object))) (setq db (vla-get-Database doc)) (setq si (vla-get-SummaryInfo db)) (setq pn (vla-GetCustomByKey si "Drawing Number" 'value3)) (setq dcl_id (load_dialog "test_dcl1.dcl")) (if (not (new_dialog "test_dcl1" dcl_id)) (exit ) );if (set_tile "PNo" value3) (progn (mode_tile "PNo" 1) (action_tile "PNa" "(vla-SetCustomByKey si "Drawing Number" $value)")) (start_dialog) (unload_dialog dcl_id) (princ) );defun (princ)
test_dcl1 : dialog { label = "Clerical Data Control Menu"; : row { : column { width = 8; : text {label = "Part Number";} : text {label = "Drawing Type";} : text {label = "Part Name";} : text {label = "Cage Code";} : text {label = "Contract number";} } : column { width = 14; : edit_box {key = "PNo"; width = 10; value = "";} :row { : radio_button {label = "Printed Board"; key = PB; value = "0";} : radio_button {label = "Printed Board Assembly"; key = PBA; value = "0";} } : edit_box {key = "PNa"; width = 10;} : edit_box {key = "CaC"; width = 10;} : edit_box {key = "CNo"; width = 10;} } } ok_cancel; }
Solved! Go to Solution.