<?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: Accessing Global Lisp variable within Dot Net DLL in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463893#M83511</link>
    <description>If you are calling a function in a COM server you wrote,&lt;BR /&gt;
why not pass the value of the global LISP var to the &lt;BR /&gt;
method as a parameter?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message news:4989132@discussion.autodesk.com...&lt;BR /&gt;
I use the following code to call a sub in a dot net DLL. Is there a way to&lt;BR /&gt;
access the value of a global Lisp variable? I don't want to save it to&lt;BR /&gt;
"users" if i don't have to.&lt;BR /&gt;
&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
           (setq $acad (vlax-get-acad-object))&lt;BR /&gt;
           (setq vbstrcls (vla-GetInterfaceObject $acad&lt;BR /&gt;
"Elevations.BiFolds"))&lt;BR /&gt;
           (setq out (vlax-invoke-method&lt;BR /&gt;
                         vbstrcls&lt;BR /&gt;
                         "DrawBiFold"&lt;BR /&gt;
                         $acad&lt;BR /&gt;
                         fname&lt;BR /&gt;
                         (car mod_ins)&lt;BR /&gt;
                         (cadr mod_ins)&lt;BR /&gt;
                         (- unitID 1)&lt;BR /&gt;
                     ) ;_ end of vlax-invoke-method&lt;BR /&gt;
           ) ;_ end of setq&lt;BR /&gt;
           out&lt;BR /&gt;
           (vlax-release-object vbstrcls)&lt;BR /&gt;
           (vlax-release-object $acad&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;/DALE&gt;</description>
    <pubDate>Wed, 19 Oct 2005 20:55:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-10-19T20:55:26Z</dc:date>
    <item>
      <title>Accessing Global Lisp variable within Dot Net DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463892#M83510</link>
      <description>I use the following code to call a sub in a dot net DLL. Is there a way to&lt;BR /&gt;
access the value of a global Lisp variable? I don't want to save it to&lt;BR /&gt;
"users" if i don't have to.&lt;BR /&gt;
&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
           (setq $acad (vlax-get-acad-object))&lt;BR /&gt;
           (setq vbstrcls (vla-GetInterfaceObject $acad&lt;BR /&gt;
"Elevations.BiFolds"))&lt;BR /&gt;
           (setq out (vlax-invoke-method&lt;BR /&gt;
                         vbstrcls&lt;BR /&gt;
                         "DrawBiFold"&lt;BR /&gt;
                         $acad&lt;BR /&gt;
                         fname&lt;BR /&gt;
                         (car mod_ins)&lt;BR /&gt;
                         (cadr mod_ins)&lt;BR /&gt;
                         (- unitID 1)&lt;BR /&gt;
                     ) ;_ end of vlax-invoke-method&lt;BR /&gt;
           ) ;_ end of setq&lt;BR /&gt;
           out&lt;BR /&gt;
           (vlax-release-object vbstrcls)&lt;BR /&gt;
           (vlax-release-object $acad&lt;BR /&gt;
&lt;BR /&gt;
Dale</description>
      <pubDate>Wed, 19 Oct 2005 18:03:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463892#M83510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-10-19T18:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Global Lisp variable within Dot Net DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463893#M83511</link>
      <description>If you are calling a function in a COM server you wrote,&lt;BR /&gt;
why not pass the value of the global LISP var to the &lt;BR /&gt;
method as a parameter?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message news:4989132@discussion.autodesk.com...&lt;BR /&gt;
I use the following code to call a sub in a dot net DLL. Is there a way to&lt;BR /&gt;
access the value of a global Lisp variable? I don't want to save it to&lt;BR /&gt;
"users" if i don't have to.&lt;BR /&gt;
&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
           (setq $acad (vlax-get-acad-object))&lt;BR /&gt;
           (setq vbstrcls (vla-GetInterfaceObject $acad&lt;BR /&gt;
"Elevations.BiFolds"))&lt;BR /&gt;
           (setq out (vlax-invoke-method&lt;BR /&gt;
                         vbstrcls&lt;BR /&gt;
                         "DrawBiFold"&lt;BR /&gt;
                         $acad&lt;BR /&gt;
                         fname&lt;BR /&gt;
                         (car mod_ins)&lt;BR /&gt;
                         (cadr mod_ins)&lt;BR /&gt;
                         (- unitID 1)&lt;BR /&gt;
                     ) ;_ end of vlax-invoke-method&lt;BR /&gt;
           ) ;_ end of setq&lt;BR /&gt;
           out&lt;BR /&gt;
           (vlax-release-object vbstrcls)&lt;BR /&gt;
           (vlax-release-object $acad&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;/DALE&gt;</description>
      <pubDate>Wed, 19 Oct 2005 20:55:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463893#M83511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-10-19T20:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Global Lisp variable within Dot Net DLL</title>
      <link>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463894#M83512</link>
      <description>ROFL. That was bad. As you can see, I'm already passing several variables&lt;BR /&gt;
already. What a brain burp.&lt;BR /&gt;
&lt;BR /&gt;
Thanks Tony.&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message&lt;BR /&gt;
news:4989405@discussion.autodesk.com...&lt;BR /&gt;
If you are calling a function in a COM server you wrote,&lt;BR /&gt;
why not pass the value of the global LISP var to the&lt;BR /&gt;
method as a parameter?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"Dale Levesque" &lt;DALE at="" dynamicwindows.com=""&gt; wrote in message&lt;BR /&gt;
news:4989132@discussion.autodesk.com...&lt;BR /&gt;
I use the following code to call a sub in a dot net DLL. Is there a way to&lt;BR /&gt;
access the value of a global Lisp variable? I don't want to save it to&lt;BR /&gt;
"users" if i don't have to.&lt;BR /&gt;
&lt;BR /&gt;
(vl-load-com)&lt;BR /&gt;
           (setq $acad (vlax-get-acad-object))&lt;BR /&gt;
           (setq vbstrcls (vla-GetInterfaceObject $acad&lt;BR /&gt;
"Elevations.BiFolds"))&lt;BR /&gt;
           (setq out (vlax-invoke-method&lt;BR /&gt;
                         vbstrcls&lt;BR /&gt;
                         "DrawBiFold"&lt;BR /&gt;
                         $acad&lt;BR /&gt;
                         fname&lt;BR /&gt;
                         (car mod_ins)&lt;BR /&gt;
                         (cadr mod_ins)&lt;BR /&gt;
                         (- unitID 1)&lt;BR /&gt;
                     ) ;_ end of vlax-invoke-method&lt;BR /&gt;
           ) ;_ end of setq&lt;BR /&gt;
           out&lt;BR /&gt;
           (vlax-release-object vbstrcls)&lt;BR /&gt;
           (vlax-release-object $acad&lt;BR /&gt;
&lt;BR /&gt;
Dale&lt;/DALE&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Wed, 19 Oct 2005 20:59:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/accessing-global-lisp-variable-within-dot-net-dll/m-p/1463894#M83512</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-10-19T20:59:23Z</dc:date>
    </item>
  </channel>
</rss>

