<?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: Getting Constant Attributes from a Block with C# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501510#M70172</link>
    <description>Constant attributes are not stored with the insertion, they're stored in the &lt;BR /&gt;
block's definition.&lt;BR /&gt;
&lt;BR /&gt;
You shouldn't be using constant attributes in most scenarios because the are &lt;BR /&gt;
essentially nothing more than text objects in the block, that have special &lt;BR /&gt;
meaning to attribute extraction (or the legacy version of it).&lt;BR /&gt;
&lt;BR /&gt;
What are you using constant attributes for?&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;LIAL.WILLIAMS&gt; wrote in message &lt;BR /&gt;
news:6196501@discussion.autodesk.com...&lt;BR /&gt;
I am trying to get all of the attributes off of a given block entity. I use &lt;BR /&gt;
the code below to pull off the array of attributes and it works fine. &lt;BR /&gt;
//Create a reference to the block and open it for reading BlockReference &lt;BR /&gt;
myBR = (BlockReference)tm.GetObject(aID, OpenMode.ForRead); //Get the &lt;BR /&gt;
attributes off of the block reference &lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.AttributeCollection blockAttrs = &lt;BR /&gt;
myBR.AttributeCollection; How do I get the hidden attributes off of the same &lt;BR /&gt;
block? In the VBA version of this progam I used: varAttributes = &lt;BR /&gt;
blkRef.GetConstantAttributes I cannot find the corresponding method to do &lt;BR /&gt;
this in C#.&lt;/LIAL.WILLIAMS&gt;</description>
    <pubDate>Sat, 06 Jun 2009 00:06:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-06-06T00:06:48Z</dc:date>
    <item>
      <title>Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501509#M70171</link>
      <description>I am trying to get all of the attributes off of a given block entity.&lt;BR /&gt;
I use the code below to pull off the array of attributes and it works fine.&lt;BR /&gt;
                       &lt;BR /&gt;
 //Create a reference to the block and open it for reading&lt;BR /&gt;
 BlockReference myBR = (BlockReference)tm.GetObject(aID, OpenMode.ForRead);&lt;BR /&gt;
                        &lt;BR /&gt;
 //Get the attributes off of the block reference&lt;BR /&gt;
 Autodesk.AutoCAD.DatabaseServices.AttributeCollection blockAttrs = myBR.AttributeCollection;&lt;BR /&gt;
&lt;BR /&gt;
How do I get the hidden attributes off of the same block?&lt;BR /&gt;
In the VBA version of this progam I used:      varAttributes = blkRef.GetConstantAttributes&lt;BR /&gt;
&lt;BR /&gt;
I cannot find the corresponding method to do this in C#.</description>
      <pubDate>Fri, 05 Jun 2009 16:25:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501509#M70171</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-05T16:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501510#M70172</link>
      <description>Constant attributes are not stored with the insertion, they're stored in the &lt;BR /&gt;
block's definition.&lt;BR /&gt;
&lt;BR /&gt;
You shouldn't be using constant attributes in most scenarios because the are &lt;BR /&gt;
essentially nothing more than text objects in the block, that have special &lt;BR /&gt;
meaning to attribute extraction (or the legacy version of it).&lt;BR /&gt;
&lt;BR /&gt;
What are you using constant attributes for?&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;LIAL.WILLIAMS&gt; wrote in message &lt;BR /&gt;
news:6196501@discussion.autodesk.com...&lt;BR /&gt;
I am trying to get all of the attributes off of a given block entity. I use &lt;BR /&gt;
the code below to pull off the array of attributes and it works fine. &lt;BR /&gt;
//Create a reference to the block and open it for reading BlockReference &lt;BR /&gt;
myBR = (BlockReference)tm.GetObject(aID, OpenMode.ForRead); //Get the &lt;BR /&gt;
attributes off of the block reference &lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.AttributeCollection blockAttrs = &lt;BR /&gt;
myBR.AttributeCollection; How do I get the hidden attributes off of the same &lt;BR /&gt;
block? In the VBA version of this progam I used: varAttributes = &lt;BR /&gt;
blkRef.GetConstantAttributes I cannot find the corresponding method to do &lt;BR /&gt;
this in C#.&lt;/LIAL.WILLIAMS&gt;</description>
      <pubDate>Sat, 06 Jun 2009 00:06:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501510#M70172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-06T00:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501511#M70173</link>
      <description>Each block has two hidden attributes assigned that contain the block Name and short description.&lt;BR /&gt;
