<?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 question in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640944#M66658</link>
    <description>Both yourself and Terry do not understand the question.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;SGRYA1&gt; wrote in message news:6345899@discussion.autodesk.com...&lt;BR /&gt;
Here is a vb version but taken from  this post.&lt;BR /&gt;
&lt;BR /&gt;
&lt;SNIP&gt;...&lt;/SNIP&gt;&lt;/SGRYA1&gt;</description>
    <pubDate>Mon, 01 Mar 2010 01:32:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-01T01:32:56Z</dc:date>
    <item>
      <title>Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640939#M66653</link>
      <description>I have a BlockTableRecord that represents a dynamic block. This dynamic block has several visibility states. How can I access these individual visibility states from this BlockTableRecord? I see that there is GetAnonymousBlockIds() method - is this the one to be looked into for this purpose?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Gagan</description>
      <pubDate>Sun, 28 Feb 2010 18:44:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640939#M66653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-28T18:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640940#M66654</link>
      <description>How does the user control the visiblity state?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;GAGANGAJABAHARIA&gt; wrote in message news:6345831@discussion.autodesk.com...&lt;BR /&gt;
I have a BlockTableRecord that represents a dynamic block. This dynamic block &lt;BR /&gt;
has several visibility states. How can I access these individual visibility &lt;BR /&gt;
states from this BlockTableRecord? I see that there is GetAnonymousBlockIds() &lt;BR /&gt;
method - is this the one to be looked into for this purpose?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Gagan&lt;/GAGANGAJABAHARIA&gt;</description>
      <pubDate>Sun, 28 Feb 2010 19:39:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640940#M66654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-28T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640941#M66655</link>
      <description>On 2/28/2010 1:44 PM, gagangajabaharia wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; This dynamic block has several visibility states. How can I access&lt;BR /&gt;
&amp;gt; these individual visibility states from this BlockTableRecord?&lt;BR /&gt;
&lt;BR /&gt;
Take a look at this example (watch for wordwrap on the link).&lt;BR /&gt;
&lt;BR /&gt;
http://through-the-interface.typepad.com/through_the_interface/2009/03/accessing-the-properties-of-a-dynamic-autocad-block-using-net.html&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Sun, 28 Feb 2010 20:46:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640941#M66655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-28T20:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640942#M66656</link>
      <description>On 2/28/2010 3:46 PM, Terry W. Dotson wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Take a look at this example ...&lt;BR /&gt;
&lt;BR /&gt;
It appears they are creating an instance of a BlockReference in memory&lt;BR /&gt;
and walking through it's DynamicBlockReferencePropertyCollection without&lt;BR /&gt;
actually appending the object to the database.&lt;BR /&gt;
&lt;BR /&gt;
Terry</description>
      <pubDate>Sun, 28 Feb 2010 21:00:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640942#M66656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-28T21:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640943#M66657</link>
      <description>Here is a vb version but taken from  this post.&lt;BR /&gt;
&lt;BR /&gt;
http://discussion.autodesk.com/forums/thread.jspa?messageID=5156444?&lt;BR /&gt;
&lt;BR /&gt;
  &lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Public Sub DynamicBlockProperties()&lt;BR /&gt;
        Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor&lt;BR /&gt;
        Dim tm As Autodesk.AutoCAD.DatabaseServices.TransactionManager = db.TransactionManager&lt;BR /&gt;
        Dim trans As Transaction = tm.StartTransaction&lt;BR /&gt;
        Dim pso As PromptSelectionOptions = New PromptSelectionOptions("Select Block ")&lt;BR /&gt;
        pso.SingleOnly = True&lt;BR /&gt;
        pso.SelectEverythingInAperture = True&lt;BR /&gt;
        Dim psr As PromptSelectionResult = ed.GetSelection(pso)&lt;BR /&gt;
        Dim br As BlockReference = trans.GetObject(psr.Value(0).ObjectId, OpenMode.ForRead, False, True)&lt;BR /&gt;
        If (br.IsDynamicBlock) Then&lt;BR /&gt;
            Dim dynBrProColl As DynamicBlockReferencePropertyCollection&lt;BR /&gt;
            dynBrProColl = br.DynamicBlockReferencePropertyCollection&lt;BR /&gt;
            Dim dynBrPro As DynamicBlockReferenceProperty&lt;BR /&gt;
            For Each dynBrPro In dynBrProColl&lt;BR /&gt;
                ed.WriteMessage(dynBrPro.PropertyName + " ")&lt;BR /&gt;
                ed.WriteMessage(dynBrPro.Value.ToString())&lt;BR /&gt;
                ed.WriteMessage("\n")&lt;BR /&gt;
            Next&lt;BR /&gt;
        Else&lt;BR /&gt;
            ed.WriteMessage("The block is not dynamic")&lt;BR /&gt;
        End If&lt;BR /&gt;
    End Sub

