Dear All,
How to snap the DataPoint to GridPoint? I tried with the code snippet given below. But it doesn't work. Is there anyother method/suggestion?
ActiveSettings.GridLockEnabled = True
CadInputQueue.SendKeyin "place smartline"
CadInputQueue.SendDataPoint point
Hi,
no, it works as expected. SendDataPoint method is similar to xy= key-in and they don't respect locks settings and allow to place data point at exact coordinates.
If you create own standard placement class implementing IPrimitiveCommandEvents, it will respect grid and other locks automatically. You can try (copy and paste) Line Element Creation Command example from VBA help.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point