These attributes are placed by the block creator, are never changed and are not displayed to the end-users.&lt;BR /&gt;
Not my setup, just they way it's been done.&lt;BR /&gt;
&lt;BR /&gt;
In VBA it was pretty simple, just used the two Subs:&lt;BR /&gt;
&lt;BR /&gt;
    'Put the attributes from the symbol into an array&lt;BR /&gt;
    attArray = blkRef.GetAttributes&lt;BR /&gt;
    &lt;BR /&gt;
    'Get the Constant attributes which also happen to be invisible&lt;BR /&gt;
    varAttributes = blkRef.GetConstantAttributes&lt;BR /&gt;
&lt;BR /&gt;
 Are you implying that instead of using the block reference, I need to open the block definition?&lt;BR /&gt;
How would I go about doing that?</description>
      <pubDate>Mon, 08 Jun 2009 15:08:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501511#M70173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-08T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501512#M70174</link>
      <description>GetConstantAttributes() will get them, but it has to work much harder than &lt;BR /&gt;
is necessary to get the attributes.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;LIAL.WILLIAMS&gt; wrote in message &lt;BR /&gt;
news:6197422@discussion.autodesk.com...&lt;BR /&gt;
Each block has two hidden attributes assigned that contain the block Name &lt;BR /&gt;
and short description. These attributes are placed by the block creator, are &lt;BR /&gt;
never changed and are not displayed to the end-users. Not my setup, just &lt;BR /&gt;
they way it's been done. In VBA it was pretty simple, just used the two &lt;BR /&gt;
Subs: 'Put the attributes from the symbol into an array attArray = &lt;BR /&gt;
blkRef.GetAttributes 'Get the Constant attributes which also happen to be &lt;BR /&gt;
invisible varAttributes = blkRef.GetConstantAttributes Are you implying that &lt;BR /&gt;
instead of using the block reference, I need to open the block definition? &lt;BR /&gt;
How would I go about doing that?&lt;/LIAL.WILLIAMS&gt;</description>
      <pubDate>Tue, 09 Jun 2009 03:27:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501512#M70174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T03:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501513#M70175</link>
      <description>There is no GetConstantAttributes() method for the:&lt;BR /&gt;
 BlockReference or &lt;BR /&gt;
AttributeReference or &lt;BR /&gt;
AttributeDefinition or &lt;BR /&gt;
AttributeCollection.&lt;BR /&gt;
&lt;BR /&gt;
Has no one ever had to do this before?</description>
      <pubDate>Tue, 09 Jun 2009 14:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501513#M70175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T14:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501514#M70176</link>
      <description>Try exploring the API in the object browser, and you'll find it.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;LIAL.WILLIAMS&gt; wrote in message &lt;BR /&gt;
news:6198132@discussion.autodesk.com...&lt;BR /&gt;
There is no GetConstantAttributes() method for the: BlockReference or &lt;BR /&gt;
AttributeReference or AttributeDefinition or AttributeCollection. Has no one &lt;BR /&gt;
ever had to do this before?&lt;/LIAL.WILLIAMS&gt;</description>
      <pubDate>Tue, 09 Jun 2009 16:02:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501514#M70176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501515#M70177</link>
      <description>I have the block reference from:&lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.BlockReference&lt;BR /&gt;
&lt;BR /&gt;
The GetConstantAttributes() method is on the:&lt;BR /&gt;
Autodesk.AutoCAD.Interop.Common.IAcadBlockReference&lt;BR /&gt;
&lt;BR /&gt;
I don't see any way to get from one to the other.&lt;BR /&gt;
If it's not doable then why not just say so.</description>
      <pubDate>Tue, 09 Jun 2009 17:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501515#M70177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T17:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501516#M70178</link>
      <description>The method is on the AcadBlock object.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;LIAL.WILLIAMS&gt; wrote in message &lt;BR /&gt;
news:6198366@discussion.autodesk.com...&lt;BR /&gt;
I have the block reference from: &lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.BlockReference The GetConstantAttributes() &lt;BR /&gt;
method is on the: Autodesk.AutoCAD.Interop.Common.IAcadBlockReference I &lt;BR /&gt;
don't see any way to get from one to the other. If it's not doable then why &lt;BR /&gt;
not just say so.&lt;/LIAL.WILLIAMS&gt;</description>
      <pubDate>Tue, 09 Jun 2009 20:09:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501516#M70178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T20:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501517#M70179</link>
      <description>&amp;gt;I don't see any way to get from one to the other.&lt;BR /&gt;