Edited by: sgrya1 on Mar 1, 2010 12:39 AM&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Sun, 28 Feb 2010 23:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640943#M66657</guid>
      <dc:creator>sgrya1</dc:creator>
      <dc:date>2010-02-28T23:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640944#M66658</link>
      <description>Both yourself and Terry do not understand the question.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;SGRYA1&gt; wrote in message news:6345899@discussion.autodesk.com...&lt;BR /&gt;
Here is a vb version but taken from  this post.&lt;BR /&gt;
&lt;BR /&gt;
&lt;SNIP&gt;...&lt;/SNIP&gt;&lt;/SGRYA1&gt;</description>
      <pubDate>Mon, 01 Mar 2010 01:32:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640944#M66658</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T01:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640945#M66659</link>
      <description>You need to clarify your question, as it's already&lt;BR /&gt;
left a few confused.&lt;BR /&gt;
&lt;BR /&gt;
For example, do you want to know what entities in&lt;BR /&gt;
the block are visible for a given visiblity state?&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;GAGANGAJABAHARIA&gt; wrote in message news:6345831@discussion.autodesk.com...&lt;BR /&gt;
I have a BlockTableRecord that represents a dynamic block. This dynamic block &lt;BR /&gt;
has several visibility states. How can I access these individual visibility &lt;BR /&gt;
states from this BlockTableRecord? I see that there is GetAnonymousBlockIds() &lt;BR /&gt;
method - is this the one to be looked into for this purpose?&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Gagan

Edited by: Discussion_Admin on Mar 1, 2010 5:49 PM&lt;/GAGANGAJABAHARIA&gt;</description>
      <pubDate>Mon, 01 Mar 2010 03:18:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640945#M66659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T03:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640946#M66660</link>
      <description>Sorry for the late response - I had forgotten to mark "Watch this thread".&lt;BR /&gt;
&lt;BR /&gt;
Yes Tony, that is exactly what I am trying to get at : what entities are visible for a given visibility state of a dynamic block.&lt;BR /&gt;
&lt;BR /&gt;
Thank you, Gagan</description>
      <pubDate>Mon, 01 Mar 2010 16:12:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640946#M66660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T16:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640947#M66661</link>
      <description>Thank you - this gives me the properties for the dynamic block. I need to know the entities visible for a given visibility state of the blockreference. Sorry about the confusion.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Gagan</description>
      <pubDate>Mon, 01 Mar 2010 16:33:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640947#M66661</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T16:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640948#M66662</link>
      <description>User controls the visibility state using the standard AutoCAD UI - select the dynamic block (i.e. insert) and then click on the little triangle to display the available visibility states and click on one of them to choose. I want to be able to get at the entities that are displayed when user chooses a particular  visibility state.&lt;BR /&gt;
&lt;BR /&gt;
Thanks you, Gagan&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; {quote:title=Guest wrote:}{quote}&lt;BR /&gt;
&amp;gt; How does the user control the visiblity state?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; -- &lt;BR /&gt;
&amp;gt; http://www.caddzone.com&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
&amp;gt; Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; http://www.acadxtabs.com&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;GAGANGAJABAHARIA&gt; wrote in message news:6345831@discussion.autodesk.com...&lt;BR /&gt;
&amp;gt; I have a BlockTableRecord that represents a dynamic block. This dynamic block &lt;BR /&gt;
&amp;gt; has several visibility states. How can I access these individual visibility &lt;BR /&gt;
&amp;gt; states from this BlockTableRecord? I see that there is GetAnonymousBlockIds() &lt;BR /&gt;
&amp;gt; method - is this the one to be looked into for this purpose?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Thanks, Gagan&lt;/GAGANGAJABAHARIA&gt;</description>
      <pubDate>Mon, 01 Mar 2010 16:39:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640948#M66662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640949#M66663</link>
      <description>What you need isn't available via any documented API, I'm afraid.&lt;BR /&gt;
