<?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: VB.NET Var to LISP Var in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823290#M63082</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Did you want rio use a global lisp Variablewhile the .net is running or return a value from a routine.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Either way, with lists you'll need tio study the details for the result buffer.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2010 09:21:02 GMT</pubDate>
    <dc:creator>kerry_w_brown</dc:creator>
    <dc:date>2010-11-11T09:21:02Z</dc:date>
    <item>
      <title>VB.NET Var to LISP Var</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2822980#M63081</link>
      <description>&lt;P&gt;Anybody got a function (or sample code) that converts a VB variable (and it values) to a LISP variable?....VB array to LISP list...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2010 22:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2822980#M63081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-10T22:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Var to LISP Var</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823290#M63082</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Did you want rio use a global lisp Variablewhile the .net is running or return a value from a routine.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Either way, with lists you'll need tio study the details for the result buffer.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 09:21:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823290#M63082</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-11-11T09:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Var to LISP Var</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823444#M63083</link>
      <description>&lt;P&gt;Thanks for the reply Kerry.&lt;/P&gt;&lt;P&gt;We have a VB.NET app that reads an XML file....and assigns VB Variables values n an array.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;VesselInfo (120.0 0.5 12.75 129.625....etc)&lt;/P&gt;&lt;P&gt;Supportinfo (145.75 0.3125 12 45.5......etc)&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We then need to convert these VB Arrays over to LISP&amp;nbsp;Variables as a LIST&lt;/P&gt;&lt;P&gt;There are 7-8 of the VB Arrays, all of which contain 20-30 "values"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We then take those LISP variables values contained in the lists (probably around 200), and pass to a drawing program that uses LISP routines to generate drawings. The LISP drawing routines are about 50,000 lines of code....thus we dont' want to convert that over to .NET, which would probably be about 200,000 lines of code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used to use VLAX.CLS that I found on here several years ago. of course, it doesn't work in .NET...and that our problem...basically trying to convert it over.....and I am a novice .NET programmer...(probably a 1.5 on as scale of 10).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a function that can convert a VB.NET array to a LISP LIST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 13:43:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823444#M63083</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-11T13:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Var to LISP Var</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823862#M63084</link>
      <description>&lt;P&gt;You can encapsulate the XML file reading process in a .NET methond, decorated with [LispFunction] attribute, which returns a list of data as ResultBuffer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then simply call the .NET lisp function in your lisp routine, as if it is a lisp function. Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[LispFunction("ReadXml")]&lt;/P&gt;&lt;P&gt;public static ReadXlmData(ResultBuffer args)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Read XML file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Build return data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultBuffer res=new ResultBuffer(....);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Fill the result buffer with data from XML file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return res;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, you can call it at command line as if it is a lisp function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: (ReadXml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At command line, you may get something like&amp;nbsp; (xx xx xxx xxx xxx), which is the output ResultBuffer, shown in Acad command line as a list, which depends on how you build the output ResultBuffer in the .NET function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your lisp routine, you can get the .NET function's output:&lt;/P&gt;&lt;P&gt;(setq netOutput (ReadXml))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you&amp;nbsp;may parse the variable netOutput into a list, based on your lisp routine's need:&lt;/P&gt;&lt;P&gt;(list ...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see, you simply move the XML data reading process (or even showing a form to allow to pick the XML file, or get other user input) into a .NET method, mark it with [LispFunction()], then plug it into your existing lisp routines. Of cause, you have to make sure the .NET dll is loaded before your lisp routine could use it.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 17:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823862#M63084</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-11-11T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Var to LISP Var</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823924#M63085</link>
      <description>&lt;P&gt;Thanks...very interesting...I'll try and figure it out...I believe I understand what you saying.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 18:13:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2823924#M63085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-11T18:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Var to LISP Var</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2825583#M63086</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Have a look at this&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.theswamp.org/index.php?topic=35714.0" target="_blank" rel="nofollow"&gt;&lt;FONT size="2"&gt;http://www.theswamp.org/index.php?topic=35714.0&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;It's c# but may give you some ideas for a suitable solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;P&gt;I need a function that can convert a VB.NET array to a LISP LIST&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT size="2"&gt;If you post some code&amp;nbsp;to produce an example list we may be able to determine a more targeted solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2010 06:43:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-var-to-lisp-var/m-p/2825583#M63086</guid>
      <dc:creator>kerry_w_brown</dc:creator>
      <dc:date>2010-11-14T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

