I am creating plugin in AutoCAD for shape container, for this inner entity can only be move within the container, as per my basic knowledge to AutoCAD this can be done using JIG class.

Please suggest any code or sample to achieve this.

有帮助吗?

解决方案

Yes, a jig can be used for movement & placement. Inside of the jig you can restrict the movement by looking at the point(s) acad passes into your jig code and the altering those point(s) to keep the in the jig inside your restricted area.

Your code will be responsible for detecting collision/crossing of the container and calculating an correction to the points being dragged.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top