&lt;BR /&gt;
Google is your friend.&lt;BR /&gt;
&lt;BR /&gt;
Kean explains how to use com objects to get methods and properties not present in the net objects.&lt;BR /&gt;
&lt;BR /&gt;
http://through-the-interface.typepad.com/through_the_interface/2007/02/using_the_com_i.html&lt;BR /&gt;
&lt;BR /&gt;
He talks about a hatch object in this lesson but it works for all Acad types.&lt;BR /&gt;
&lt;BR /&gt;
I used : &lt;BR /&gt;
&lt;BR /&gt;
AcadBlockReference Ablkref = obj2 as AcadBlockReference;&lt;BR /&gt;
&lt;BR /&gt;
to get the GetConstantAttributes() method.&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Tue, 09 Jun 2009 20:53:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501517#M70179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-09T20:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501518#M70180</link>
      <description>Sorry, my mistake.&lt;BR /&gt;
&lt;BR /&gt;
The GetConstantAttributes() method is on the AcadBlockReference COM object.&lt;BR /&gt;
&lt;BR /&gt;
You get that from the BlockReference's AcadObject property:&lt;BR /&gt;
&lt;BR /&gt;
       BlockReference blockref = ....&lt;BR /&gt;
&lt;BR /&gt;
       AcadBlockReference acadBlockRef = (AcadBlockReference) &lt;BR /&gt;
blockref.AcadObject;&lt;BR /&gt;
&lt;BR /&gt;
Then you can call acadBlockRef.GetConstantAttributes()&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;LIAL.WILLIAMS&gt; wrote in message &lt;BR /&gt;
news:6198366@discussion.autodesk.com...&lt;BR /&gt;
I have the block reference from: &lt;BR /&gt;
Autodesk.AutoCAD.DatabaseServices.BlockReference The GetConstantAttributes() &lt;BR /&gt;
method is on the: Autodesk.AutoCAD.Interop.Common.IAcadBlockReference I &lt;BR /&gt;
don't see any way to get from one to the other. If it's not doable then why &lt;BR /&gt;
not just say so.&lt;/LIAL.WILLIAMS&gt;</description>
      <pubDate>Wed, 10 Jun 2009 02:45:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501518#M70180</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T02:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501519#M70181</link>
      <description>Thanks Tony.&lt;BR /&gt;
