Hi All,
I've recently upgraded to Autocad 2012 (x64). All seems fine, except that I haven't been able to use the preview dcl function in the VisualLISP editor on any of the computers that have this system installed. When I try, I get this message:
; warning:cannot create tmp file for DCL: "C:/Program Files/Autodesk/AutoCAD 2012 - English/$vld$.dcl"
Has anyone else found this? Are there any solutions/workarounds or is this a bug?
Thanks in advance.
John
Solved! Go to Solution.
Solved by JBerns. Go to Solution.
Solved by bgingerich. Go to Solution.
Thanks for your reply.
I think you are right in that the folder is read only. I've tried to change this in the properties, but windows is not holding the settings. That is, as soon as I've changed it, I select the folder again and it shows as read only.
Also, I've got administrator rights on this computer.
Cheers
John
This problem exists for all Versions of AutoCAD (x64) in Windows 7. So if the problem is because Windows 7 does not allow programs or users to write to that folder, is it possible to get Visual Lisp to save the temporary $vdl$.dcl to a different folder?
HI All,
It's been a while since my post and yes, I'm still unable to preview the dcl's in the visual lisp editor. I have tried to change the folder rights, but no luck, even though I've got full admin rights on my machine. Has anyone had similar problems using windows 7? More to the point, are other users able to preview dcl's without issues?
Thanks in advance
John
I had this same issue. If I'm remembering right, I had to give the "system" account "full control" or "read, write, and modify" access or something like that. What's happening is the computer isn't allowing any programs (run under the "System" account) to modify/create files in that folder.
(if ("mysolution"=answer) then (click "Accept As Solution"))
Thanks for the tip. The system account had full control rights, but for some reason, the users account didn't. I gave this account full control and it all works now...
Thanks
John
I agree with you, we should not have to violate Windows security measures to preview DCL files.
This could easily be fixed if Autodesk would change the Visual LISP Editor preview tool to use the 'Documents' folder instead of the 'Program Files' folder.
Even better, include a configuration option to select the temporary path.
This is not on the Idea Station that I could find. Is anyone aware of a post where we can vote to get this corrected?
Regards,
Jerry
Until, and if, Autodesk gives us the ability to change this setting, the most practical answer is to do as @3wood suggested. Make yourself a command that loads and displays the dialog.
Ackn.
I may have just discovered a simple solution for previewing DCL files in VLIDE - at least it worked for me in AutoCAD 2019.
The DCL preview command attempts to create a file in the 'Program Files' folder , which is protected.
It uses the same "preview" name each time.
Try this:
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. Mark as solution if it helps you.
Regards,
Jerry
I have used the attached forever. Perhaps it will help you.
John F. Uhden
I think the DTEST file you posted is missing a supporting function? When I run DTEST, the following error is issued:
; error: no function definition: @CV_RTRIM
I tried it with the simple example, HELLO.DCL, which previews successfully with the built-in viewer.
Regards,
Jerry
My apologies. I posted without having checked what parts were missing.
I think all the parts are included with this one.
John F. Uhden
Thanks, your DTEST.LSP works.
Since Visual Lisp looks the same as it did when it first came out, I doubt Autodesk has any plans to upgrade it.
I have proved your solution but the "preview DCL" does not function
Thank you