<?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 How to use AcDbIndexFilterManager::getFilter Function in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715531#M9177</link>
    <description>&lt;P&gt;I wanna change the clip box of a block-ref, so I tried to get the&amp;nbsp;AcDbSpatialFilter *pFilter of the block, like this&lt;/P&gt;&lt;PRE&gt;	AcDbBlockReference *pBlkRef = NULL;
	if (Acad::eOk != acdbOpenObject(pBlkRef, idBlk, AcDb::kForWrite))
		return false;

	AcDbSpatialFilter *pFilter = NULL;
	Acad::ErrorStatus es = AcDbIndexFilterManager::getFilter(pBlkRef, AcDbSpatialFilter::desc(), AcDb::kForRead, pFilter);
	pBlkRef-&amp;gt;close();&lt;/PRE&gt;&lt;P&gt;but comes the&amp;nbsp;err&lt;/P&gt;&lt;PRE&gt;1&amp;gt;..\Common\Entity\BlockUtil.cpp(546) : error C2665: “AcDbIndexFilterManager::getFilter”: 2 个重载中没有一个可以转换所有参数类型
1&amp;gt;        d:\objectarx\objectarx2010\inc\dbindex.h(179): 可能是“Acad::ErrorStatus AcDbIndexFilterManager::getFilter(const AcDbBlockReference *,const AcRxClass *,AcDb::OpenMode,AcDbFilter *&amp;amp;)”
1&amp;gt;        d:\objectarx\objectarx2010\inc\dbindex.h(184): 或       “Acad::ErrorStatus AcDbIndexFilterManager::getFilter(const AcDbBlockReference *,int,AcDb::OpenMode,AcDbFilter *&amp;amp;)”
1&amp;gt;        试图匹配参数列表“(AcDbBlockReference *, AcRxClass *, AcDb::OpenMode, AcDbSpatialFilter *)”时&lt;/PRE&gt;&lt;P&gt;it must be the err of the value put in for the&amp;nbsp;const AcRxClass* key&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Acad::ErrorStatus

getFilter(

const AcDbBlockTableRecord* pBlkRef,

const AcRxClass* key,

AcDb::OpenMode readOrWrite,

AcDbFilter*&amp;amp; pFilter);

pBlkRef Input block reference from which to get the filter 
key Input class descriptor that is used as a key, to get to the filter 
readOrWrite Input mode in which to open the object 
pFilter Returns the filter &lt;/PRE&gt;&lt;P&gt;&amp;nbsp; So how to use the&amp;nbsp;AcDbIndexFilterManager::getFilter Function to get the pFilter of the block-ref?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2016 12:37:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-29T12:37:16Z</dc:date>
    <item>
      <title>How to use AcDbIndexFilterManager::getFilter Function</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715531#M9177</link>
      <description>&lt;P&gt;I wanna change the clip box of a block-ref, so I tried to get the&amp;nbsp;AcDbSpatialFilter *pFilter of the block, like this&lt;/P&gt;&lt;PRE&gt;	AcDbBlockReference *pBlkRef = NULL;
	if (Acad::eOk != acdbOpenObject(pBlkRef, idBlk, AcDb::kForWrite))
		return false;

	AcDbSpatialFilter *pFilter = NULL;
	Acad::ErrorStatus es = AcDbIndexFilterManager::getFilter(pBlkRef, AcDbSpatialFilter::desc(), AcDb::kForRead, pFilter);
	pBlkRef-&amp;gt;close();&lt;/PRE&gt;&lt;P&gt;but comes the&amp;nbsp;err&lt;/P&gt;&lt;PRE&gt;1&amp;gt;..\Common\Entity\BlockUtil.cpp(546) : error C2665: “AcDbIndexFilterManager::getFilter”: 2 个重载中没有一个可以转换所有参数类型
1&amp;gt;        d:\objectarx\objectarx2010\inc\dbindex.h(179): 可能是“Acad::ErrorStatus AcDbIndexFilterManager::getFilter(const AcDbBlockReference *,const AcRxClass *,AcDb::OpenMode,AcDbFilter *&amp;amp;)”
1&amp;gt;        d:\objectarx\objectarx2010\inc\dbindex.h(184): 或       “Acad::ErrorStatus AcDbIndexFilterManager::getFilter(const AcDbBlockReference *,int,AcDb::OpenMode,AcDbFilter *&amp;amp;)”
1&amp;gt;        试图匹配参数列表“(AcDbBlockReference *, AcRxClass *, AcDb::OpenMode, AcDbSpatialFilter *)”时&lt;/PRE&gt;&lt;P&gt;it must be the err of the value put in for the&amp;nbsp;const AcRxClass* key&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Acad::ErrorStatus

getFilter(

const AcDbBlockTableRecord* pBlkRef,

const AcRxClass* key,

AcDb::OpenMode readOrWrite,

AcDbFilter*&amp;amp; pFilter);

pBlkRef Input block reference from which to get the filter 
key Input class descriptor that is used as a key, to get to the filter 
readOrWrite Input mode in which to open the object 
pFilter Returns the filter &lt;/PRE&gt;&lt;P&gt;&amp;nbsp; So how to use the&amp;nbsp;AcDbIndexFilterManager::getFilter Function to get the pFilter of the block-ref?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 12:37:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715531#M9177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-29T12:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use AcDbIndexFilterManager::getFilter Function</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715572#M9178</link>
      <description>&lt;P&gt;Instead of&lt;/P&gt;
&lt;PRE&gt;Acad::ErrorStatus es = AcDbIndexFilterManager::getFilter(pBlkRef, AcDbSpatialFilter::desc(), AcDb::kForRead, pFilter);&lt;/PRE&gt;
&lt;P&gt;try to use:&lt;/P&gt;
&lt;PRE&gt;Acad::ErrorStatus es = AcDbIndexFilterManager::getFilter(pBlkRef, AcDbSpatialFilter::desc(), AcDb::kForRead, (AcDbFilter*&amp;amp;)pFilter);&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:01:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715572#M9178</guid>
      <dc:creator>Alexander.Rivilis</dc:creator>
      <dc:date>2016-11-29T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use AcDbIndexFilterManager::getFilter Function</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715617#M9179</link>
      <description>&lt;P&gt;OH.. Thank you !&lt;/P&gt;&lt;P&gt;Sorry for my careless...&lt;/P&gt;&lt;P&gt;I should be more careful..&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 13:18:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-use-acdbindexfiltermanager-getfilter-function/m-p/6715617#M9179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-29T13:18:13Z</dc:date>
    </item>
  </channel>
</rss>

