Methods introduced:
|
|
wfcExternalObject.ExternalObjectSelectionBoxData_Create |
Use the method wfcExternalObject.ExternalObjectSelectionBoxData_Create to create a selection data information for the specified external object. This method returns the selection data for the
external object as a wfcExternalObject.ExternalObjectSelectionBoxData object.
Selection boxes are specified as part of the external object selection data. These selection boxes indicate locations in
which mouse selections will cause the external object to be selected. For the selection to be possible, you must designate
a set of “hot spots,” or selection boxes for the object.
A selection box is defined by the pair of points contained in a wfcExternalObject.SelectionBoxes object. The coordinates of the points are specified in the external object's coordinate system (the default coordinates).
The line between the points forms the diagonal of the selection box; the edges of the box lie parallel to the coordinate axes
of the external object.
Note
PTC recommends that the size and arrangement of the selection boxes be dependent on the size and shape of the external object.
If the external object is compact and uniformly distributed in all coordinate directions, one selection box will probably
suffice.
However, if the external object is distributed nonuniformly, or is interfering with other objects, you must designate more
specific locations at which selection should occur.
The method wfcExternalObject.ExternalObjectSelectionBoxData.GetBoxes retrieves the list of selection boxes in a given selection data.
To set the selection boxes within the selection data, call the method wfcExternalObject.ExternalObjectSelectionBoxData.SetBoxes and pass as input a pointer to a list of wfcExternalObject.SelectionBoxes objects. This enables your external object to have more than one associated selection box.