Assume a custom entity (MyLine) derives from AcDbCurve and draws lines in subWorlddraw. An ARX command creates two MyLine. When you run FILLET command, it will pop out
Fillet requires 2 lines, arcs, or circles.
The problem is that when the FILLET command is invoked, the entire implementation is bypassed and not used.
The workaround is to derive native AutoCAD entities
that are based on AcDbCurve. For example, you can derive from AcDbLine so your custom line will automatically support the FILLET command.
There is one more issue. After FILLET command, the two custom lines are filleted. However the lines are not trimmed. This used to work in 2002.
The workaround is custom line classes can implement their own extend() method to override the one in AcDbInternalLine and get AutoCAD’s behavior
virtual Acad::ErrorStatus extend(double newParam);
Acad::ErrorStatus CMyLine::extend(double param)
double norm = startPnt.distanceTo(endPnt);
AcGeLine3d geLine (startPnt, endPnt);
if (param > 0.0)
setEndPoint(ponc.point(param / norm));
setStartPoint(ponc.point(param / norm));