CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.098.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator and the updated Barcode generator. New AutoCAD 2026 commands and variables.
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedCustom command/Macro help

 Post Reply Post Reply Page  <12
Author
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post Posted: 25.Mar.2014 at 21:02
>> Found it under acad2013doc.lsp
 
I have an older version here, so maybe it's different now, but I assume there's a header with some information, which you should read carefully.  At least in some earlier versions, it is not recommended to edit the acad2xxx.lsp file, but there isn't an acad2xxxdoc.lsp file until some later version than mine, so maybe it's okay to edit that.  If so, yes, you can just add that line anywhere other than inside some other function in it.  If it's not recommended, and you don't have an acaddoc.lsp file already, you can make one, in some folder that's in your Support File Search Path list, even if it contains only that one (autoload) function -- you'll develop other things you want to put in it.  It is run every time a drawing is opened, so things in it are available in all drawings, and maybe that's done with acad2013doc.lsp, too.  The issue is that some related files, like the one you probably have without the doc in its name, may be loaded only once when AutoCAD is started, and not with every drawing that's opened, so commands defined in them won't necessarily be available in all drawings.  So read up on the files and which are loaded when.
Back to Top
ebrody View Drop Down
Groupie
Groupie


Joined: 20.Mar.2014
Location: United States
Using: AutoCAD Civil 3D 2013
Status: Offline
Points: 26
Direct Link To This Post Posted: 25.Mar.2014 at 21:05
Good advice Kent, I'll take a look into that. For now though, putting that line in the acad21013doc.lsp did indeed work, and it autoloaded it as soon as I fired the command, so I'm happy with that for now. Just got to learn some of the programming syntax for cad commands, and I'm sure ill be rolling along with many-a-custom commands.

Thanks for the help!
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,133 seconds.