<?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: getBlockReferenceIds and layouts in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357784#M26242</link>
    <description>Okay, I guess you couldn't find it.&lt;BR /&gt;
&lt;BR /&gt;
The array returned by getBlockReferenceIds contain Object Ids &lt;BR /&gt;
of AcDbBlockReferences, not AcDbBlockTableRecords.&lt;BR /&gt;
&lt;BR /&gt;
Again, look at 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 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"perry" &lt;PERRY_LEETS&gt; wrote in message news:4879578@discussion.autodesk.com...&lt;BR /&gt;
Tony Tanzillo wrote:&lt;BR /&gt;
&amp;gt; The name of the function is "getBlockReferenceIds", not&lt;BR /&gt;
&amp;gt; "getBlockTableRecordIds".&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Is that a good enough hint?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; How about:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcDbBlockTableRecord -&amp;gt; BLOCK&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcDbBlockReference -&amp;gt; INSERT&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Take another look at your code.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
"getBlockTableRecordIds" I dont see this anywhere in my code, neither can my compiler find it.&lt;BR /&gt;
"AcDbBlockTableRecord" I am aware that this is a BLOCK (definition).&lt;BR /&gt;
"AcDbBlockReference" I am aware that this is a INSERT (reference).&lt;BR /&gt;
Thanks so much&lt;BR /&gt;
Perry&lt;/PERRY_LEETS&gt;</description>
    <pubDate>Mon, 20 Jun 2005 17:16:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2005-06-20T17:16:05Z</dc:date>
    <item>
      <title>getBlockReferenceIds and layouts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357779#M26237</link>
      <description>The subject line kinda sums it up, in my app I need to gather block &lt;BR /&gt;
