AcDbPolyline Derived Custom class does not reply for intersectWith() function

AcDbPolyline Derived Custom class does not reply for intersectWith() function

Anonymous
Not applicable
346 Views
2 Replies
Message 1 of 3

AcDbPolyline Derived Custom class does not reply for intersectWith() function

Anonymous
Not applicable
Hello!
I made a class which is derived from AcDbPolyline.Everything is OK but snap intersection point is always fail. So I place a breakpoint in the intersectWith() function,and it doesn't work.
Rarely system can enter intersectWith() ,Trim Break command and object trace mode use it.The breakpoint react at
this time.
Custom class derived from AcDbCurve does not have this problem,but It is hard to change my class.
In Acad2002,Acad2006.
Best wishes!
Thank you.
0 Likes
347 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
This was due to an optimization for speed with AcDbPolylines in the osnap
code in AutoCAD. That problem was fixed in AutoCAD 2007 so that the
optimization only works on true AcDbPolylines not objects of derived
classes. Unfortunately, that doesn't help you with Acad 2002 and 2006.
Sorry. 😞

wrote in message news:5675889@discussion.autodesk.com...
Hello!
I made a class which is derived from AcDbPolyline.Everything is OK but
snap intersection point is always fail. So I place a breakpoint in the
intersectWith() function,and it doesn't work.
Rarely system can enter intersectWith() ,Trim Break command and object
trace mode use it.The breakpoint react at
this time.
Custom class derived from AcDbCurve does not have this problem,but It is
hard to change my class.
In Acad2002,Acad2006.
Best
wishes!
Thank
you.
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thank you all the same!
0 Likes