Hi,
I created a custom entiy and override the standard method subGetOsnapPoints. No problem with existing (= present in database) entities, object snap works pefectly. But, it's totally different when I use a JIG to create my custom entity. During JIG, I don't get snap points from my custom entity itself.
So have you a solution to enable object snap in a JIG?
PS : I try to create a JIG with a AcDbPolyline as entity and result is the same : No snap points. Yet the command PLINE displays snap points... How to reproduce this?
Best regards,
Jonathan
Solved! Go to Solution.
Solved by owenwengerd. Go to Solution.
I suppose you could add the entity to the database before starting the jig, although I don't recommend that. You could add an input point monitor that calls the jigged entity's getOsnapPoints function and includes the results along with AutoCAD's results. You could also call your entity's getOsnapPoints in your jig's sample function and add your own logic there to determine how to interpret the acquired point based on the available snap points.
Thank you for your quick and useful reply. I begun to use a custom input point monitor (AcEdInputPointMonitor) and I noticed that AutoCAD polyline jig seems to jigged only the last segment of the polyline and have another polyline in database with all previous picked points.
What do you think about this solution?
Regards,
Jonathan Luthi
As I said, I don't recommend that because it's more difficult to clean up if the user cancels..