Symbol Definition Attachments
Functions Introduced:
A symbol definition has several different ways in which instances of that symbol can be attached to the drawing. In
Creo Parametric users set these attachments from the
General tab on the
Symbol Definition Attributes dialog. Each attachment type is described in
Creo TOOLKIT by an opaque data structure called
ProDtlsymdefattach. This is allocated and filled by the function
ProDtlsymdefattachAlloc(). The types of attachment are:
• FREE—The symbol will have no leaders, and will be attached by a specified location.
• ON_ITEM—The symbol will be attached to an entity in the drawing.
• NORM_ITEM—The symbol will be attached to an entity, and be rotated to be normal to that entity.
• LEFT_LEADER—The attachment is by a leader to a point on an entity at the left of the symbol.
• RIGHT_LEADER—T he attachment is by a leader to a point on an entity at the right of the symbol.
• RADIAL_LEADER—The attachment is by a leader attached to a circular entity in the symbol.
The input arguments to the function are these
• type—The type of attachment
• entity_id—The id of the entity in the symbol definition which has the attachment point, if the attachment type is *_LEADER.entity_parameter The “t” value of the location on the entity which forms the attachment point, if the attachment type is *_LEADER.
• position—The location in the symbol coordinate system which forms the attachment point, if the attachment type is FREE, ON_ITEM, or NORM_ITEM.