<?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 : Open Dynamic Block Visibility List Programatically? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522871#M41229</link>
    <description>&lt;P&gt;Don't think I'm making myself clear enough. &amp;nbsp;I'm not trying to display a userform, I want to show the native drop-down list from the dynamic block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a screenshot to show the type of list in question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So...how can I open the list&amp;nbsp;programmatically?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Feb 2015 15:00:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-27T15:00:30Z</dc:date>
    <item>
      <title>Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522133#M41225</link>
      <description>&lt;P&gt;Is it possible to display a dynamic block's visibility list after insertion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- User selects&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;an&amp;nbsp;insertion point,&lt;/P&gt;&lt;P&gt;- I insert a dynamic block reference programmatically,&lt;/P&gt;&lt;P&gt;- Instead of the user clicking the triangular node to pick the required visibility, I open the list and the user simply selects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just trying to save the user from having to click the node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:38:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522133#M41225</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T22:38:56Z</dc:date>
    </item>
    <item>
      <title>Re : Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522146#M41226</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can iterate the DynamicBlockReferencePropertyCollection of the newly inserted block reference to find the DynamicBlockReferenceProperty you want checking its PropertyName. When found, you can call the GetAllowedvalues() method to get the visibility states list.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:49:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522146#M41226</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2015-02-26T22:49:06Z</dc:date>
    </item>
    <item>
      <title>Re : Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522182#M41227</link>
      <description>&lt;P&gt;First off, I should have mentioned that I'm using AutoCAD 2013.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to programatically get the list of property values, I want to display the drop-down list to the user, just as if they'd clicked the drop-down node in AutoCAD.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 23:15:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522182#M41227</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-26T23:15:02Z</dc:date>
    </item>
    <item>
      <title>Re : Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522818#M41228</link>
      <description>&lt;P&gt;If you can programmatically insert the dynamic block, you can surely present a list of visibility states (or other dynamic properties, fo rthat matter) to user for their to choose one, as one of the step of the execution process of your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AI'd imagine your code does this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Insert the block at given location;&lt;/P&gt;
&lt;P&gt;2. pop up a form (modal dilog, so the user is forced to choose a dynamic property in the list), showing a list of the dynamic property.&lt;/P&gt;
&lt;P&gt;3. User chooses one (click or Enter/Esc), the dialog goes away and the inserted block shows the dynamic state as the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The process is nothing special. You just need to make the form more user-friendly for this operation. For example, I'd use a borderless win form, set proper background color (to resemble the dropdown list showing when user clicks the dynamic block's grip); I'd only show the list (labals, readonly textbox...) and present no close/cancel button, and while the default state selected (if use label/textbox as list item, set the selected to different background color), user can click any item or hit enter to accept the selected item to close the form, or hit Esc to close. You may use WPF to make the form look better. You may also want to show the small form near the inserted block. You can use Editor.PointToScreen() to find out the from's screen location with the block's position in AutoCAD.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 14:31:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522818#M41228</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2015-02-27T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re : Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522871#M41229</link>
      <description>&lt;P&gt;Don't think I'm making myself clear enough. &amp;nbsp;I'm not trying to display a userform, I want to show the native drop-down list from the dynamic block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a screenshot to show the type of list in question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So...how can I open the list&amp;nbsp;programmatically?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 15:00:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5522871#M41229</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-27T15:00:30Z</dc:date>
    </item>
    <item>
      <title>Re : Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5523172#M41230</link>
      <description>&lt;P&gt;Then I do not think there is API method exposed for you to call to get that list pops up from your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 17:45:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5523172#M41230</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2015-02-27T17:45:50Z</dc:date>
    </item>
    <item>
      <title>Re : Open Dynamic Block Visibility List Programatically?</title>
      <link>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5523696#M41231</link>
      <description>&lt;P&gt;This&amp;nbsp;looks like&amp;nbsp;a classical case of demanding an answer to your question instead of a solution to your problem. Norman's answer is the latter, and it is the correct solution to your problem.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2015 02:33:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/open-dynamic-block-visibility-list-programatically/m-p/5523696#M41231</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2015-02-28T02:33:05Z</dc:date>
    </item>
  </channel>
</rss>

