Community,
I was recently working with DCL files in the AutoCAD Visual LISP Editor (VLIDE).
Many of you have experienced the error about not being able to preview the DCL file.
I found a solution that works for AutoCAD 2019 and Windows 10. Perhaps it can work for you, too.
The DCL preview command attempts to create a file in the 'Program Files' folder , which is protected.
The preview command uses the same "preview" name each time.
Try this:
- Create a file named $vld$.dcl on your desktop.
- Copy the file to C:\Program Files\Autodesk\AutoCAD 2019 (provide necessary permission)
- Now in VLIDE, test the DCL preview command.
Since the file already exists, VLIDE can edit the file instead of having to create it. I tested multiple DCL files successfully.
I hope this is helpful.
Regards,
Jerry