<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog nauseam &#187; LISP</title>
	<atom:link href="http://www.blog.cadnauseam.com/tag/lisp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.cadnauseam.com</link>
	<description>Mostly AutoCAD discussion, but also music, image manipulation and video</description>
	<lastBuildDate>Wed, 18 Jan 2012 06:02:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Programmers, have your say</title>
		<link>http://www.blog.cadnauseam.com/2010/05/11/programmers-have-your-say/</link>
		<comments>http://www.blog.cadnauseam.com/2010/05/11/programmers-have-your-say/#comments</comments>
		<pubDate>Tue, 11 May 2010 08:57:22 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[Autodesk]]></category>
		<category><![CDATA[Customisation]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Other Blogs]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[Feedback]]></category>
		<category><![CDATA[Survey]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=1007</guid>
		<description><![CDATA[<p>Autodesk wants your input in its annual API survey. What used to be a closed survey for Autodesk Developer Network (ADN) members has been open to all for the last couple of years, and if you do any Autodesk-based development at all I encourage you to take part. Yes, that includes those of us [...]]]></description>
			<content:encoded><![CDATA[<p>Autodesk wants your input in its annual API survey. What used to be a closed survey for Autodesk Developer Network (ADN) members has been open to all for the last couple of years, and if you do any Autodesk-based development at all I encourage you to take part. Yes, that includes those of us who do most of our development in LISP. In fact, I am <em>especially</em> keen to see LISP developers adequately represented in this survey.</p>
<p>This is a one-page survey and it doesn&#8217;t take long. The full list of API surveys is on Kean Walmsley&#8217;s <a href="http://through-the-interface.typepad.com/through_the_interface/2010/05/api-wishlist-surveys-for-autodesk-products.html">Through the Interface</a> blog. Most of you would be interested in the AutoCAD survey, so here&#8217;s a <a href="http://www.zoomerang.com/Survey/WEB22ALQR9G6P3">direct link</a> to that.</p>
<p>Kean assures us that our feedback will not fall on deaf ears, although I have yet to see any evidence of that in terms of any change to Autodesk&#8217;s decade-long policy of total LISP neglect. I guess many of us gave up hope of any improvement years ago and can&#8217;t be bothered providing feedback any more. Please don&#8217;t give up. Fill in the survey and let Autodesk know you still exist.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2010/05/11/programmers-have-your-say/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CAD International interview on drcauto and other subjects</title>
		<link>http://www.blog.cadnauseam.com/2010/02/01/cad-international-interview-on-drcauto-and-other-subjects/</link>
		<comments>http://www.blog.cadnauseam.com/2010/02/01/cad-international-interview-on-drcauto-and-other-subjects/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 14:33:02 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[AutoCAD LT]]></category>
		<category><![CDATA[Autodesk]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Interoperability]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Legal]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Other Blogs]]></category>
		<category><![CDATA[Other Products]]></category>
		<category><![CDATA[TrueView]]></category>
		<category><![CDATA[CAD International]]></category>
		<category><![CDATA[Deelip Menezes]]></category>
		<category><![CDATA[drcauto]]></category>
		<category><![CDATA[LT Toolkit]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=749</guid>
		<description><![CDATA[<p>This morning I spoke with CAD International&#8216;s Nigel Varley. Here is a paraphrased summary of the interview.</p> <p>SJ: When did CAD International buy the drcauto intellectual property rights? NV: About two weeks ago.</p> <p>SJ: You are currently helping drcauto customers with authorisation codes, is that correct? NV: Yes, masses of them. It&#8217;s taking up [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I spoke with <a href="http://www.cad.com.au/">CAD International</a>&#8216;s Nigel Varley. Here is a paraphrased summary of the interview.</p>
<p><span style="color: #008080;">SJ: When did CAD International buy the drcauto intellectual property rights?</span><br />
NV: About two weeks ago.</p>
<p><span style="color: #008080;">SJ: You are currently helping drcauto customers with authorisation codes, is that correct?</span><br />
NV: Yes, masses of them. It&#8217;s taking up a lot of our peoples&#8217; time.</p>
<p><span style="color: #008080;">SJ: Are you charging for this service?</span><br />
NV: Not at present.</p>
<p><span style="color: #008080;">SJ: Do you intend to charge for this service in the future?</span><br />
NV: Maybe. We may need to, both to pay for our time and to recoup our investment. I don&#8217;t particularly like the idea of annual renewals for software, so we may do something different in future.</p>
<p><span style="color: #008080;">SJ: If somebody wanted to buy drcauto products such as LT Toolkit now, could they do so?</span><br />
NV: No, we&#8217;re still processing the materials we were given when we bought the rights. It wasn&#8217;t left in a well-organised state. I&#8217;m not sure if that was done deliberately or if it was just like that.</p>
<p><span style="color: #008080;">SJ: Do you have any plans to continue development of LT Toolkit or the other drcauto products?</span><br />
NV: It&#8217;s too early to say at this time. I understand it doesn&#8217;t work right now with AutoCAD LT 2010 with Update 2 applied, or on 64-bit Windows, or on Windows 7. It&#8217;s not clear at this stage how much work is involved in making it work. It should be doable, but we can&#8217;t make any commitments at this stage.</p>
<p><span style="color: #008080;">SJ: So do you have a timeframe for doing any of this stuff?</span><br />
NV: No, it&#8217;s too early. We&#8217;re still processing it.</p>
<p><span style="color: #008080;">SJ: What about former drcauto employees helping people out with authorisation codes?</span><br />
NV: They have no rights to do that. They don&#8217;t own the intellectual property, we do. People need to be very careful.</p>
<p><span style="color: #008080;">SJ: Are you contemplating legal action?</span><br />
NV: I think I&#8217;ll keep that under my hat for now.</p>
<p><span style="color: #008080;">SJ: Do you foresee any problems with Autodesk if you go ahead with LT Toolkit?</span><br />
NV: I don&#8217;t think so. Autodesk would be pretty naive, with competing products around at a lower price than LT and with LISP built in, to think that they would gain any sales by blocking LT Toolkit. They would just be shooting themselves in the foot.</p>
<p><span style="color: #008080;">SJ: Autodesk has always been strongly opposed to products like LT Toolkit. Are you concerned about legal action from Autodesk?</span><br />
NV: Well, people say that Autodesk has been against it, but I haven&#8217;t seen any evidence of that. When I spoke to the late Gary D&#8217;Arcy he told me that Autodesk had never once even contacted him to try to get him to stop developing it.</p>
<p>On Deelip&#8217;s blog there has been some discussion about resellers and what they should be allowed to do, so I asked some questions along those lines.</p>
<p><span style="color: #008080;">SJ: What is the relationship between CAD International in the USA and Australia?</span><br />
NV: We&#8217;re an Austalian company, moving into the US marketplace for those people in the USA who want to buy our products. We don&#8217;t have offices in the USA, but we do have people on the ground.</p>
<p><span style="color: #008080;">SJ: Is CAD International an authorised AutoCAD reseller?</span><br />
NV: No. We&#8217;ve been selling Autodesk products for 15 years without a direct relationship. We buy from Scholastic like everybody else in the same position. It&#8217;s not worth becoming a dealer; the obligations are too great and the margins are not worthwhile. We&#8217;ve been asked on several ocasions over the years and always said no.</p>
<p>[Note: I've since read (in something written well before this issue was raised here) that Autodesk Australia intends to tighten up the reseller situation in the very near future. These things go in cycles, and have for the last 25 years.]</p>
<p><span style="color: #008080;">SJ: Does Autodesk have a problem with you promoting competing products such as Bricscad?</span><br />
NV: They have never spoken to us about it in the past, but as we don&#8217;t have a direct relationship with them it&#8217;s not surprising.</p>
<p><span style="color: #008080;">SJ: I see from your web site that you are selling DWG TrueView for $195. Isn&#8217;t that a free product?</span><br />
NV: That fee is for supply services; research services if you prefer. People can download it from Autodesk if they like or get it from us. We just put it on the site as a trial to see if anybody wanted to buy it.  Nobody has, yet.</p>
<p><span style="color: #008080;">SJ: I can&#8217;t say I&#8217;m greatly surprised by that. Has Autodesk contacted you about this issue?</span><br />
NV: No, we&#8217;ve heard nothing from Autodesk. They don&#8217;t really care about us, we&#8217;re a pretty small player in the market.</p>
<p><em>[Edit: the $195 price tag has since vanished from the site.]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2010/02/01/cad-international-interview-on-drcauto-and-other-subjects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>More on drcauto, LT Toolkit and CAD International</title>
		<link>http://www.blog.cadnauseam.com/2010/02/01/more-on-drcauto-lt-toolkit-and-cad-international/</link>
		<comments>http://www.blog.cadnauseam.com/2010/02/01/more-on-drcauto-lt-toolkit-and-cad-international/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 07:51:40 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[Autodesk]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Other Blogs]]></category>
		<category><![CDATA[Other Products]]></category>
		<category><![CDATA[Other Sites]]></category>
		<category><![CDATA[AutoCAD LT]]></category>
		<category><![CDATA[CAD International]]></category>
		<category><![CDATA[Deelip Menezes]]></category>
		<category><![CDATA[drcauto]]></category>
		<category><![CDATA[LT Toolkit]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=741</guid>
		<description><![CDATA[<p>Things have moved on since my first post on this subject in which I passed on the information that Leonard Liang (a former drcauto employee) could help with codes for LT Toolkit orphans. In recent developments</p> In a comment in a WorldCAD Access post, Nigel Varley from Australian company CAD International stated that they [...]]]></description>
			<content:encoded><![CDATA[<p>Things have moved on since my <a href="http://www.blog.cadnauseam.com/2010/01/15/hope-for-drcauto-lt-toolkit-orphans/">first post</a> on this subject in which I passed on the information that Leonard Liang (a former drcauto employee) could help with codes for LT Toolkit orphans. In recent developments</p>
<ul>
<li>In a comment in a <a href="http://worldcadaccess.typepad.com/blog/2010/01/drcauto-out-of-business.html">WorldCAD Access post</a>, Nigel Varley from Australian company <a href="http://www.cad.com.au/">CAD International</a> stated that they had bought the intellectual property rights to the drcauto software, and that drcauto codes and software obtained from former employees are illegal.</li>
<li>Another comment on the same post from former drcauto employee Kevin J Secomb lamented the demise of Gary D&#8217;Arcy&#8217;s dream and criticised CAD International for indicating in an email to users that they would charge for authorisation codes.</li>
<li>CAD International created a <a href="http://www.cad.com.au/drcauto/">web page</a> describing the situation with regard to drcauto products, including a statement that it would &#8220;offer immediate assistance to those needing new authorisation codes&#8221;.</li>
<li><a href="http://www.deelip.com/">Deelip Menezes</a> made <a href="http://www.deelip.com/?p=1230">a blog post</a> on the subject, followed by <a href="http://www.deelip.com/?p=1234">another one</a> containing a reaction from Autodesk&#8217;s Jim Quanci. Poth posts are worth reading, as are the comments from various observers. The first post went off at a bit of a tangent about Autodesk&#8217;s apparent benevolence towards resellers that don&#8217;t toe the corporate line (drcauto <a href="http://south-apac.autodesk.com/adsk/servlet/partner/info?siteID=1157326&amp;catID=11608656&amp;product=10310&amp;id=11738172&amp;cid=315553">is still listed</a> as an Authorised AutoCAD reseller a decade after being dropped by Autodesk). The second post included words from Jim that the late Gary D&#8217;Arcy was a great character, albeit a pain to Autodesk. Having met Gary many years ago and followed the story of LT Toolkit with interest, I can confirm the truth of both statements.</li>
</ul>
<p>I thought I would have a chat with CAD International&#8217;s Nigel Varley to see if I could clear up the situation as he sees it. It was a very interesting interview, the results of which I will publish very soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2010/02/01/more-on-drcauto-lt-toolkit-and-cad-international/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hope for drcauto LT Toolkit orphans</title>
		<link>http://www.blog.cadnauseam.com/2010/01/15/hope-for-drcauto-lt-toolkit-orphans/</link>
		<comments>http://www.blog.cadnauseam.com/2010/01/15/hope-for-drcauto-lt-toolkit-orphans/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 03:20:51 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[Customer Service]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Other Blogs]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[AutoCAD LT]]></category>
		<category><![CDATA[drcauto]]></category>
		<category><![CDATA[Evan Yares]]></category>
		<category><![CDATA[LT Toolkit]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=718</guid>
		<description><![CDATA[<p>LT Toolkit from the now-defunct drcauto was an add-on for AutoCAD LT that provided LISP and other capabilities that Autodesk disabled. Autodesk hated this, of course, but the late Gary D&#8217;Arcy made sure everything was done legally so it couldn&#8217;t be stopped even by Autodesk&#8217;s hyperactive legal team.</p> <p>If you are a user of [...]]]></description>
			<content:encoded><![CDATA[<p>LT Toolkit from the now-defunct <a href="http://www.drcauto.com.au/">drcauto</a> was an add-on for AutoCAD LT that provided LISP and other capabilities that Autodesk disabled. Autodesk hated this, of course, but the late Gary D&#8217;Arcy made sure everything was done legally so it couldn&#8217;t be stopped even by Autodesk&#8217;s hyperactive legal team.</p>
<p>If you are a user of LT Toolkit and you want to keep using the software now the company has closed down, you may find this information from <a href="http://www.evanyares.com/">Evan Yares</a> useful:</p>
<blockquote><p>I&#8217;ve gotten in contact with Leonard Liang, the former key developer at DRCauto. He&#8217;s asked me to send any Toolkit Max users to him, and he will help them. His website is <a href="http://www.cadsta.com/">www.cadsta.com</a>. His email, at that domain, is &#8220;leonardl&#8221;.</p></blockquote>
<p>Source: a comment in this <a href="http://worldcadaccess.typepad.com/blog/2010/01/drcauto-out-of-business.html">this WorldCAD Access post</a>. If you don&#8217;t read comments, you may well have missed this, so I thought it was worth repeating.</p>
<p><em>Edit: events have overtaken this news since it was written. Please see <a href="http://www.blog.cadnauseam.com/2010/02/01/more-on-drcauto-lt-toolkit-and-cad-international/">here</a> and <a href="http://www.blog.cadnauseam.com/2010/02/01/cad-international-interview-on-drcauto-and-other-subjects/">here</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2010/01/15/hope-for-drcauto-lt-toolkit-orphans/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AutoCAD virus protection update</title>
		<link>http://www.blog.cadnauseam.com/2009/08/14/autocad-virus-protection-update/</link>
		<comments>http://www.blog.cadnauseam.com/2009/08/14/autocad-virus-protection-update/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 08:29:59 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[Autodesk]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Other Blogs]]></category>
		<category><![CDATA[Virus]]></category>
		<category><![CDATA[Warning]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=687</guid>
		<description><![CDATA[<p>As I mentioned in my last post, I had some reservations about the code provided by Autodesk to deal with suspect acad.vlx and logo.gif files. Based on a suggestion from Jimmy Bergmark, I have written my own, safer version which you can download here: clean_virus_safe.lsp.</p> <p>The comments at the top of the clean_virus_safe.lsp file [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned in <a href="http://www.blog.cadnauseam.com/2009/08/10/another-autocad-malware-warning/">my last post</a>, I had some reservations about the code provided by Autodesk to deal with suspect acad.vlx and logo.gif files. Based on a suggestion from Jimmy Bergmark, I have written my own, safer version which you can download here: <a href="http://www.cadnauseam.com/download/clean_virus_safe.lsp">clean_virus_safe.lsp</a>.</p>
<p>The comments at the top of the clean_virus_safe.lsp file explain what to do with it, but I will reproduce some of the relevant points here.</p>
<ul>
<li><strong>Purpose</strong>: Checks for existence of acad.vlx and logo.gif files, which are associated with virus AL/Logo-A, also known as ACAD/Unexplode, ACAD/Agent.A or ACM_UNEXPLODE.B. Written as a safer alternative to Autodesk&#8217;s code which deletes suspect files without prior warning. This code renames the files instead.</li>
<li><strong>Legal</strong>: Provided as-is with no warranty whatsoever, use at own risk. May be distributed freely.</li>
<li><strong>Usage</strong>: Append the contents of this file into a startup LISP file (e.g. acaddoc.lsp in your search path &#8211; create such a file if it does not exist). Autodesk&#8217;s suggestion to modify the acad20xx.lsp file should not be followed: this is bad practice. The acad20xx.lsp file is Autodesk&#8217;s file and any modifications you make to it are likely to be lost when updates and patches are applied.</li>
<li><strong>Effects</strong>: Any and all files named acad.vlx and logo.gif and located in AutoCAD&#8217;s search path will be renamed, e.g. &#8220;acad.vlx&#8221; will become &#8220;[Suspected Virus] acad.vlx0&#8243;. The name will end in a number starting with 0. If other suspect files are later found in the same location, those files will be renamed to end with 1, 2, 3 and so on.</li>
</ul>
<p>I don&#8217;t have a copy of the actual virus, and would like to get hold of one with a view to possibly improving this code. If you have a copy, I would be grateful if you could <a href="http://www.cadnauseam.com/Email.htm">contact me</a> so I can dissect it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2009/08/14/autocad-virus-protection-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is loaded at AutoCAD startup, and when?</title>
		<link>http://www.blog.cadnauseam.com/2008/09/01/what-is-loaded-at-autocad-startup-and-when/</link>
		<comments>http://www.blog.cadnauseam.com/2008/09/01/what-is-loaded-at-autocad-startup-and-when/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 06:03:48 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[AutoLISP]]></category>
		<category><![CDATA[CUI]]></category>
		<category><![CDATA[Startup]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=157</guid>
		<description><![CDATA[<p>Warning, CAD nerd stuff ahead. This is a long and technical post and if you&#8217;re using AutoCAD in a largely out-of-the-box state you probably won&#8217;t care about any of it.</p> <p>If your modification of AutoCAD extends beyond the trivial, you may find it useful to know what AutoCAD loads, and in what order things [...]]]></description>
			<content:encoded><![CDATA[<p>Warning, CAD nerd stuff ahead. This is a long and technical post and if you&#8217;re using AutoCAD in a largely out-of-the-box state you probably won&#8217;t care about any of it.</p>
<p>If your modification of AutoCAD extends beyond the trivial, you may find it useful to know what AutoCAD loads, and in what order things are loaded. It is possible for LISP files in particular to tread on each other&#8217;s toes, so knowing what gets loaded when can be useful information for diagnosing such clashes. This post aims to provide that information. It uses AutoCAD 2009 as an example, but the same principles apply to all releases from AutoCAD 2006 onwards.</p>
<p>On startup, the first things AutoCAD loads are its CUI files. It first loads the Enterprise CUI file, then the Main CUI file, then any partial CUI files attached to the Main, then any partial CUI files attached to the Enterprise. I have no idea of the reasoning behind this slightly strange order, but there it is. The order of the partial CUIs loaded in each case is determined by the order in which they appear in the parent CUI files, which is determined by the order in which you attached them. If you don&#8217;t like this order, you can attach and reattach them in the CUI interface, or you can do the same thing much quicker with a text editor if you feel confident enough. If there are LISP files associated with these CUI files, they are not loaded yet. You&#8217;ll need to wait a few paragraphs for that.</p>
<p>Next, if you have created a file called acad.rx in AutoCAD&#8217;s search path, any ARX files listed in that file will be loaded. There are other ways in which developers can load their ARX files at startup, but I won&#8217;t go into that here.</p>
<p>Following that, the acad*.lsp files are loaded. First, Autodesk&#8217;s acad2009.lsp file is loaded. Next, if you have created a file called acad.lsp, that is loaded. These two files are only loaded at first startup, unless the ACADLSPASDOC system variable is set to 1, in which case the acad.lsp file is reloaded with each new drawing. Next comes Autodesk&#8217;s acad2009doc.lsp and any acaddoc.lsp file you may have created, in that order. These two files are loaded at startup and with every new drawing session.</p>
<p>It&#8217;s worth pointing out here that the acad200x.lsp and acaddoc200x.lsp files are Autodesk&#8217;s and are not intended to be modified by users. You <em>can</em> modify them, and adding things in there works fine, but updates and hotfixes can overwrite these files, leaving you to patch things up again afterwards. The acad.lsp and acaddoc.lsp files are <em>yours</em>, and that is where you are best advised to put your additions.</p>
<p>I hesitate to mention VBA because I have long avoided that development environment and my knowledge in that area is very limited, but if you&#8217;re a VBA developer and have created an acad.dvb file in AutoCAD&#8217;s search path, it gets loaded at this point.</p>
<p>Once the acad*.* files are loaded, <em>then</em> come any LISP files associated with the CUI files that were loaded at the beginning. For each CUI file, if there is a *.mnl file of the same name, that will be loaded first (*.mnl files are just *.lsp files renamed). After that, any LISP files that are specified in the CUI file will be loaded, in the order in which they appear in the CUI file itself. This order can be modified in the same ways that the partial CUI loading sequence can be modified; &#8220;delete&#8221; and &#8220;load&#8221; (detach and attach, really) the files within the CUI interface, or hack the CUI file with a text editor.</p>
<p>The CUI-associated LISP files are loaded as described in the above paragraph for each CUI file in turn, in the same order as the CUI files themselves: Enterprise, then Main, then partials to Main, then partials to Enterprise.</p>
<p>The Appload command provides a Startup Suite facility, where you can specify any number of files to load (*.arx, *.lsp, *.dvb, *.dbx, *.vlx or *.fas). If you have done so, those files are loaded at this point, in the order in which they appear in the Startup Suite list.</p>
<p>That&#8217;s all the actual loading done, but we&#8217;re not finished yet. At this point AutoCAD&#8217;s environment should be all ready to do pretty much anything, including things that modify the drawing database, including invoking commands. This was <em>not</em> true earlier on, so if you want to do things like change the drawing or run commands, this should be done using a startup routine rather than called directly at load time from any of the files loaded above.</p>
<p>If you&#8217;ve defined a VBA sub called AcadStartup(), it will be called now. If starting a new drawing, any sub called AcadDocument_Activate() will be called instead. The caveat about my VBA ignorance still applies here.</p>
<p>If a LISP function called (S::STARTUP) has been defined, it will be called next. Where could that be defined? Anywhere in any of the LISP files mentioned above, or in any LISP or other files that are loaded by any of those files, or by any files that are loaded by any of <em>those</em> files, and so on ad infinitum. It could even be defined in one of the ARX files loaded at any point. This would be unusual, but is quite possible.</p>
<p>If there are multiple (S::STARTUP) functions defined in various places, which one wins? Whichever one loaded last. That&#8217;s why the load order can be important, but it&#8217;s also why you should never have an unconditional (defun S::STARTUP &#8230;) definition in your LISP code. Instead, you should append your startup code to any existing (S::STARTUP) function. That way, your startup can cooperate with any others in your environment rather than walking all over it. If there is some interest in that subject, I can cover it in more detail in a future post.</p>
<p>In summary, here is the AutoCAD startup sequence:</p>
<p><strong>A. CUI files loaded:</strong><br />
1. Enterprise<br />
2. Main<br />
3. Partials to Main<br />
4. Partials to Enterprise</p>
<p><strong>B. acad*.* files loaded:</strong><br />
1. Files listed in acad.rx<br />
2. acad2009.lsp<br />
3. acad.lsp<br />
4. acad2009doc.lsp<br />
5. acaddoc.lsp<br />
6. acad.dvb</p>
<p><strong>C. CUI-associated MNL and LSP files loaded:</strong><br />
1. Enterprise named MNL<br />
2. Enterprise loaded LSP and MNL<br />
3. Main named MNL<br />
4. Main loaded LSP and MNL<br />
5. Partials to Main named MNLs<br />
6. Partials to Main loaded LSPs and MNLs<br />
7. Partials to Enterprise named MNLs<br />
8. Partials to Enterprise loaded LSPs and MNLs</p>
<p><strong>D. Startup suite files loaded</strong></p>
<p><strong>E. Startup routines run:</strong><br />
1. AcadStartup() called (AutoCAD startup)<br />
2. AcadDocument_Activate() called (Drawing startup)<br />
3. (S::STARTUP) called</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2008/09/01/what-is-loaded-at-autocad-startup-and-when/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Autodesk University Session Voting</title>
		<link>http://www.blog.cadnauseam.com/2008/04/29/autodesk-university-session-voting/</link>
		<comments>http://www.blog.cadnauseam.com/2008/04/29/autodesk-university-session-voting/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 04:47:29 +0000</pubDate>
		<dc:creator>Steve Johnson</dc:creator>
				<category><![CDATA[AU2008]]></category>
		<category><![CDATA[AutoCAD]]></category>
		<category><![CDATA[Autodesk University]]></category>
		<category><![CDATA[DCL]]></category>
		<category><![CDATA[LISP]]></category>
		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://www.blog.cadnauseam.com/?p=96</guid>
		<description><![CDATA[<p>This year, the Autodesk University people are allowing you to vote on the various sessions (classes). Here&#8217;s the link:</p> <p>AU 2008: Help Us Select the Sessions</p> <p>If I can sort out a few practical details, I am hoping to attend this year as a speaker. I have submitted four session proposals. These are:</p> <p>Customization [...]]]></description>
			<content:encoded><![CDATA[<p>This year, the Autodesk University people are allowing you to vote on the various sessions (classes). Here&#8217;s the link:</p>
<p><a href="http://au.autodesk.com/blogs/view/2008_Help_Select_the_Sessions/" target="_blank">AU 2008: Help Us Select the Sessions</a></p>
<p>If I can sort out a few practical details, I am hoping to attend this year as a speaker. I have submitted four session proposals. These are:</p>
<p><strong>Customization and Programming</strong></p>
<p>Be unfashionable in style with LISP and DCL &#8211; Introduction<br />
Be unfashionable in style with LISP and DCL &#8211; Intermediate<br />
Be unfashionable in style with LISP and DCL &#8211; Advanced</p>
<p><strong>Business</strong></p>
<p>How to make a great CAD blog for next to nothing</p>
<p>If you intend attending AU this year, I encourage you to vote for the sessions <em>you</em> would like to see presented.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.cadnauseam.com/2008/04/29/autodesk-university-session-voting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

