<?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: Automate the Command in Autocad using Lisp in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416173#M72073</link>
    <description>Just add this line (c:IMAGESAMPLE) after:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;(defun c:IMAGESAMPLE()(command "netload" "C:\\Documents and Settings\\skabeer\\My Documents\\Visual Studio 2005\\Projects\\Insertimage\\Insertimage\\bin\\Release\\Insertimage.dll" "IMAGESAMPLE")&lt;BR /&gt;&lt;BR /&gt;(princ)&lt;BR /&gt;&lt;BR /&gt;(c:IMAGESAMPLE)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;~'J'~

Edited by: hallex on Jan 23, 2009 7:26 AM</description>
    <pubDate>Fri, 23 Jan 2009 07:25:24 GMT</pubDate>
    <dc:creator>Hallex</dc:creator>
    <dc:date>2009-01-23T07:25:24Z</dc:date>
    <item>
      <title>Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416172#M72072</link>
      <description>I have added the below code into the acad2007doc.lsp file . This works fine . It is taking the DLL automatically but it is not taking the command name (IMAGESAMPLE) automatically. I had to type the command name manually in the autocad, then the command works. &lt;BR /&gt;
&lt;BR /&gt;
&lt;CODE&gt;(defun c:IMAGESAMPLE()&lt;BR /&gt;
(command "netload" "C:\\Documents and Settings\\skabeer\\My Documents\\Visual Studio 2005\\Projects\\Insertimage\\Insertimage\\bin\\Release\\Insertimage.dll" "IMAGESAMPLE")&lt;BR /&gt;
(princ)&lt;BR /&gt;
)&lt;/CODE&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Can anybody please help to solve this problem...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Thu, 22 Jan 2009 11:56:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416172#M72072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-22T11:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416173#M72073</link>
      <description>Just add this line (c:IMAGESAMPLE) after:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;(defun c:IMAGESAMPLE()(command "netload" "C:\\Documents and Settings\\skabeer\\My Documents\\Visual Studio 2005\\Projects\\Insertimage\\Insertimage\\bin\\Release\\Insertimage.dll" "IMAGESAMPLE")&lt;BR /&gt;&lt;BR /&gt;(princ)&lt;BR /&gt;&lt;BR /&gt;(c:IMAGESAMPLE)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;~'J'~

Edited by: hallex on Jan 23, 2009 7:26 AM</description>
      <pubDate>Fri, 23 Jan 2009 07:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416173#M72073</guid>
      <dc:creator>Hallex</dc:creator>
      <dc:date>2009-01-23T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416174#M72074</link>
      <description>I really appreciate your mentality to help others. Thanks a lot. I will try this tomorrow from the office &amp;amp; let u know the result...&lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Sat, 24 Jan 2009 11:37:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416174#M72074</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-24T11:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416175#M72075</link>
      <description>Thanks a lot. This is working fine...

Edited by: shezak on Jan 26, 2009 8:03 AM</description>
      <pubDate>Sun, 25 Jan 2009 08:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416175#M72075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-25T08:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416176#M72076</link>
      <description>This is working fine. Thanks a lot

Edited by: shezak on Jan 26, 2009 8:02 AM</description>
      <pubDate>Sun, 25 Jan 2009 08:57:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416176#M72076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-25T08:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416177#M72077</link>
      <description>Thanks for your support...

Edited by: shezak on Jan 26, 2009 8:04 AM</description>
      <pubDate>Sun, 25 Jan 2009 08:57:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416177#M72077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-25T08:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416178#M72078</link>
      <description>Hello,&lt;BR /&gt;
         Thanks a lot. Now this is working fine. When i am opening the autocad, i can see the command automated and it shows my image on opening itself...&lt;BR /&gt;
&lt;BR /&gt;
   But i do have another issue now, when i am trying to open the dwg file from within dotnet application using the interop namespace. The dwg file is opened and  am getting the below message:&lt;BR /&gt;
-------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
Opening an AutoCAD 2007 format file.&lt;BR /&gt;
Regenerating model.&lt;BR /&gt;
AutoCAD Express Tools Copyright © 2002-2004 Autodesk, Inc.&lt;BR /&gt;
AutoCAD menu utilities loaded.netload Assembly file name: C:\Documents and &lt;BR /&gt;
Settings\skabeer\My Documents\Visual Studio &lt;BR /&gt;
2005\Projects\IMAGESIZING\IMAGESIZING\bin\Release\IMAGESIZING.dll RASTINS &lt;BR /&gt;
Unknown command "RASTINS".  Press F1 for help.&lt;BR /&gt;
Autodesk DWG.  This file is a Trusted DWG last saved by an Autodesk application &lt;BR /&gt;
or Autodesk licensed application.&lt;BR /&gt;
-------------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Can you please help me to solve this issue?&lt;BR /&gt;
Thanks...</description>
      <pubDate>Mon, 26 Jan 2009 08:01:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416178#M72078</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-01-26T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Automate the Command in Autocad using Lisp</title>
      <link>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416179#M72079</link>
      <description>Hi Shezak&lt;BR /&gt;
&lt;BR /&gt;
I tried the above solution and found its working but at the same time noticed that my command method is being called twice one after another.&lt;BR /&gt;
&lt;BR /&gt;
Please do let me know if you you also face same issue.&lt;BR /&gt;
&lt;BR /&gt;
Regards,</description>
      <pubDate>Mon, 16 Feb 2009 06:41:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/automate-the-command-in-autocad-using-lisp/m-p/2416179#M72079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-16T06:41:54Z</dc:date>
    </item>
  </channel>
</rss>

