AcDbCurve::getSplitCurves question

AcDbCurve::getSplitCurves question

Anonymous
Not applicable
548 Views
0 Replies
Message 1 of 1

AcDbCurve::getSplitCurves question

Anonymous
Not applicable
I have problems with AcDbCurve::getSplitCurves(const AcGeDoubleArray&
params, AcDbVoidPtrArray& curveSegments) const
function. This function works as expected (according the documentation only
for curves
which are not closed and DB resident.
In this case we are obtaining 3 output curves when the length of param array
is 2.
But for closed curve (e.g. closed AcDb2dPolyline) only the last parameter
value is used and
I obtaining only 2 output curves. Is this correct?

Next question is that this fuction gives exception when applied to newly
created curve (not DB resident yet). Workarounds are simple: make curve be
open one by breaking in its endPoint and add it to
database before splitting. But the question is: is it documentation or
realization error?
0 Likes
549 Views
0 Replies
Replies (0)