Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[Connect - C++] FenceManager - set clip mode

$
0
0

Hi all

i would like to use a fence and set the clip mode but I can't make it work. Here is my code:

virtual StatusInt _OnElementModify(EditElementHandleR eeh) override
{
	if (eeh.GetElementType() == ELLIPSE_ELM)
	{
		FenceManagerR fenceManager = FenceManager::GetManager();
		IndexedViewSetR viewSet = IViewManager::GetManager().GetActiveViewSet();
		fenceManager.DefineByElement(&eeh, viewSet.GetViewport(tcb->lstvw));
		FenceParamsP fenceParams = FenceParams::Create(ISessionMgr::GetActiveDgnModelP());
		fenceManager.InitFromActiveFence(*fenceParams, false, true, FenceClipMode::Original);
		lifalib_dmsg("clipMode1 = %d", fenceManager.IsClipMode());
	}
}

The isClipMode method in the FenceManager returns 0 (false) but I expected it to return true while the doClip parameter of the InitFromActiveFence is set to true.

What am I doing wrong ?

Regards, Evan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>