You are on page 1of 5

Previewing DCL Files | AfraLISP

http://www.afralisp.net/dialog-control-language/tutorials/preview-dcl-file...

Home Contact Site Map

AutoLISP Beginners' Tutorials Intermediate Tutorials Advanced Tutorials Application Tutorials Tips'n'Tricks Visual LISP Beginners' Tutorials Intermediate Tutorials DCL Beginners' Tutorials Intermediate Tutorials VBA VBA Tutorials VBA Applications Tips'nTricks AutoCAD Customization Tutorials Tips'n'Tricks Reference AutoLISP Functions Visual LISP Sample Files DXF Group Codes The AutoCAD APIs DCL Tile Attributes AutoLISP DCL Functions System Variables AutoCAD Object Model Sin and Cos Functions VLAX Enumeration Download Forum

Previewing DCL Files


1 trong 5

9/23/2013 7:52 AM

Previewing DCL Files | AfraLISP

http://www.afralisp.net/dialog-control-language/tutorials/preview-dcl-file...

by Kenny Ramage Dialog boxes can be previewed without running the associated AutoLISP code using the Visual LISP editor. This is extremely useful when you are just designing the layout for the dialog box. In fact, the Visual LISP editor also make an excellent editor for DCL files as it colour codes DCL syntax to make it easier to work with. The image below shows the test_dcl2.dcl DCL file created in the previous tutorial open in the Visual LISP Editor. If you'd like to learn more about the Visual LISP Editor, start with The Visual LISP Editor - Part 1 tutorial.

1. 2. 3. 4. 5. 6.

Firstly, open AutoCAD. Now open the Visual LISP Editor : Tools AutoLISP Visual LISP Editor Open the DCL file that you wish to view : File Open Select "DCL Source Files" from the "Files of Type" drop-down menu and then select your DCL file. Once your DCL file has opened, select : Tools Interface Tools Preview DCL in Editor Enter your dialog name if it is not already displayed.

2 trong 5

9/23/2013 7:52 AM

Previewing DCL Files | AfraLISP

http://www.afralisp.net/dialog-control-language/tutorials/preview-dcl-file...

7. Select "OK" 8. The editor flips to AutoCAD and your dialog box is displayed. Note: If you receive an error message such as ; warning:cannot create tmp file you will need to set permissions for the folder where the Visual LISP Editor is attempting to create a temporary file. Prodeed as follows:

1. Go to C:\Program Files (or wherever you have AutoCAD installed), right-click the AutoCAD 2010 folder and select "Properties" from the right-click menu and then select the "Security" tab. 2. Click "Edit" under "Group or User Names", select "Users" and check the "Allow" box next to "Full Control". This will set permisions for "Users" to "Full Control". 3. Click "Apply" and then click "OK" to close the "Permissions" dialog box. 4. Finally, click "OK" (or "Apply" if active) to exit the "Properties" dialog box.

3 trong 5

9/23/2013 7:52 AM

Previewing DCL Files | AfraLISP

http://www.afralisp.net/dialog-control-language/tutorials/preview-dcl-file...

Dialog Control Language (DCL)


DCL Beginners' Tutorials DCL Intermediate Tutorials

AfraLISP Archive
Hey, what's happened to AfraLISP? If you've visited our site before, you'll notice some big changes. We're currently revamping the entire site to bring you updated tutorials and a better user experience. However, if there's something you can't find, the AfraLISP Archive contains a full copy of the original site as originally created by Kenny Ramage.

AutoLISP Learning Resources


Lee Mac - AutoLISP Tutorials and Programmes Jeffery P Sanders - AutoLISP Tutorials Ron Leigh - AutoLISP Tutorials Pixel Graphics Inc. - AutoLISP Tutorials A'CAD Solutions - AutoLISP Tutorial CAD Digest - AutoLISP Tutorials Autodesk - Customization Tutorials Daily AutoCAD - AutoLISP Tips & Tricks

Online Books
The ABC's of AutoLISP The Visual LISP Developer's Bible

AutoLISP Forums
CADTutor Autodesk Discussion Groups
4 trong 5

9/23/2013 7:52 AM

Previewing DCL Files | AfraLISP

http://www.afralisp.net/dialog-control-language/tutorials/preview-dcl-file...

Autodesk User Group International (AUGI) The Swamp 120 Tutorials and reference documents published at AfraLISP so far.
AutoCAD Tutorials PDF Files View Files

Back to top Home Cared for by David Watson 2013

5 trong 5

9/23/2013 7:52 AM

You might also like