&lt;BR /&gt;
You can get it, but it requires the use of acdbEntGet() (which you&lt;BR /&gt;
have to P/Invoke from managed code).&lt;BR /&gt;
&lt;BR /&gt;
Attached is a screen grab showing the DXF fields for the object&lt;BR /&gt;
that stores the visibility states for a dynamic block. That object&lt;BR /&gt;
is buried in the dynamic block def's extension dictionary, and&lt;BR /&gt;
is an instance of an "AcDbBlockVisibilityParameter" (that's the&lt;BR /&gt;
native ObjectARX class and the runtime class name, it's not the&lt;BR /&gt;
managed wrapper type).&lt;BR /&gt;
&lt;BR /&gt;
The right side shows the DXF fields for that object, and you can&lt;BR /&gt;
see the DXF fields for a single visiblity state. The 303 string is the&lt;BR /&gt;
name of the visiblity state. The next item (code 94) is an integer&lt;BR /&gt;
that holds the number of ObjectIds that immediately follow, which&lt;BR /&gt;
are the ids of the block entities that are explicitly visible in that state.&lt;BR /&gt;
&lt;BR /&gt;
The DXF data for the AcDbBlockVisibilityParameter contains this&lt;BR /&gt;
same set of fields for each visibility state. Since there can only be&lt;BR /&gt;
a single visibility state for each dynamic block, you can just seek&lt;BR /&gt;
the DXF data of the owner object to locate it's ObjectId, and then&lt;BR /&gt;
call acdbEntGet() on that, to get the visibility state data.&lt;BR /&gt;
&lt;BR /&gt;
So, the steps are:&lt;BR /&gt;
&lt;BR /&gt;
  1.  Get the BlockTableRecord for the dynamic block definition.&lt;BR /&gt;
&lt;BR /&gt;
  2.  Get the extension dictionary for the BlockTableRecord.&lt;BR /&gt;
&lt;BR /&gt;
  3.  Get ObjectId of the "ACAD_ENHANCEDBLOCK" entry in&lt;BR /&gt;
       the extension dictionary.&lt;BR /&gt;
&lt;BR /&gt;
  4.  call acdbEntGet() on ObjectId obtained in step 3, which&lt;BR /&gt;
       returns a ResultBuffer containing TypedValues.&lt;BR /&gt;
&lt;BR /&gt;
  5.  Iterate over the TypedValues looking for an item whose group&lt;BR /&gt;
       code is 360, and get the ObjectId stored in the TypedValue's&lt;BR /&gt;
       Value property, then get value of the 'Name' property of the&lt;BR /&gt;
       ObjectId's ObjectClass property, and see if it equals the string&lt;BR /&gt;
       "AcDbBlockVisibilityParameter".&lt;BR /&gt;
&lt;BR /&gt;
   6. Once you've found the AcDbBlockVisibilityParameter object's&lt;BR /&gt;
       ObjectId, call acdbEntGet() on it, and data like that shown on&lt;BR /&gt;
       the right side of the screen grab is returned in a ResultBuffer.&lt;BR /&gt;
&lt;BR /&gt;
   7. Iterate over the TypedValues in the ResultBuffer returned by&lt;BR /&gt;
       acdbEntGet(), looking for an item whose group code is 303,&lt;BR /&gt;
       and whose string value equals the name of the visibility group.&lt;BR /&gt;
&lt;BR /&gt;
   8. Get the next element from the ResultBuffer, which is a 94&lt;BR /&gt;
       group code whose value is the number of ObjectIds that&lt;BR /&gt;
       follow, and then read that many subsequent items having a&lt;BR /&gt;
       group code of 331, and collect the ObjectIds in each into a&lt;BR /&gt;
       list, and you then have the ObjectIds of the block entities&lt;BR /&gt;
       that are explicitly visible in the visiblity state.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;GAGANGAJABAHARIA&gt; wrote in message news:6346232@discussion.autodesk.com...&lt;BR /&gt;
