Message 1 of 1
AcDbCurve::getSplitCurves question

Not applicable
04-18-2002
04:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
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?