&lt;BR /&gt;
I'm glad this came up.&lt;BR /&gt;
&lt;BR /&gt;
I'm assuming this is an improvement between net upgrades?&lt;BR /&gt;
(I've recently went to VS2008X &amp;amp; net3.5 from 2.0)&lt;BR /&gt;
Apparently you don't need the Marshalling anymore.&lt;BR /&gt;
&lt;BR /&gt;
From Keans example (back when) you had to do all this: &lt;BR /&gt;
&lt;BR /&gt;
Autodesk.AutoCAD.Interop.AcadApplication oAcad = (AcadApplication)Marshal.GetActiveObject("AutoCAD.Application.17"); &lt;BR /&gt;
object obj2 = oAcad.ActiveDocument.ObjectIdToObject(ent.ObjectId.OldId);&lt;BR /&gt;
AcadBlockReference AblkRef = obj2 as AcadBlockReference;&lt;BR /&gt;
&lt;BR /&gt;
It appears now that this is all it takes to do the same thing&lt;BR /&gt;
&lt;BR /&gt;
AcadBlockReference AblkRef = (AcadBlockReference)ent.AcadObject;&lt;BR /&gt;
&lt;BR /&gt;
Or was this just another way to accomplish the same ends?&lt;BR /&gt;
What am I missing?&lt;BR /&gt;
&lt;BR /&gt;
Looks like I'll be cleaning up some old code here.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Wed, 10 Jun 2009 11:22:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501519#M70181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T11:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501520#M70182</link>
      <description>You use Marshal.GetActiveObject() when you're connecting to AutoCAD from &lt;BR /&gt;
another process. That (or CreateObject) is the only way to connect to &lt;BR /&gt;
AutoCAD from another process.&lt;BR /&gt;
&lt;BR /&gt;
You should never use GetActiveObject() from an in-process client (a &lt;BR /&gt;
NETLOADed .dll), because the instance of AutoCAD you want to work with is &lt;BR /&gt;
returned by the managed Application object's AcadApplication property, and &lt;BR /&gt;
any other COM objects can be obtained directly from their corresponding &lt;BR /&gt;
managed wrappers via the managed wrapper's AcadObject property.&lt;BR /&gt;
&lt;BR /&gt;
There is also the AcadDocument and AcadDatabase properties of the Document &lt;BR /&gt;
and Database managed wrappers respectively, that return the corresponding &lt;BR /&gt;
COM wrappers.&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 2009&lt;BR /&gt;
Supporting AutoCAD 2000 through 2009&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Introducing AcadXTabs 2010:&lt;BR /&gt;
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BILLZNDL&gt; wrote in message news:6198849@discussion.autodesk.com...&lt;BR /&gt;
Thanks Tony. I'm glad this came up. I'm assuming this is an improvement &lt;BR /&gt;
between net upgrades? (I've recently went to VS2008X &amp;amp; net3.5 from 2.0) &lt;BR /&gt;
Apparently you don't need the Marshalling anymore. From Keans example (back &lt;BR /&gt;
when) you had to do all this: Autodesk.AutoCAD.Interop.AcadApplication oAcad &lt;BR /&gt;
= (AcadApplication)Marshal.GetActiveObject("AutoCAD.Application.17"); object &lt;BR /&gt;
obj2 = oAcad.ActiveDocument.ObjectIdToObject(ent.ObjectId.OldId); &lt;BR /&gt;
AcadBlockReference AblkRef = obj2 as AcadBlockReference; It appears now that &lt;BR /&gt;
this is all it takes to do the same thing AcadBlockReference AblkRef = &lt;BR /&gt;
(AcadBlockReference)ent.AcadObject; Or was this just another way to &lt;BR /&gt;
accomplish the same ends? What am I missing? Looks like I'll be cleaning up &lt;BR /&gt;
some old code here. Bill&lt;/BILLZNDL&gt;</description>
      <pubDate>Wed, 10 Jun 2009 12:43:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501520#M70182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T12:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501521#M70183</link>
      <description>Thanks,&lt;BR /&gt;
that explains it.&lt;BR /&gt;
&lt;BR /&gt;
I'd be interested in knowing some uses for com on the document and database.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Wed, 10 Jun 2009 13:59:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501521#M70183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T13:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501522#M70184</link>
      <description>Bill,&lt;BR /&gt;
Thank you for finally getting Tony to spill the beans about how to get this done.&lt;BR /&gt;
I have spent several hours over the past several days trying to work this out.&lt;BR /&gt;
&lt;BR /&gt;
FYI:  our Internet access is filtered and any page that is classified as "personal/Blog" is automatically blocked.&lt;BR /&gt;
So I cannot get to the reference you cited.&lt;BR /&gt;
&lt;BR /&gt;
Tony's caddzone.com site comes up with a classification of "none" so of course it is off limits too.&lt;BR /&gt;
Getting a waiver is a govenmental morass.&lt;BR /&gt;
&lt;BR /&gt;
I have to work within these limitations.....</description>
      <pubDate>Wed, 10 Jun 2009 15:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501522#M70184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T15:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Constant Attributes from a Block with C#</title>
      <link>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501523#M70185</link>
      <description>Don't thank me, thank Tony.&lt;BR /&gt;
I didn't do anything.&lt;BR /&gt;
&lt;BR /&gt;
This really isn't a forum for learning how to program as much as it is with problems related to the net framework,&lt;BR /&gt;
but Tony and others have been very generous with their time helping people.&lt;BR /&gt;
Sometimes it's not what you ask but how you ask it.&lt;BR /&gt;
&lt;BR /&gt;
And there is alot of sample code here on the site although the search function does leave something to be desired.&lt;BR /&gt;
&lt;BR /&gt;
I'm in the same boat with internet filters.&lt;BR /&gt;
When I use google, I keep the keywords simple, like, "GetConstantAttribute, c#" or something similar&lt;BR /&gt;
and I can't always access all the sites it returns but some I can and are very useful.&lt;BR /&gt;
&lt;BR /&gt;
Also the Object.arx samples and docs are helpful.&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Wed, 10 Jun 2009 18:56:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/getting-constant-attributes-from-a-block-with-c/m-p/2501523#M70185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-10T18:56:55Z</dc:date>
    </item>
  </channel>
</rss>

