.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

redefine open command

3 REPLIES 3
Reply
Message 1 of 4
kw_friday
341 Views, 3 Replies

redefine open command

I have rewritten the open command and would like Autocad 2015 to use my command. If, however I don't start in a dwg my code will not load(I undefined and redefined "open" in acad.lsp). Once a dwg is opened then my code is active. How can I force my open command to be the only one used?

3 REPLIES 3
Message 2 of 4
hgasty1001
in reply to: kw_friday

Hi,

 

In zero document state you have very limited options, this link may help: ZDS

 

Gaston Nunez

Message 3 of 4
bowa
in reply to: kw_friday

add your code to the ACAD2014doc.lsp file as part of a s::startup function. This one loads with every drawing (instead of just once on opening AutoCAD) and works nicely for similar things on our end.

Message 4 of 4
fieldguy
in reply to: bowa

You should create / use "acaddcoc.lsp" to apply to every document.

 

acaddoc.lsp does not exist in an OOTB install (it will never be overwritten by a re-install).

 

Check help (search "acaddoc")

 

<Help Quote>Warning Do not modify the reserved acad<release>doc.lsp file. Autodesk provides the acad<release>doc.lsp file, which contains required, release-specific, AutoLISP-defined functions. This file is loaded into memory immediately before the acaddoc.lsp file is loaded. <release> represents the release of the AutoCAD-based product; for example, acad2012doc.lsp would be the file loaded by AutoCAD 2012-based products.</Help Quote>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost