<?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: Dynamic block parameters types in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3571210#M54016</link>
    <description>&lt;P&gt;Thanks Khoa&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2012 06:11:39 GMT</pubDate>
    <dc:creator>humbertogo</dc:creator>
    <dc:date>2012-08-09T06:11:39Z</dc:date>
    <item>
      <title>Dynamic block parameters types</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3569558#M54014</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to know what kind parameter type is using in a&lt;/P&gt;&lt;P&gt;DynamicBlock Property&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROTATIONPARAMETERENTITY, &amp;nbsp;LINEARPARAMETERENTITY or POLARPARAMETERENTITY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 09:33:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3569558#M54014</guid>
      <dc:creator>humbertogo</dc:creator>
      <dc:date>2012-08-08T09:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block parameters types</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3570262#M54015</link>
      <description>&lt;P&gt;I can't see an enum type of DynamicBlockReferenceParameter in AutoCAD .NET API. It may be missing from the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code snippet is used to change properties of a dynamic block. We should know exactly the parameter name to find in DynamicBlockReferenceProperty.PropertyName. We can find this name by checking the Properties pane of a dynamic block in AutoCAD. Just use AutoCAD to see all parameter names of a dynamic block to use in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DynamicBlockReferencePropertyCollection properties = blockReference.DynamicBlockReferencePropertyCollection;&lt;BR /&gt;for (int i = 0; i &amp;lt; properties.Count; i++)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;DynamicBlockReferenceProperty property = properties[i];&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (property.&lt;FONT color="#FF0000"&gt;PropertyName&lt;/FONT&gt; == "Position X")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;property.&lt;FONT color="#FF0000"&gt;Value&lt;/FONT&gt; = newValue;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like the class DynamicBlockReferenceProperty to have a new property named PropertyType that is an enum of all dynamic block parameters. So it will help developers to work easier without knowing PropertyName string and PropertyTypeCode number, that are not strong-typed and intuitive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Khoa&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 16:19:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3570262#M54015</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-08T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block parameters types</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3571210#M54016</link>
      <description>&lt;P&gt;Thanks Khoa&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 06:11:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3571210#M54016</guid>
      <dc:creator>humbertogo</dc:creator>
      <dc:date>2012-08-09T06:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block parameters types</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3572852#M54017</link>
      <description>&lt;P&gt;You are welcome. I am happy that the answer met your question. I hope the future AutoCAD .NET API will have more convenient options to work with dynamic blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Khoa&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 20:27:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-parameters-types/m-p/3572852#M54017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-09T20:27:26Z</dc:date>
    </item>
  </channel>
</rss>