Sorry for the late response - I had forgotten to mark "Watch this thread".&lt;BR /&gt;
&lt;BR /&gt;
Yes Tony, that is exactly what I am trying to get at : what entities are visible &lt;BR /&gt;
for a given visibility state of a dynamic block.&lt;BR /&gt;
&lt;BR /&gt;
Thank you, Gagan&lt;/GAGANGAJABAHARIA&gt;</description>
      <pubDate>Mon, 01 Mar 2010 20:00:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640949#M66663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640950#M66664</link>
      <description>Thanks, Tony for the detailed explanation. If this is the only way, I will have to bite the bullet and go that way - I am sure I will questions along the way.&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Gagan&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; {quote:title=Guest wrote:}{quote}&lt;BR /&gt;
&amp;gt; What you need isn't available via any documented API, I'm afraid.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; You can get it, but it requires the use of acdbEntGet() (which you&lt;BR /&gt;
&amp;gt; have to P/Invoke from managed code).&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Attached is a screen grab showing the DXF fields for the object&lt;BR /&gt;
&amp;gt; that stores the visibility states for a dynamic block. That object&lt;BR /&gt;
&amp;gt; is buried in the dynamic block def's extension dictionary, and&lt;BR /&gt;
&amp;gt; is an instance of an "AcDbBlockVisibilityParameter" (that's the&lt;BR /&gt;
&amp;gt; native ObjectARX class and the runtime class name, it's not the&lt;BR /&gt;
&amp;gt; managed wrapper type).&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;SNIP&gt;&lt;/SNIP&gt;</description>
      <pubDate>Mon, 01 Mar 2010 20:19:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640950#M66664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-01T20:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640951#M66665</link>
      <description>&lt;DIV id="jive-html-wrapper-div"&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;If you need something quick and dirty and don't &lt;BR /&gt;
have the time or desire to put forth that type of effort, simply copy the a &lt;BR /&gt;
dynamic block instance using that visibility state and explode it, examine the &lt;BR /&gt;
resulting geometry, then delete it once you've examined it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;&amp;lt;gagangajabaharia&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:6346482@discussion.autodesk.com"&amp;gt;news:6346482@discussion.autodesk.com&lt;/A&gt;...&lt;/DIV&gt;Thanks, &lt;BR /&gt;
  Tony for the detailed explanation. If this is the only way, I will have to &lt;BR /&gt;
  bite the bullet and go that way - I am sure I will questions along the way. &lt;BR /&gt;
  Thanks, Gagan &amp;gt; {quote:title=Guest wrote:}{quote} &amp;gt; What you need isn't &lt;BR /&gt;
  available via any documented API, I'm afraid. &amp;gt; &amp;gt; You can get it, but it &lt;BR /&gt;
  requires the use of acdbEntGet() (which you &amp;gt; have to P/Invoke from managed &lt;BR /&gt;
  code). &amp;gt; &amp;gt; Attached is a screen grab showing the DXF fields for the &lt;BR /&gt;
  object &amp;gt; that stores the visibility states for a dynamic block. That object &lt;BR /&gt;
  &amp;gt; is buried in the dynamic block def's extension dictionary, and &amp;gt; is an &lt;BR /&gt;
  instance of an "AcDbBlockVisibilityParameter" (that's the &amp;gt; native &lt;BR /&gt;
  ObjectARX class and the runtime class name, it's not the &amp;gt; managed wrapper &lt;BR /&gt;
  type). &amp;gt; &lt;SNIP&gt;&lt;/SNIP&gt;&lt;/BLOCKQUOTE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Mar 2010 19:10:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640951#M66665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-12T19:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640952#M66666</link>
      <description>{quote}&lt;BR /&gt;
&lt;BR /&gt;
If you need something quick and dirty and don't have the time or desire to put &lt;BR /&gt;
forth that type of effort, simply copy the a dynamic block instance using that &lt;BR /&gt;
visibility state and explode it, examine the resulting geometry, then delete it &lt;BR /&gt;
once you've examined it.&lt;BR /&gt;
&lt;BR /&gt;
{quote}&lt;BR /&gt;
&lt;BR /&gt;
I don't think that would work, because there's nothing in the entities produced &lt;BR /&gt;
by exploding the dynamic block that tells what entities are associated with a &lt;BR /&gt;
given visibility state. IOW, not all visible entities in a dynamic block need to &lt;BR /&gt;
be associated with a visibility state.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
"Darren J. Young" &lt;NOSPAM&gt; wrote in message &lt;BR /&gt;
news:6354065@discussion.autodesk.com...&lt;BR /&gt;
If you need something quick and dirty and don't have the time or desire to put &lt;BR /&gt;
forth that type of effort, simply copy the a dynamic block instance using that &lt;BR /&gt;
visibility state and explode it, examine the resulting geometry, then delete it &lt;BR /&gt;
once you've examined it.&lt;BR /&gt;
  &lt;GAGANGAJABAHARIA&gt; wrote in message news:6346482@discussion.autodesk.com...&lt;BR /&gt;
  Thanks, Tony for the detailed explanation. If this is the only way, I will &lt;BR /&gt;
