Jump to content

Recommended Posts

Posted

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.

Posted

Let try to clean all **** char in DCL code file

Posted

There was no chars (stars) in original file . it was generated after Wrap code of the Forum. original file attached.

66.DCL

Posted

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)
)

Posted

Thanks for your codes.

Actually there is no any errors in codes.

Problem occurred after re installing the auto cad.

Posted
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. :unsure:

Hope someone with the right knowledge see you thread.

 

Merry Christmas btw! 8)

Posted

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

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...