<?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: ACISOUT with vla-sendcommand in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/acisout-with-vla-sendcommand/m-p/12308681#M22988</link>
    <description>&lt;P&gt;ok im just using insert now.. much easier than doing stuff in a new drawing&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 10:16:50 GMT</pubDate>
    <dc:creator>EnM4st3r</dc:creator>
    <dc:date>2023-10-16T10:16:50Z</dc:date>
    <item>
      <title>ACISOUT with vla-sendcommand</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/acisout-with-vla-sendcommand/m-p/12308552#M22987</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, I try to use ACISOUT on another drawing, wich im opening with my lisp.&lt;/P&gt;&lt;P&gt;Here is the code i have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:test123 (/ doc)
  (setq doc (myOpen "Z:\\Temp\\Drawing3.dwg"))
  (vla-sendcommand doc "(command \"ACISOUT\" \"_all\" \"\" (getfiled \"Save file\" \"\" \"sat\" 1)) ")
  (princ)
)

(defun myOpen (filename) ;opens drawing
  (vla-open 
    (vla-get-documents (vlax-get-acad-object)) 
    filename 
    (if (fileOpenp filename)
      :vlax-true
      :vlax-false
    )
  )
)
(defun fileOpenp (file / f) ; cecks if file is Opened
  (if (setq f (open file "a"))
    (close f)
    t
  )
);defun &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Problem is this line is not working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(vla-sendcommand doc "(command \"ACISOUT\" \"_all\" \"\" (getfiled \"Save file\" \"\" \"sat\" 1)) ")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have also tried&amp;nbsp; using getfiled before vla-sendcommand and then put it together like a script within vla-sendcommand wich looked like this but also didnt work correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:test123 (/ *error* filedia doc file)
  (defun *error* (msg)
    (if filedia (setvar "Filedia" filedia))
    (princ (strcat) "Error: " msg)
    (princ)
  )
  (setq fieldia (getvar "filedia"))
  (setvar "filedia" 0)
  (setq doc (myOpen "Z:\\Temp\\Drawing3.dwg"))
  (setq file (getfiled "Save file" "" "sat" 1))
  (vla-sendcommand doc (strcat "ACISOUT " "_all  " file " "))
  (setvar "filedia" filedia)
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 09:04:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/acisout-with-vla-sendcommand/m-p/12308552#M22987</guid>
      <dc:creator>EnM4st3r</dc:creator>
      <dc:date>2023-10-16T09:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: ACISOUT with vla-sendcommand</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/acisout-with-vla-sendcommand/m-p/12308681#M22988</link>
      <description>&lt;P&gt;ok im just using insert now.. much easier than doing stuff in a new drawing&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 10:16:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/acisout-with-vla-sendcommand/m-p/12308681#M22988</guid>
      <dc:creator>EnM4st3r</dc:creator>
      <dc:date>2023-10-16T10:16:50Z</dc:date>
    </item>
  </channel>
</rss>

