<?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: What do I do now? in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331513#M90045</link>
    <description>Kent,&lt;BR /&gt;
&lt;BR /&gt;
Why not with XDATA ?&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
Kent Keller &lt;KENT&gt; a écrit dans le message :&lt;BR /&gt;
221D97E7C41E3E0132FF7B8261ED7352@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I had never used the User variables before, and so I checked out Useri1&lt;BR /&gt;
and saw&lt;BR /&gt;
&amp;gt; that it was saved in the drawing.  I foolishly figured the other User&lt;BR /&gt;
variables&lt;BR /&gt;
&amp;gt; were also, and got most of the way thru my program before I tried saving&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; drawing and reopening it.  Of course I found that Users variables aren't&lt;BR /&gt;
saved.&lt;BR /&gt;
&amp;gt; (Why the heck aren't they?)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Anyhow how do you save strings in a drawing, to be easily accessable by&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; program every time?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;/KENT&gt;</description>
    <pubDate>Thu, 28 Sep 2000 06:32:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2000-09-28T06:32:48Z</dc:date>
    <item>
      <title>What do I do now?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331512#M90044</link>
      <description>I had never used the User variables before, and so I checked out Useri1 and saw&lt;BR /&gt;
that it was saved in the drawing.  I foolishly figured the other User variables&lt;BR /&gt;
were also, and got most of the way thru my program before I tried saving the&lt;BR /&gt;
drawing and reopening it.  Of course I found that Users variables aren't saved.&lt;BR /&gt;
(Why the heck aren't they?)&lt;BR /&gt;
&lt;BR /&gt;
Anyhow how do you save strings in a drawing, to be easily accessable by the&lt;BR /&gt;
program every time?&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/</description>
      <pubDate>Thu, 28 Sep 2000 05:14:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331512#M90044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T05:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: What do I do now?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331513#M90045</link>
      <description>Kent,&lt;BR /&gt;
&lt;BR /&gt;
Why not with XDATA ?&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
Kent Keller &lt;KENT&gt; a écrit dans le message :&lt;BR /&gt;
221D97E7C41E3E0132FF7B8261ED7352@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I had never used the User variables before, and so I checked out Useri1&lt;BR /&gt;
and saw&lt;BR /&gt;
&amp;gt; that it was saved in the drawing.  I foolishly figured the other User&lt;BR /&gt;
variables&lt;BR /&gt;
&amp;gt; were also, and got most of the way thru my program before I tried saving&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; drawing and reopening it.  Of course I found that Users variables aren't&lt;BR /&gt;
saved.&lt;BR /&gt;
&amp;gt; (Why the heck aren't they?)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Anyhow how do you save strings in a drawing, to be easily accessable by&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; program every time?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;/KENT&gt;</description>
      <pubDate>Thu, 28 Sep 2000 06:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331513#M90045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T06:32:48Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331514#M90046</link>
      <description>Bernard&lt;BR /&gt;
&lt;BR /&gt;
I have never dealt with XDATA (that I know of anyhow)   Is it pretty easy to&lt;BR /&gt;
work with?  I will have to do some studying on it tomorrow,  To late tonight  8)&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the suggestion.&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Kent Keller&lt;BR /&gt;
&lt;BR /&gt;
Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&lt;BR /&gt;
"Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
news:B679AA88056C0F0B06EBD434338E91ED@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Kent,&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Why not with XDATA ?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Bernard&lt;/BE.FLAVI&gt;</description>
      <pubDate>Thu, 28 Sep 2000 06:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331514#M90046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T06:32:48Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331515#M90047</link>
      <description>Kent,&lt;BR /&gt;
&lt;BR /&gt;
I do only one example for this, but you can look the Vlisp help and surch&lt;BR /&gt;
XDATA, i think you can work with this. With an object, you can input XDATA&lt;BR /&gt;
with the setxdata method and read it with the getxdata method&lt;BR /&gt;
&lt;BR /&gt;
From the help&lt;BR /&gt;
&lt;BR /&gt;
Sub Example_SetXdata()&lt;BR /&gt;
    ' This example creates a line and attaches extended data to that line.&lt;BR /&gt;
&lt;BR /&gt;
    ' Create the line&lt;BR /&gt;
    Dim lineObj As AcadLine&lt;BR /&gt;
    Dim startPt(0 To 2) As Double, endPt(0 To 2) As Double&lt;BR /&gt;
    startPt(0) = 1#: startPt(1) = 1#: startPt(2) = 0#&lt;BR /&gt;
    endPt(0) = 5#: endPt(1) = 5#: endPt(2) = 0#&lt;BR /&gt;
    Set lineObj = ThisDrawing.ModelSpace.AddLine(startPt, endPt)&lt;BR /&gt;
&lt;BR /&gt;
    ZoomAll&lt;BR /&gt;
&lt;BR /&gt;
    ' Initialize all the xdata values. Note that first data in the list&lt;BR /&gt;
should be&lt;BR /&gt;
    ' application name and first datatype code should be 1001&lt;BR /&gt;
    Dim DataType(0 To 9) As Integer&lt;BR /&gt;
    Dim Data(0 To 9) As Variant&lt;BR /&gt;
    Dim reals3(0 To 2) As Double&lt;BR /&gt;
    Dim worldPos(0 To 2) As Double&lt;BR /&gt;
&lt;BR /&gt;
    DataType(0) = 1001: Data(0) = "Test_Application"&lt;BR /&gt;
&lt;BR /&gt;
    DataType(1) = 1000: Data(1) = "This is a test for xdata"&lt;BR /&gt;
&lt;BR /&gt;
    DataType(2) = 1003: Data(2) = "0"                   ' layer&lt;BR /&gt;
    DataType(3) = 1040: Data(3) = 1.23479137438413E+40  ' real&lt;BR /&gt;
    DataType(4) = 1041: Data(4) = 1237324938            ' distance&lt;BR /&gt;
    DataType(5) = 1070: Data(5) = 32767                 ' 16 bit Integer&lt;BR /&gt;
    DataType(6) = 1071: Data(6) = 32767                 ' 32 bit Integer&lt;BR /&gt;
&lt;BR /&gt;
    DataType(7) = 1042: Data(7) = 10                    ' scaleFactor&lt;BR /&gt;
&lt;BR /&gt;
    reals3(0) = -2.95: reals3(1) = 100: reals3(2) = -20&lt;BR /&gt;
    DataType(8) = 1010: Data(8) = reals3                ' real&lt;BR /&gt;
&lt;BR /&gt;
    worldPos(0) = 4: worldPos(1) = 400.99999999: worldPos(2) = 2.798989&lt;BR /&gt;
    DataType(9) = 1011: Data(9) = worldPos              ' world space&lt;BR /&gt;
position&lt;BR /&gt;
&lt;BR /&gt;
    ' Attach the xdata to the line&lt;BR /&gt;
    lineObj.SetXData DataType, Data&lt;BR /&gt;
&lt;BR /&gt;
    ' Return the xdata for the line&lt;BR /&gt;
    Dim xdataOut As Variant&lt;BR /&gt;
    Dim xtypeOut As Variant&lt;BR /&gt;
    lineObj.GetXData "", xtypeOut, xdataOut&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Bernard&lt;BR /&gt;
Kent Keller &lt;KENT&gt; a écrit dans le message :&lt;BR /&gt;
4A3F83D4B01A2EF58C760813833A24D5@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; Bernard&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; I have never dealt with XDATA (that I know of anyhow)   Is it pretty easy&lt;BR /&gt;
to&lt;BR /&gt;
&amp;gt; work with?  I will have to do some studying on it tomorrow,  To late&lt;BR /&gt;
tonight  8)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Thanks for the suggestion.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; "Bernard Flavignard" &lt;BE.FLAVI&gt; wrote in message&lt;BR /&gt;
&amp;gt; news:B679AA88056C0F0B06EBD434338E91ED@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; &amp;gt; Kent,&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Why not with XDATA ?&lt;BR /&gt;
&amp;gt; &amp;gt;&lt;BR /&gt;
&amp;gt; &amp;gt; Bernard&lt;BR /&gt;
&amp;gt;&lt;/BE.FLAVI&gt;&lt;/KENT&gt;</description>
      <pubDate>Thu, 28 Sep 2000 06:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331515#M90047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T06:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: What do I do now?</title>
      <link>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331516#M90048</link>
      <description>You're better off using xdata (for appliation data that is entity-specific)&lt;BR /&gt;
or dictionaries (for application data that is drawing-specific).&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
Attitudes are contagious. Is yours worth catching?&lt;BR /&gt;
http://www.acadx.com&lt;BR /&gt;
&lt;BR /&gt;
"Kent Keller" &lt;KENT&gt; wrote in message&lt;BR /&gt;
news:221D97E7C41E3E0132FF7B8261ED7352@in.WebX.SaUCah8kaAW...&lt;BR /&gt;
&amp;gt; I had never used the User variables before, and so I checked out Useri1&lt;BR /&gt;
and saw&lt;BR /&gt;
&amp;gt; that it was saved in the drawing.  I foolishly figured the other User&lt;BR /&gt;
variables&lt;BR /&gt;
&amp;gt; were also, and got most of the way thru my program before I tried saving&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; drawing and reopening it.  Of course I found that Users variables aren't&lt;BR /&gt;
saved.&lt;BR /&gt;
&amp;gt; (Why the heck aren't they?)&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Anyhow how do you save strings in a drawing, to be easily accessable by&lt;BR /&gt;
the&lt;BR /&gt;
&amp;gt; program every time?&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; --&lt;BR /&gt;
&amp;gt; Kent Keller&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Check out the Mechanical Desktop FAQ @&lt;BR /&gt;
&amp;gt; http://webhome.idirect.com/~dfulford/&lt;BR /&gt;
&amp;gt;&lt;/KENT&gt;</description>
      <pubDate>Thu, 28 Sep 2000 13:16:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/what-do-i-do-now/m-p/331516#M90048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2000-09-28T13:16:54Z</dc:date>
    </item>
  </channel>
</rss>

