This event is generated when the coordinates of the object's dynamic hooks are needed.
Syntax: |
---|
function OnDynamicGetHooks(obj) |
Parameters
Parameter | Description |
---|---|
obj | An object of a class derived from DlxObject whose active hook coordinates need to be provided. |
Remarks
The purpose of this event is to get the coordinates of the object's active hooks. Use the object's AddHook method to specify all active hooks.
This event implements the dynamic functionality of the objects.
Example
For the complete code see "dynamic star.clxjob" in the sample files.
Copy code | |
---|---|
function OnDynamicGetHooks(obj)
{
obj.AddHook(obj.GetBoundingBox().CenterPoint());
}
|