REFernces in the current layout only. Thought I had the answer, not.&lt;BR /&gt;
Seems I can find them in either all layouts or none. Does anyone know &lt;BR /&gt;
how to accomplish this? I posted my function below, hope the mail &lt;BR /&gt;
program hasnt mangled beyond comprehension.&lt;BR /&gt;
Thanks for any pointers&lt;BR /&gt;
Perry&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//////////////////////////////////////////////////////////////////////&lt;BR /&gt;
// Get block reference ID's for the block 'TBREVISION'&lt;BR /&gt;
// In the current layout only.&lt;BR /&gt;
// Note, this gets block REF's not block DEF's!&lt;BR /&gt;
//////////////////////////////////////////////////////////////////////&lt;BR /&gt;
&lt;BR /&gt;
Acad::ErrorStatus CRevision::GetRevBlockIds(AcDbObjectIdArray&amp;amp; refEnts)&lt;BR /&gt;
{&lt;BR /&gt;
	Acad::ErrorStatus es;&lt;BR /&gt;
	AcDbDatabase *pCurDb;&lt;BR /&gt;
	AcDbBlockTable *pBlkTable = NULL;&lt;BR /&gt;
	AcDbBlockTableRecord *pBlkTableRecord;&lt;BR /&gt;
	AcDbObjectId blkID;&lt;BR /&gt;
&lt;BR /&gt;
	const char *currentLayoutName = &lt;BR /&gt;
acdbHostApplicationServices()-&amp;gt;layoutManager()-&amp;gt;findActiveLayout(Adesk::kTrue);&lt;BR /&gt;
	AcDbLayout *pcurrentLayout = &lt;BR /&gt;
acdbHostApplicationServices()-&amp;gt;layoutManager()-&amp;gt;findLayoutNamed(currentLayoutName,Adesk::kFalse);&lt;BR /&gt;
	AcDbObjectId pLayoutBlkId = pcurrentLayout-&amp;gt;getBlockTableRecordId();&lt;BR /&gt;
	pCurDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();&lt;BR /&gt;
&lt;BR /&gt;
	if ((es = pCurDb-&amp;gt;getBlockTable(pBlkTable, AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
	{&lt;BR /&gt;
		//See if the block DEF exists before looking for References, if it does...&lt;BR /&gt;
		if (pBlkTable-&amp;gt;has("TBREVISION"))&lt;BR /&gt;
		{&lt;BR /&gt;
			//This code chunk finds refs in ALL layouts&lt;BR /&gt;
			pBlkTable-&amp;gt;getAt("TBREVISION", blkID);&lt;BR /&gt;
			if ((es = acdbOpenObject((AcDbObject *&amp;amp;)pBlkTableRecord, blkID, &lt;BR /&gt;
AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
			{&lt;BR /&gt;
				es = pBlkTableRecord-&amp;gt;getBlockReferenceIds(refEnts);&lt;BR /&gt;
				if (es != Acad::eOk)&lt;BR /&gt;
				{&lt;BR /&gt;
					acutPrintf("\nCRevision::GetRevBlockIds Couldnt get block refs");&lt;BR /&gt;
					return es;&lt;BR /&gt;
				}&lt;BR /&gt;
			}&lt;BR /&gt;
			else&lt;BR /&gt;
				acutPrintf("\nERROR: CRevision::GetRevBlockIds couldnt open block.");&lt;BR /&gt;
&lt;BR /&gt;
			//This code chunk is supposed to find refs in ONLY the current &lt;BR /&gt;
layout, but finds none.&lt;BR /&gt;
			/*&lt;BR /&gt;
			if ((es = acdbOpenObject((AcDbObject *&amp;amp;)pBlkTableRecord, &lt;BR /&gt;
pLayoutBlkId, AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
			{&lt;BR /&gt;
				es = pBlkTableRecord-&amp;gt;getBlockReferenceIds(refEnts);&lt;BR /&gt;
				if (es != Acad::eOk)&lt;BR /&gt;
				{&lt;BR /&gt;
					acutPrintf("\nCRevision::GetRevBlockIds Couldnt get block refs");&lt;BR /&gt;
					return es;&lt;BR /&gt;
				}&lt;BR /&gt;
			}&lt;BR /&gt;
			else&lt;BR /&gt;
				acutPrintf("\nERROR: CRevision::GetRevBlockIds couldnt open block.");&lt;BR /&gt;
			*/&lt;BR /&gt;
			pBlkTableRecord-&amp;gt;close();&lt;BR /&gt;
		}&lt;BR /&gt;
	}&lt;BR /&gt;
	pBlkTable-&amp;gt;close();&lt;BR /&gt;
	return es;&lt;BR /&gt;
}</description>
      <pubDate>Fri, 17 Jun 2005 20:44:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357779#M26237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-17T20:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: getBlockReferenceIds and layouts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357780#M26238</link>
      <description>Well, right after posting this I thought "if getBlockReferenceIds wont&lt;BR /&gt;
let me limit its action to a particular layout, then just get all the&lt;BR /&gt;
ID's and pick through them and discard the ones you dont want".&lt;BR /&gt;
Sounded reasonable, but I'm having trouble with that solution as well.&lt;BR /&gt;
When iterating through the array of ID's Im getting an access violation&lt;BR /&gt;
while attemping to get the name of an object.&lt;BR /&gt;
Beint a budding Arx programmer I have had occasion to see lots of this&lt;BR /&gt;
error. But after going through the trouble of creating different&lt;BR /&gt;
variables for different ID's &amp;amp; table records AND completly seperating&lt;BR /&gt;
my iterating code from the rest (and closing objects) I still get the&lt;BR /&gt;
access violation.&lt;BR /&gt;
Can someone tell me what I have done wrong here?&lt;BR /&gt;
Should I just scrap this and do an SSGET type thing?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Perry&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//////////////////////////////////////////////////////////////////////&lt;BR /&gt;
// Get block reference ID's for the block 'TBREVISION'&lt;BR /&gt;
// In the current layout only.&lt;BR /&gt;
// Note, this gets block REF's not block DEF's!&lt;BR /&gt;
//////////////////////////////////////////////////////////////////////&lt;BR /&gt;
/*&lt;BR /&gt;
How about just getting all the refs, then picking thru em&lt;BR /&gt;
and keeping just the ones on the current layout?&lt;BR /&gt;
Also, make this func more generic (pass in block name) and put&lt;BR /&gt;
it in the utils file. Can use it for finding title blocks too&lt;BR /&gt;
*/&lt;BR /&gt;
Acad::ErrorStatus CRevision::GetRevBlockIds(AcDbObjectIdArray&amp;amp; refEnts)&lt;BR /&gt;
{&lt;BR /&gt;
	Acad::ErrorStatus es;&lt;BR /&gt;
	AcDbDatabase *pCurDb;&lt;BR /&gt;
	AcDbBlockTable *pBlkTable = NULL;&lt;BR /&gt;
	AcDbBlockTableRecord *pBlkTableRecord;&lt;BR /&gt;
	AcDbObjectId blkID;&lt;BR /&gt;
	AcDbBlockTableRecord *pBlkTableRecord2;&lt;BR /&gt;
	AcDbObjectId blkID2;&lt;BR /&gt;
	char *pBlkName;&lt;BR /&gt;
	pCurDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();&lt;BR /&gt;
&lt;BR /&gt;
	if ((es = pCurDb-&amp;gt;getBlockTable(pBlkTable, AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
	{&lt;BR /&gt;
		//See if the block DEF exists before looking for References, if it does...&lt;BR /&gt;
		if (pBlkTable-&amp;gt;has("TBREVISION"))&lt;BR /&gt;
		{&lt;BR /&gt;
			pBlkTable-&amp;gt;getAt("TBREVISION", blkID);&lt;BR /&gt;
			if ((es = acdbOpenObject((AcDbObject *&amp;amp;)pBlkTableRecord, blkID,&lt;BR /&gt;
AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
			{&lt;BR /&gt;
				es = pBlkTableRecord-&amp;gt;getBlockReferenceIds(refEnts);&lt;BR /&gt;
				if (es != Acad::eOk)&lt;BR /&gt;
				{&lt;BR /&gt;
					acutPrintf("\nCRevision::GetRevBlockIds Couldnt get block refs");&lt;BR /&gt;
					return es;&lt;BR /&gt;
				}&lt;BR /&gt;
			}&lt;BR /&gt;
			else&lt;BR /&gt;
				acutPrintf("\nERROR: CRevision::GetRevBlockIds couldnt open block&lt;BR /&gt;
table record.");&lt;BR /&gt;
			pBlkTableRecord-&amp;gt;close();&lt;BR /&gt;
		}&lt;BR /&gt;
		pBlkTable-&amp;gt;close();&lt;BR /&gt;
	}&lt;BR /&gt;
	&lt;BR /&gt;
	if (!refEnts.isEmpty())&lt;BR /&gt;
	{&lt;BR /&gt;
		pCurDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();&lt;BR /&gt;
&lt;BR /&gt;
		if ((es = pCurDb-&amp;gt;getBlockTable(pBlkTable, AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
		{&lt;BR /&gt;
			for(int dLen = 0; dLen &amp;lt; refEnts.length(); dLen++)&lt;BR /&gt;
			{&lt;BR /&gt;
				blkID2 = refEnts.at(dLen);&lt;BR /&gt;
				if ( acdbOpenObject ((AcDbObject *&amp;amp;)pBlkTableRecord2, blkID2,&lt;BR /&gt;
AcDb::kForRead) == Acad::eOk )&lt;BR /&gt;
				{&lt;BR /&gt;
					pBlkTableRecord2-&amp;gt;getName(pBlkName); //Acess violation here&lt;BR /&gt;
					if ( strnicmp (pBlkName, "TBREVISION", 10) != 0 )&lt;BR /&gt;
					{&lt;BR /&gt;
						// remove this ID from the array&lt;BR /&gt;
						// gonna have to change this to a while loop&lt;BR /&gt;
					}&lt;BR /&gt;
					pBlkTableRecord2-&amp;gt;close () ;&lt;BR /&gt;
					acdbFree (pBlkName) ;&lt;BR /&gt;
				}&lt;BR /&gt;
			}&lt;BR /&gt;
			pBlkTable-&amp;gt;close();&lt;BR /&gt;
		}&lt;BR /&gt;
	}&lt;BR /&gt;
	return es;&lt;BR /&gt;
}</description>
      <pubDate>Mon, 20 Jun 2005 16:27:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357780#M26238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T16:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: getBlockReferenceIds and layouts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357781#M26239</link>
      <description>The name of the function is "getBlockReferenceIds", not&lt;BR /&gt;
"getBlockTableRecordIds".&lt;BR /&gt;
&lt;BR /&gt;
Is that a good enough hint?&lt;BR /&gt;
&lt;BR /&gt;
How about:&lt;BR /&gt;
&lt;BR /&gt;
  AcDbBlockTableRecord -&amp;gt; BLOCK&lt;BR /&gt;
&lt;BR /&gt;
  AcDbBlockReference -&amp;gt; INSERT&lt;BR /&gt;
&lt;BR /&gt;
Take another look at your code.&lt;BR /&gt;
&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 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"perry" &lt;PERRY_LEETS&gt; wrote in message news:4879516@discussion.autodesk.com...&lt;BR /&gt;
Beint a budding Arx programmer I have had occasion to see lots of this&lt;BR /&gt;
error. But after going through the trouble of creating different&lt;BR /&gt;
variables for different ID's &amp;amp; table records AND completly seperating&lt;BR /&gt;
my iterating code from the rest (and closing objects) I still get the&lt;BR /&gt;
access violation.&lt;BR /&gt;
Can someone tell me what I have done wrong here?&lt;BR /&gt;
Should I just scrap this and do an SSGET type thing?&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Perry&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//////////////////////////////////////////////////////////////////////&lt;BR /&gt;
// Get block reference ID's for the block 'TBREVISION'&lt;BR /&gt;
// In the current layout only.&lt;BR /&gt;
// Note, this gets block REF's not block DEF's!&lt;BR /&gt;
//////////////////////////////////////////////////////////////////////&lt;BR /&gt;
/*&lt;BR /&gt;
How about just getting all the refs, then picking thru em&lt;BR /&gt;
and keeping just the ones on the current layout?&lt;BR /&gt;
Also, make this func more generic (pass in block name) and put&lt;BR /&gt;
it in the utils file. Can use it for finding title blocks too&lt;BR /&gt;
*/&lt;BR /&gt;
Acad::ErrorStatus CRevision::GetRevBlockIds(AcDbObjectIdArray&amp;amp; refEnts)&lt;BR /&gt;
{&lt;BR /&gt;
Acad::ErrorStatus es;&lt;BR /&gt;
AcDbDatabase *pCurDb;&lt;BR /&gt;
AcDbBlockTable *pBlkTable = NULL;&lt;BR /&gt;
AcDbBlockTableRecord *pBlkTableRecord;&lt;BR /&gt;
AcDbObjectId blkID;&lt;BR /&gt;
AcDbBlockTableRecord *pBlkTableRecord2;&lt;BR /&gt;
AcDbObjectId blkID2;&lt;BR /&gt;
char *pBlkName;&lt;BR /&gt;
pCurDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();&lt;BR /&gt;
&lt;BR /&gt;
if ((es = pCurDb-&amp;gt;getBlockTable(pBlkTable, AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
{&lt;BR /&gt;
//See if the block DEF exists before looking for References, if it does...&lt;BR /&gt;
if (pBlkTable-&amp;gt;has("TBREVISION"))&lt;BR /&gt;
{&lt;BR /&gt;
pBlkTable-&amp;gt;getAt("TBREVISION", blkID);&lt;BR /&gt;
if ((es = acdbOpenObject((AcDbObject *&amp;amp;)pBlkTableRecord, blkID,&lt;BR /&gt;
AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
{&lt;BR /&gt;
es = pBlkTableRecord-&amp;gt;getBlockReferenceIds(refEnts);&lt;BR /&gt;
if (es != Acad::eOk)&lt;BR /&gt;
{&lt;BR /&gt;
acutPrintf("\nCRevision::GetRevBlockIds Couldnt get block refs");&lt;BR /&gt;
return es;&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
else&lt;BR /&gt;
acutPrintf("\nERROR: CRevision::GetRevBlockIds couldnt open block&lt;BR /&gt;
table record.");&lt;BR /&gt;
pBlkTableRecord-&amp;gt;close();&lt;BR /&gt;
}&lt;BR /&gt;
pBlkTable-&amp;gt;close();&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
if (!refEnts.isEmpty())&lt;BR /&gt;
{&lt;BR /&gt;
pCurDb = acdbHostApplicationServices()-&amp;gt;workingDatabase();&lt;BR /&gt;
&lt;BR /&gt;
if ((es = pCurDb-&amp;gt;getBlockTable(pBlkTable, AcDb::kForRead)) == Acad::eOk)&lt;BR /&gt;
{&lt;BR /&gt;
for(int dLen = 0; dLen &amp;lt; refEnts.length(); dLen++)&lt;BR /&gt;
{&lt;BR /&gt;
blkID2 = refEnts.at(dLen);&lt;BR /&gt;
if ( acdbOpenObject ((AcDbObject *&amp;amp;)pBlkTableRecord2, blkID2,&lt;BR /&gt;
AcDb::kForRead) == Acad::eOk )&lt;BR /&gt;
{&lt;BR /&gt;
pBlkTableRecord2-&amp;gt;getName(pBlkName); //Acess violation here&lt;BR /&gt;
if ( strnicmp (pBlkName, "TBREVISION", 10) != 0 )&lt;BR /&gt;
{&lt;BR /&gt;
// remove this ID from the array&lt;BR /&gt;
// gonna have to change this to a while loop&lt;BR /&gt;
}&lt;BR /&gt;
pBlkTableRecord2-&amp;gt;close () ;&lt;BR /&gt;
acdbFree (pBlkName) ;&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
pBlkTable-&amp;gt;close();&lt;BR /&gt;
}&lt;BR /&gt;
}&lt;BR /&gt;
return es;&lt;BR /&gt;
}&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Mon, 20 Jun 2005 16:41:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357781#M26239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T16:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: getBlockReferenceIds and layouts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357782#M26240</link>
      <description>Tony Tanzillo wrote:&lt;BR /&gt;
&amp;gt; The name of the function is "getBlockReferenceIds", not&lt;BR /&gt;
&amp;gt; "getBlockTableRecordIds".&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Is that a good enough hint?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; How about:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcDbBlockTableRecord -&amp;gt; BLOCK&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcDbBlockReference -&amp;gt; INSERT&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Take another look at your code.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
"getBlockTableRecordIds" I dont see this anywhere in my code, neither can my compiler find it.&lt;BR /&gt;
"AcDbBlockTableRecord" I am aware that this is a BLOCK (definition).&lt;BR /&gt;
"AcDbBlockReference" I am aware that this is a INSERT (reference).&lt;BR /&gt;
Thanks so much&lt;BR /&gt;
Perry</description>
      <pubDate>Mon, 20 Jun 2005 17:02:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357782#M26240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T17:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: getBlockReferenceIds and layouts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357783#M26241</link>
      <description>perry schrieb:&lt;BR /&gt;
[...]&lt;BR /&gt;
&lt;BR /&gt;
try:&lt;BR /&gt;
&lt;BR /&gt;
		pBlkName = NULL;&lt;BR /&gt;
&amp;gt; 		pBlkTableRecord2-&amp;gt;getName(pBlkName); //Acess violation here&lt;BR /&gt;
&amp;gt; 		if ( strnicmp (pBlkName, "TBREVISION", 10) != 0 )&lt;BR /&gt;
[...]&lt;BR /&gt;
&lt;BR /&gt;
Arnold</description>
      <pubDate>Mon, 20 Jun 2005 17:04:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357783#M26241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: getBlockReferenceIds and layouts</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357784#M26242</link>
      <description>Okay, I guess you couldn't find it.&lt;BR /&gt;
&lt;BR /&gt;
The array returned by getBlockReferenceIds contain Object Ids &lt;BR /&gt;
of AcDbBlockReferences, not AcDbBlockTableRecords.&lt;BR /&gt;
&lt;BR /&gt;
Again, look at 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 2004/2005/2006&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
"perry" &lt;PERRY_LEETS&gt; wrote in message news:4879578@discussion.autodesk.com...&lt;BR /&gt;
Tony Tanzillo wrote:&lt;BR /&gt;
&amp;gt; The name of the function is "getBlockReferenceIds", not&lt;BR /&gt;
&amp;gt; "getBlockTableRecordIds".&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Is that a good enough hint?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; How about:&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcDbBlockTableRecord -&amp;gt; BLOCK&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt;   AcDbBlockReference -&amp;gt; INSERT&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Take another look at your code.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
"getBlockTableRecordIds" I dont see this anywhere in my code, neither can my compiler find it.&lt;BR /&gt;
"AcDbBlockTableRecord" I am aware that this is a BLOCK (definition).&lt;BR /&gt;
"AcDbBlockReference" I am aware that this is a INSERT (reference).&lt;BR /&gt;
Thanks so much&lt;BR /&gt;
Perry&lt;/PERRY_LEETS&gt;</description>
      <pubDate>Mon, 20 Jun 2005 17:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/getblockreferenceids-and-layouts/m-p/1357784#M26242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-06-20T17:16:05Z</dc:date>
    </item>
  </channel>
</rss>

