<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Have a LISP Automatically Activate in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079164#M11598</link>
    <description>I just discovered the startup suite and that makes it a lot simpler to autoload what I need. When I get more comfortable with lisps I'll mess with the acaddoc just because it'll be easier to field throughout the office. Thanks!</description>
    <pubDate>Fri, 11 Oct 2024 15:03:09 GMT</pubDate>
    <dc:creator>sneenanKFX38</dc:creator>
    <dc:date>2024-10-11T15:03:09Z</dc:date>
    <item>
      <title>Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12902912#M11592</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm new to LISP's and how they work, from what I've found and used they're great so far. I am trying something though; my company uses certain layers for multileaders and dimensions and such and I'd like that to be an automatic when a file is opened. I have a LISP file to turn it on and off, but I'd like it to just be the case when I open up to a project. I tried adding it to my acaddoc.lsp file, but maybe I didn't copy it properly. I've attached my acaddoc.lsp file and the one I would like to just work to set default layers. Any help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.&lt;/P&gt;&lt;P&gt;Also, if anyone has a link to a lisp that counts tabs regardless of tab names that'd be great (ex: 01 of 05)! We don't use sheet set manager.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 13:33:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12902912#M11592</guid>
      <dc:creator>sneenanKFX38</dc:creator>
      <dc:date>2024-07-17T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12902966#M11593</link>
      <description>Without looking at your attachments.&lt;BR /&gt;&lt;BR /&gt;Look into these following built in functions for the newer AutoCAD versions:&lt;BR /&gt;TEXTLAYER&lt;BR /&gt;DIMLAYER&lt;BR /&gt;HPLAYER&lt;BR /&gt;CENTERLAYER&lt;BR /&gt;&lt;BR /&gt;Where these layers are not defined, these variables will create&lt;BR /&gt;the layers but will not set color or linetype. You will have to follow&lt;BR /&gt;up on this.&lt;BR /&gt;&lt;BR /&gt;If you require other layer defaults, you can create a utility that&lt;BR /&gt;will set the desired layer, run the command, and reset the layer.&lt;BR /&gt;Other method would be to let the object be created in the default&lt;BR /&gt;environment and "Last" to the desired property.&lt;BR /&gt;&lt;BR /&gt;Search within this board for phrases such as&lt;BR /&gt;(while (&amp;gt; (getvar "CMDACTIVE") 0) (command pause)) ...[or command ""]&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Jul 2024 14:04:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12902966#M11593</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2024-07-17T14:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12902983#M11594</link>
      <description>&lt;P&gt;Does it work if you just add this to acaddoc.lsp?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt;(load "drf")&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 14:11:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12902983#M11594</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-07-17T14:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12903157#M11595</link>
      <description>&lt;P&gt;in addition to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;reply after loading if you want to automatically turn it on then add this line after:&lt;/P&gt;&lt;P&gt;(c:reaon)&lt;/P&gt;&lt;P&gt;As for layout numbering, attached is TabNumber.lsp&lt;/P&gt;&lt;P&gt;You'll need matching Block with attribute placed on each layout for this to work.&lt;/P&gt;&lt;P&gt;See following thread where this is discussed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-renaming-page-number-in-layouts/td-p/11689335/jump-to/first-unread-message" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/auto-renaming-page-number-in-layouts/td-p/11689335/jump-to/first-unread-message&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-current-sheet-numbering-in-the-block-autolips/td-p/11695206" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-current-sheet-numbering-in-the-block-autolips/td-p/11695206&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-auto-page-number-layout-tabs/m-p/10199097#M413381" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-auto-page-number-layout-tabs/m-p/10199097#M413381&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 15:48:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12903157#M11595</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-07-17T15:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12904248#M11596</link>
      <description>&lt;P&gt;Like the others for custom lisps that you want to run on start I use Appload and add a custom lisp to the Startup suite, this will run when you open or start CAD, the custom lisp can have a lot of defuns or little programs in it that you use all the time, I never change the Acaddoc.lsp. In the custom lisp you can use the Autoload function this allows you to type a command and it loads the correct lisp matching the command name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My autoload.lsp has like 23 defuns and about same autoloads.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(autoload "COPY0" '("COPY0"))
(autoload "COPYCOMMAND" '("ZZZ"))
(autoload "COVER" '("COVER"))
(autoload "DIMFLIP" '("DIMFLIP"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Re making dims and text for one of my clients we have menu options. Behind the scenes correct layer set or added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeaHaven_0-1721275009103.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1388030i4D5BBE4F496A76EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SeaHaven_0-1721275009103.png" alt="SeaHaven_0-1721275009103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure what you want to do with count tabs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq tabs (layoutlist))
(princ (strcat "\nThere are " (rtos (length tabs) 2 0) "layout tabs "))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 04:05:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/12904248#M11596</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-07-18T04:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079158#M11597</link>
      <description>&lt;P&gt;The tabnumber lisp is fantastic and just what I'm looking for in that regard! My only issue is that we have some tabs in the same drawing that we do not include on our outgoing drawings. By that, I mean we have our layout pages (circled in green) and then 4 extra at the end for sketches and in-house use (circled in red); I'd like to not include these in the total count. So looking at the screenshot, it would hopefully read "## of 05" instead of "## of 09". Is that a possibility or should I see about creating a separate template for these tabs? Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sneenanKFX38_0-1728658820629.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1420565i0C43BF225EDC2C22/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sneenanKFX38_0-1728658820629.png" alt="sneenanKFX38_0-1728658820629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:01:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079158#M11597</guid>
      <dc:creator>sneenanKFX38</dc:creator>
      <dc:date>2024-10-11T15:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079164#M11598</link>
      <description>I just discovered the startup suite and that makes it a lot simpler to autoload what I need. When I get more comfortable with lisps I'll mess with the acaddoc just because it'll be easier to field throughout the office. Thanks!</description>
      <pubDate>Fri, 11 Oct 2024 15:03:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079164#M11598</guid>
      <dc:creator>sneenanKFX38</dc:creator>
      <dc:date>2024-10-11T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079167#M11599</link>
      <description>&lt;P&gt;I’d say start a separate template for those tabs&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 15:04:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13079167#M11599</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-10-11T15:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Have a LISP Automatically Activate</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13080015#M11600</link>
      <description>&lt;P&gt;Are you using a server in your office as each user can point to the server so only 1 version, of the autoload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;you can use the layout command to import a layout from another dwg. Just use the "T" template option.&lt;/P&gt;&lt;P&gt;If you do these extra layouts all the time could mod the rename layouts to ask how many layouts to ignore. A simple fix.&lt;/P&gt;&lt;P&gt;When plotting I use "Plot by range" so can put in 1 - 8 etc and will be plotted, just ask if you want more details a lisp.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 00:20:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/have-a-lisp-automatically-activate/m-p/13080015#M11600</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2024-10-12T00:20:35Z</dc:date>
    </item>
  </channel>
</rss>

