Issue with "CLIP DISPLAY" of AcDbSection

Hi Team,

I am currently blocked by setting the "CLIP DISPLAY" of a newly added AcDbSection entity, the "clip display" option on the property panel and the quad is on, but the entity doesn't clip as expected(a pictrue is attached for reference).

Here is the relevant code snippet:
"""
//create section and set basic properties
AcDbSection* pSec = new AcDbSection(arrPts, plane.normal().rotateBy(M_PI_2, arrPts[0] - arrPts[1]));

//use xdata "BrxDisplay" to control Clip Display on property panel
//reg app
acdbRegApp(L"BrxDisplay");

//build rb
struct resbuf* rb = acutBuildList(AcDb::kDxfRegAppName, L"BrxDisplay",//应用程序名称
AcDb::kDxfXdInteger16, 1,//整数
RTNONE);

//set xdata
pSec->setXData(rb);
acutRelRb(rb);

//append to model
ArxHelper::appendToModelSpace(pSec.object());
"""

Attached is a picture for your reference. Looking forward to your reply!

Kind regard,
William

//////////////////////////////////////////////////
Hi William, our properties panel also attaches a reactor to the new section when clip display is enabled. This is an internal reactor, not exposed to plugin code, so there is no way to attach it directly. However, there is a way to do it indirectly.

Please try something like the following after the new section entity is added to the database:

ads_name en = {};
acdbGetAdsName(en, sectionId);
resbuf* rb = acdbEntGet(en);
acdbEntMod(rb); //this is the trick to add the needed internal reactor
acutRelRb(rb);
Does that work for you?

Hi William, our properties panel also attaches a reactor to the new section when clip display is enabled. This is an internal reactor, not exposed to plugin code, so there is no way to attach it directly. However, there is a way to do it indirectly.

Please try something like the following after the new section entity is added to the database:

ads_name en = {};
acdbGetAdsName(en, sectionId);
resbuf* rb = acdbEntGet(en);
acdbEntMod(rb); //this is the trick to add the needed internal reactor
acutRelRb(rb);
Does that work for you?
//////////////////////////////////////////////////
it works well!