<?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 AttributeReference TextString problem in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267646#M74488</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to obtain the value of an AttributeReference in a BlockReference, I've done everything necessary to obtain the AttributeReference without problem, but when I access the TextString property it returns "" (Empty), I know for sure the drawing has value assigned in the block.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated, thanks&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
    <pubDate>Fri, 30 May 2008 17:19:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-05-30T17:19:46Z</dc:date>
    <item>
      <title>AttributeReference TextString problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267646#M74488</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to obtain the value of an AttributeReference in a BlockReference, I've done everything necessary to obtain the AttributeReference without problem, but when I access the TextString property it returns "" (Empty), I know for sure the drawing has value assigned in the block.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated, thanks&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
      <pubDate>Fri, 30 May 2008 17:19:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267646#M74488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-30T17:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeReference TextString problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267647#M74489</link>
      <description>There's not much anyone can do without seeing your code.&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;
&lt;ERICDANIEL&gt; wrote in message news:5944798@discussion.autodesk.com...&lt;BR /&gt;
Hi,&lt;BR /&gt;
&lt;BR /&gt;
I need to obtain the value of an AttributeReference in a BlockReference, I've done everything necessary to obtain the AttributeReference without problem, but when I access the TextString property it returns "" (Empty), I know for sure the drawing has value assigned in the block.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated, thanks&lt;BR /&gt;
&lt;BR /&gt;
Eric&lt;/ERICDANIEL&gt;</description>
      <pubDate>Sat, 31 May 2008 11:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267647#M74489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-31T11:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeReference TextString problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267648#M74490</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I don't know why but with some new drawings, done with full AutoCAD, I can successfully read the attributes values, but with other drawings which have been modified and saved with AutoCAD LT I can't.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Eric</description>
      <pubDate>Tue, 03 Jun 2008 19:06:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267648#M74490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-03T19:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeReference TextString problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267649#M74491</link>
      <description>Got a sample?&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;
&lt;ERICDANIEL&gt; wrote in message news:5947497@discussion.autodesk.com...&lt;BR /&gt;
Hi, &lt;BR /&gt;
&lt;BR /&gt;
I don't know why but with some new drawings, done with full AutoCAD, I can successfully read the attributes values, but with other drawings which have been modified and saved with AutoCAD LT I can't.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Eric&lt;/ERICDANIEL&gt;</description>
      <pubDate>Tue, 03 Jun 2008 23:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267649#M74491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-03T23:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeReference TextString problem</title>
      <link>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267650#M74492</link>
      <description>Hi Tony,&lt;BR /&gt;
&lt;BR /&gt;
This is the code I'm using:&lt;BR /&gt;
&lt;BR /&gt;
 [CommandMethod("tar")]&lt;BR /&gt;
        public void TestAttributeReference()&lt;BR /&gt;
        {&lt;BR /&gt;
            Database db = HostApplicationServices.WorkingDatabase;&lt;BR /&gt;
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;&lt;BR /&gt;
            using (Transaction trans = db.TransactionManager.StartTransaction())&lt;BR /&gt;
            {&lt;BR /&gt;
                BlockTable bt = (BlockTable)trans.GetObject(db.BlockTableId, OpenMode.ForWrite);&lt;BR /&gt;
                BlockTableRecord btr = (BlockTableRecord)trans.GetObject(bt["INFO_HOJAS_ATT"], OpenMode.ForRead);&lt;BR /&gt;
                foreach (ObjectId oid in btr.GetBlockReferenceIds(true, false))&lt;BR /&gt;
                {&lt;BR /&gt;
                    BlockReference titleBlock = trans.GetObject(oid, OpenMode.ForRead) as BlockReference;&lt;BR /&gt;
                    if (titleBlock == null) continue;&lt;BR /&gt;
                    foreach (ObjectId attOid in titleBlock.AttributeCollection) {&lt;BR /&gt;
                        AttributeReference ar = (AttributeReference)trans.GetObject(attOid, OpenMode.ForWrite);&lt;BR /&gt;
                        ed.WriteMessage(String.Format("{0} = {1}\n", ar.Tag, ar.TextString));&lt;BR /&gt;
                        // ...&lt;BR /&gt;
                    }&lt;BR /&gt;
                }&lt;BR /&gt;
                // trans.Commit();&lt;BR /&gt;
            }&lt;BR /&gt;
        }&lt;BR /&gt;
&lt;BR /&gt;
And attached id one of the files without xrefs. But now is working fine  I'm using a different PC from the original test. Will check tomorrow from the office.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Eric</description>
      <pubDate>Wed, 04 Jun 2008 02:46:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/attributereference-textstring-problem/m-p/2267650#M74492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-06-04T02:46:14Z</dc:date>
    </item>
  </channel>
</rss>