have to bite the bullet and go that way - I am sure I will questions along the &lt;BR /&gt;
way. Thanks, Gagan &amp;gt; {quote:title=Guest wrote:}{quote} &amp;gt; What you need isn't &lt;BR /&gt;
available via any documented API, I'm afraid. &amp;gt; &amp;gt; You can get it, but it &lt;BR /&gt;
requires the use of acdbEntGet() (which you &amp;gt; have to P/Invoke from managed &lt;BR /&gt;
code). &amp;gt; &amp;gt; Attached is a screen grab showing the DXF fields for the object &amp;gt; &lt;BR /&gt;
that stores the visibility states for a dynamic block. That object &amp;gt; is buried &lt;BR /&gt;
in the dynamic block def's extension dictionary, and &amp;gt; is an instance of an &lt;BR /&gt;
"AcDbBlockVisibilityParameter" (that's the &amp;gt; native ObjectARX class and the &lt;BR /&gt;
runtime class name, it's not the &amp;gt; managed wrapper type). &amp;gt;&lt;/GAGANGAJABAHARIA&gt;&lt;/NOSPAM&gt;</description>
      <pubDate>Fri, 12 Mar 2010 21:29:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640952#M66666</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-12T21:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640953#M66667</link>
      <description>{quote}&lt;BR /&gt;
I don't think that would work, because there's nothing in the entities &lt;BR /&gt;
produced&lt;BR /&gt;
by exploding the dynamic block that tells what entities are associated with &lt;BR /&gt;
a&lt;BR /&gt;
given visibility state. IOW, not all visible entities in a dynamic block &lt;BR /&gt;
need to&lt;BR /&gt;
be associated with a visibility state.&lt;BR /&gt;
{quote}&lt;BR /&gt;
&lt;BR /&gt;
Good point Tony and an important nuance to the question..Are they looking &lt;BR /&gt;
for the entities visible when a given visibility state or entities that are &lt;BR /&gt;
actually associated to particular visibility state as visible.</description>
      <pubDate>Thu, 18 Mar 2010 14:05:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640953#M66667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-18T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640954#M66668</link>
      <description>The way I read it, the OP wanted to know what entities&lt;BR /&gt;
are associated with a given visibility state.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
"Darren J. Young" &lt;NOSPAM&gt; wrote in message &lt;BR /&gt;
news:6356789@discussion.autodesk.com...&lt;BR /&gt;
{quote}&lt;BR /&gt;
I don't think that would work, because there's nothing in the entities&lt;BR /&gt;
produced&lt;BR /&gt;
by exploding the dynamic block that tells what entities are associated with&lt;BR /&gt;
a&lt;BR /&gt;
given visibility state. IOW, not all visible entities in a dynamic block&lt;BR /&gt;
need to&lt;BR /&gt;
be associated with a visibility state.&lt;BR /&gt;
{quote}&lt;BR /&gt;
&lt;BR /&gt;
Good point Tony and an important nuance to the question..Are they looking&lt;BR /&gt;
for the entities visible when a given visibility state or entities that are&lt;BR /&gt;
actually associated to particular visibility state as visible.&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 18 Mar 2010 21:27:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2640954#M66668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-18T21:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic block question</title>
      <link>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2810842#M66669</link>
      <description>&lt;P&gt;Tony,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to do the same thing but Step 4 Returns nothing. &amp;nbsp;however, I can clearly see using ArxDbg that there should be a Result Buffer returned. &amp;nbsp;What could cause this not to work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW -- I'm using AutoCAD 2009 - Service Pack 4&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2010 16:51:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/dynamic-block-question/m-p/2810842#M66669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-28T16:51:34Z</dc:date>
    </item>
  </channel>
</rss>

