<?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: Lisp that runs external .vlx and gives required inputs in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11600426#M37468</link>
    <description>&lt;P&gt;It's similar to LeeMac's Dynamic Offset routine (less advanced though), but I decided to use this "xoffset" instead because I thought it would be easier to customize to my needs. It lets you offset multiple lines/polylines inwards or outwards. Additionally you can specify the number of offsets it generates at once and the destination layer, or other things like deleting the original lines.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 07:12:41 GMT</pubDate>
    <dc:creator>pablo.odriozola</dc:creator>
    <dc:date>2022-12-06T07:12:41Z</dc:date>
    <item>
      <title>Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11597472#M37465</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm trying to speed up the use of a .vlx I found online by creating a lisp that runs it and gives the values the program is asking for.&lt;/P&gt;&lt;P&gt;If I write&lt;STRONG&gt; (c:xoffset)&lt;/STRONG&gt; in the lisp file, the program runs normally and asks the user to specify some values.&lt;/P&gt;&lt;P&gt;What I tried afterwards was to write &lt;STRONG&gt;(c:xoffset "1")&lt;/STRONG&gt; for example, so that the first value is automatically given, but I get the error that there are "too many arguments".&lt;/P&gt;&lt;P&gt;What would be the right way to do this?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 08:13:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11597472#M37465</guid>
      <dc:creator>pablo.odriozola</dc:creator>
      <dc:date>2022-12-05T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11597619#M37466</link>
      <description>&lt;P&gt;That way it never works. Try something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vl-load-com)
(defun c:xo1 ( / s)
  (if (setq s (ssget))
    (vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) (strcat "xoffset _p  1 ")))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The thing is, that there is no simple way to call LISP command with arguments from another LISP routine.&amp;nbsp;If the routine is appropriately designed so that routine has some sub that you can all, it could look something like (xoffset ss 1 ...) but you need to know what arguments it requires...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want a simple way, you can use a MACRO.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 09:39:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11597619#M37466</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-12-05T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11599887#M37467</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12580979"&gt;@pablo.odriozola&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does XOFFSET do and where did you find it?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 00:06:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11599887#M37467</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2022-12-06T00:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11600426#M37468</link>
      <description>&lt;P&gt;It's similar to LeeMac's Dynamic Offset routine (less advanced though), but I decided to use this "xoffset" instead because I thought it would be easier to customize to my needs. It lets you offset multiple lines/polylines inwards or outwards. Additionally you can specify the number of offsets it generates at once and the destination layer, or other things like deleting the original lines.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 07:12:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11600426#M37468</guid>
      <dc:creator>pablo.odriozola</dc:creator>
      <dc:date>2022-12-06T07:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11600605#M37469</link>
      <description>&lt;P&gt;Like John do you need a vlx version ? There is more than likely an open coded version of what the program is doing, I know have written a few multi offset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So again explain clearly what it is doing.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 09:00:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11600605#M37469</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2022-12-06T09:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11983297#M37470</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12580979"&gt;@pablo.odriozola&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Hey Just checking in on this. I am currently working on what I believe is a similar issue. I have a .VLX program that requires inputs typed into the command line. Curious how exactly you ended up doing this for your issue. I am new to the CAD automations game and still learning!&lt;BR /&gt;&lt;BR /&gt;I have been trying to write a lisp to do this and have not had success. Trying to get a lisp to work so i can run it through script pro on a batch of dwg files.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 16:12:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11983297#M37470</guid>
      <dc:creator>reb0265</dc:creator>
      <dc:date>2023-05-23T16:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11984250#M37471</link>
      <description>&lt;P&gt;If some one went to the trouble of making a vlx they dont want their code to be exposed, so did you ask who wrote the vlx if it could be modified to allow for input with defined variables.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 00:13:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11984250#M37471</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2023-05-24T00:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11984367#M37472</link>
      <description>&lt;P&gt;Looks like you found my other post!&lt;/P&gt;&lt;P&gt;I have a note out to the owner of the vlx program as well. There are other variables in the program so shouldn't be too bad to add.&lt;/P&gt;&lt;P&gt;I wrote a very clunky code that worked, but not pretty.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 01:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11984367#M37472</guid>
      <dc:creator>reb0265</dc:creator>
      <dc:date>2023-05-24T01:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp that runs external .vlx and gives required inputs</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11986152#M37473</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13933702"&gt;@reb0265&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I am pretty sure that you can use the (vlax-add-cmd) function to make an AutoCAD type command from a defined function.&amp;nbsp; That way you could use it in a script to feed it the required inputs in the proper order.&lt;/P&gt;
&lt;P&gt;BUT if the function requires DCL input, you're stuck.&lt;/P&gt;
&lt;P&gt;Not sure, but I think you will have to add the vlax-add-cmd after every time you load the function (probably in your acaddoc.lsp file).&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:43:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-that-runs-external-vlx-and-gives-required-inputs/m-p/11986152#M37473</guid>
      <dc:creator>john.uhden</dc:creator>
      <dc:date>2023-05-24T14:43:06Z</dc:date>
    </item>
  </channel>
</rss>

