Message 1 of 4
How to compare points in a custom line entity

Not applicable
01-21-2019
08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a custom line entity called Myline. I know that this entity have two methods : Myline.startpoint() and myline.endpoint().
I need to compare these points and check if these points are connected together or not. For this reason, I collect all points in a vector and then compare each one to another.
Could you help me how can I do that? Can I compares points in a normal way like below:
if (point1==point2) { }
Or I need to use isequalto function as below:
if (point1.isequalto(point2, AcGeContext::gTol)==Adesk::KTrue {
}
But all above ways return errors in my code.