Get/Set Split Section in ViewSection with API

Get/Set Split Section in ViewSection with API

mehdi.blanchard
Enthusiast Enthusiast
448 Views
1 Reply
Message 1 of 2

Get/Set Split Section in ViewSection with API

mehdi.blanchard
Enthusiast
Enthusiast

Hi,

 

Is it possible to Get and Set the ViewSection split shape with the API?

Split ViewSectionSplit ViewSection

 

ViewSection section = view as ViewSection;
ViewCropRegionShapeManager cropMgr = section.GetCropRegionShapeManager();
IList<CurveLoop> loopList = cropMgr.GetCropShape();

 

The single CurveLoop in the list has just 4 lines, which seems to be just the main frame of the section

 

bool split = section.IsSplitSection();  // returns false but I was expecting true
int nb = cropMgr.NumberOfSplitRegions; // return 1, was expecting at least 2

 

cropmgrsplit.png

I haven't seen anything in the ElevationMarker class either.

 

Any help would be much appreciated...

0 Likes
449 Views
1 Reply
Reply (1)
Message 2 of 2

bhprest
Advocate
Advocate

To my knowledge, what you are looking for is not exposed through the API.

 

"SplitRegions" in this context actually refers to the ability to split the VIEWPORT into separate portions (The UI for this feature is the zig-zag at the mid point of a viewport cropbox). Very confusing, and not all that helpful, since the API doesn't give us access to actually shift those regions once they're split.

 

Screenshot 2021-06-02 231330.png

 

Screenshot 2021-06-02 231835.png

 

0 Likes