<?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: Problem displaying vlaues in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270558#M19610</link>
    <description>It worked.  Thank You</description>
    <pubDate>Wed, 04 Jun 2008 14:59:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-06-04T14:59:33Z</dc:date>
    <item>
      <title>Problem displaying vlaues</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270556#M19608</link>
      <description>I am trying to write a simple macro to display the property name and the value of the dynamic blocks in my drawing.  If the dynamic block property is a single number, it works fine.  However,  if the property returns a point with value(0), (1) and (2), I can't get it to display.  Below is the code.&lt;BR /&gt;
&lt;BR /&gt;
Sub test()&lt;BR /&gt;
    Dim myEnt As AcadEntity&lt;BR /&gt;
    Dim MyBlkRef As AcadBlockReference&lt;BR /&gt;
    For Each myEnt In ThisDrawing.ModelSpace&lt;BR /&gt;
        Select Case myEnt.ObjectName&lt;BR /&gt;
            Case "AcDbBlockReference"&lt;BR /&gt;
                Set MyBlkRef = myEnt&lt;BR /&gt;
                If MyBlkRef.HasAttributes Then&lt;BR /&gt;
                    atts = MyBlkRef.GetDynamicBlockProperties&lt;BR /&gt;
                    Dim I As Long&lt;BR /&gt;
                    For I = LBound(atts) To UBound(atts)&lt;BR /&gt;
                            Dim eric1 As VbVarType&lt;BR /&gt;
                            eric1 = vartype(atts(I).Value)&lt;BR /&gt;
                            If eric1 = vbArray + vbDouble Then&lt;BR /&gt;
                                MsgBox atts(I).PropertyName &amp;amp; " = " &amp;amp; atts(I).Value(0)&lt;BR /&gt;
                            Else&lt;BR /&gt;
                                MsgBox atts(I).PropertyName &amp;amp; " = " &amp;amp; atts(I).Value&lt;BR /&gt;
                            End If&lt;BR /&gt;
                    Next I&lt;BR /&gt;
                End If&lt;BR /&gt;
        End Select&lt;BR /&gt;
    Next&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Any Ideas?

Message was edited by: conveyor1</description>
      <pubDate>Wed, 04 Jun 2008 14:13:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270556#M19608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-04T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem displaying vlaues</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270557#M19609</link>
      <description>&lt;CONVEYOR1&gt; wrote in message news:5948213@discussion.autodesk.com...&lt;BR /&gt;
I am trying to write a simple macro to display the property name and the &lt;BR /&gt;
value of the dynamic blocks in my drawing.  If the dynamic block property is &lt;BR /&gt;
a single number, it works fine.  However,  if the property returns a point &lt;BR /&gt;
with value(0), (1) and (2), I can't get it to display.  Below is the code.&lt;BR /&gt;
&lt;BR /&gt;
have you confirmed that this test accurately tests for an array(variant &lt;BR /&gt;
containing array of doubles)&lt;BR /&gt;
                            If eric1 = vbArray + vbDouble Then&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
aside from that...if you do get a point(variant containing array), set it to &lt;BR /&gt;
a variable&lt;BR /&gt;
varPt = atts(I).Value&lt;BR /&gt;
then print the elements&lt;BR /&gt;
str = varPt(0) &amp;amp; ", " &amp;amp; varPt(1) &amp;amp; ", " &amp;amp; varPt(2)&lt;BR /&gt;
or similar...&lt;BR /&gt;
I don't know why but have found that the property itself won't work without &lt;BR /&gt;
putting in a variable first&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
hth&lt;BR /&gt;
mark&lt;/CONVEYOR1&gt;</description>
      <pubDate>Wed, 04 Jun 2008 14:50:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270557#M19609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-04T14:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem displaying vlaues</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270558#M19610</link>
      <description>It worked.  Thank You</description>
      <pubDate>Wed, 04 Jun 2008 14:59:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270558#M19610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-04T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem displaying vlaues</title>
      <link>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270559#M19611</link>
      <description>&lt;CONVEYOR1&gt; wrote in message news:5948337@discussion.autodesk.com...&lt;BR /&gt;
It worked.  Thank You&lt;BR /&gt;
&lt;BR /&gt;
yer welcome, glad to help&lt;BR /&gt;
mark&lt;/CONVEYOR1&gt;</description>
      <pubDate>Wed, 04 Jun 2008 22:07:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/problem-displaying-vlaues/m-p/2270559#M19611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-04T22:07:22Z</dc:date>
    </item>
  </channel>
</rss>

