In the real world a
Jig is a frame to which you can attach an item, hold it firm and then
manipulate or form it into position. In AutoCAD, a Jig is very similar – a
Jig is an API class which you can use to visually manipulate an entity into
place using the User Interface. A good and simple example of this can be seen
with the Circle command – you pick the center point of the circle, then to
select the radius you can visually resize the circle. |
|
We have 2 types of
Jig in the AutoCAD .NET API, the Entity Jig controls just one entity at a
time and the DrawJig allows you to attach 1 or more entities. The Entity Jig
wraps the ObjectARX implementation, whereas the DrawJig is an exclusive class
owned only by the .NET API. To use a jig you will need to create a class that
inherits from EntityJig or DrawJig. We will focus on EntityJig in this
training. |