Home  >  Support  >  progeCAD Questions
become a progeCAD superstar, earn points giving your friends CAD answers!

I have an application that opens cad and zooms to an entity. This I can do through icad.lsp.

Hi, I have an application that opens cad and zooms to an entity. This I can do through icad.lsp. If the drawing is already open then icad.lsp is not run. We are migrating to progecad from icad 2001 where icad.lsp did run everytime a drawing was opened even if it was already open. Is there any way icad.lsp can run even if drawing is open with Progecad?
asked 1 year ago in progeCAD VBA by wonton / Level: Drafter (104 points)

2 Answers

0 like 0 dislike
Dear progeCAD Customer,

the new ACADLSPASDOC variable is present in the progeCAD latest versions.
After you turn it ON, the icad.lsp document (that has to be placed in the progeCAD installation folder) is loaded any time you open a drawing.
In case the suggested variable is OFF (default setting), the icad.lsp is loaded only for the first drawing that you open.
In case you want to always load a lsp, independently from the  ACADLSPASDOC variable setting, you have to name it icaddoc.lsp.

The reported lsp loading system is the same one as AutoCAD, it is present for compatibility reasons.

We look forward to receiving your feedback.

For  further assistance, on this topic, please refer to the support@progecad.com email address. Thank you.

Best Regards
answered 1 year ago by progeCAD / Level: Engineering Manager (3,688 points)
0 like 0 dislike
Hi, Thanks for your reply.
The variable was already on. If a drawing is opened it runs icad.lsp or icaddoc.lsp.  But if the same drawing is loaded and is already open it prompts "Do you want to revert to last saved version" if you hit no then the neither lsp file is run. It's this that's causing me the problem. As I mentioned intellicad 2001 did this fine, maybe it's just been dropped?
answered 1 year ago by wonton / Level: Drafter (104 points)

Please log in or register to answer this question.

Related questions