wimal Posted December 19, 2011 Posted December 19, 2011 After re installing auto cad 2006 any dcl files are not working.sample file and error message in acad .dce file is as follows LINK1 : dialog { ***** *** label = " test"; ****** ** : column { ****** ** * : boxed_column { : radio_column* { ***** *********** key = "radios"; label = "cadgroup"; ****** ********** }* ****** ****** : edit_box { ****** ******** key = "scale"; ****** ******** label = "Scale:"; edit_width = 3; value = "40"; ***** initial_focus = true; ****** ****** } : edit_box { ****** ******** key = "type"; ****** ******** label = "Bar Type:"; edit_width = 1; value = "R"; ***** initial_focus = true; } * : edit_box { ****** ******** key = "dia"; ****** ******** label = "Bar Dia.:"; edit_width = 2; value = "6"; ***** initial_focus = true; } ******: edit_box { ****** ******** key = "mark"; ****** ******** label = "Bar Mark:"; edit_width = 3; value = "01"; ***** initial_focus = true; ****** ****** ***** ****** } ****** ***** ****** : edit_box { ****** ******** key = "spacing"; ****** ******** label = "Bar Spacing:"; edit_width = 3; value = "200"; ***** initial_focus = true; ****** ****** ***** ****** } ****** **** } ****** ** * : boxed_row { label = "ww"; : button { key = "accept"; label = " Okay "; is_default = true; } : button { key = "cancel"; label = "Cancel"; is_default = false; is_cancel = true; } ****** **** }** ****** ** } } ====== DCL semantic audit of C:/Program Files/AutoCAD 2006/$vld$.dcl ====== Error. Widget named "default_dcl_settings" is undefined. Error in "LINK1". (widget type = ** undefined **, key = "") Widgets of this type cannot have children. Quote
ketxu Posted December 19, 2011 Posted December 19, 2011 Let try to clean all **** char in DCL code file Quote
wimal Posted December 19, 2011 Author Posted December 19, 2011 There was no chars (stars) in original file . it was generated after Wrap code of the Forum. original file attached. 66.DCL Quote
ripuz Posted December 21, 2011 Posted December 21, 2011 Hello Wimal! I looked at the dcl file but I couldn´t find anything that should result in an error. If you want to copy-paste, put the dcl code in c:\temp\66.dcl (the lisp code can be where ever you want). DCL code: LINK1 : dialog { label = " test"; : column { : boxed_column { : radio_column { key = "radios"; label = "cadgroup"; } : edit_box { key = "scale"; label = "Scale:"; edit_width = 3; value = "40"; initial_focus = true; //All other focus attributes has been taken away with comment. } : edit_box { key = "type"; label = "Bar Type:"; edit_width = 1; value = "R"; //initial_focus = true; } : edit_box { key = "dia"; label = "Bar Dia.:"; edit_width = 2; value = "6"; //initial_focus = true; } : edit_box { key = "mark"; label = "Bar Mark:"; edit_width = 3; value = "01"; //initial_focus = true; } : edit_box { key = "spacing"; label = "Bar Spacing:"; edit_width = 3; value = "200"; //initial_focus = true; } } : boxed_row { label = "ww"; : button { key = "accept"; label = " Okay "; //is_default = true; } : button { key = "cancel"; label = "Cancel"; is_default = false; is_cancel = true; } } } } LISP code: (defun c:test ( / dcl_id buttonPressed) ; Load dcl file. (setq dcl_id (load_dialog "c:\\temp\\66.dcl")) ; Load dialog definition if it´s not already loaded. (if (not (new_dialog "LINK1" dcl_id)) (progn (alert "Couldn´t find 66.dcl.") (exit) ) ) (action_tile "accept" "(setq buttonPressed 0)(done_dialog)") (action_tile "cancel" "(setq buttonPressed 1)(done_dialog)") ; Start dialogbox. (start_dialog) ; Unload dialog. (unload_dialog dcl_id) ) Quote
wimal Posted December 21, 2011 Author Posted December 21, 2011 Thanks for your codes. Actually there is no any errors in codes. Problem occurred after re installing the auto cad. Quote
ripuz Posted December 22, 2011 Posted December 22, 2011 Thanks for your codes.Actually there is no any errors in codes. Problem occurred after re installing the auto cad. Okey, then i´m not that much of use. Hope someone with the right knowledge see you thread. Merry Christmas btw! Quote
ketxu Posted December 22, 2011 Posted December 22, 2011 Maybe you should re-pair your CAD, or re-copy all *.dcl (base.dcl, acad.dcl...) of CAD Try to search files include text "LINK1" default_dcl_settings contents to see problem Quote
wimal Posted December 23, 2011 Author Posted December 23, 2011 Maybe you should re-pair your CAD, or re-copy all *.dcl (base.dcl, acad.dcl...) of CAD Try to search files include text "LINK1" default_dcl_settings contents to see problem Yes I will try Merry Christmas all of you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.