Methods Introduced:
|
|
wfcGTol.wfcGTol.AttachOffset_Create |
|
|
wfcGTol.GTol.AttachOffset.GetOffset |
|
|
wfcGTol.GTol.AttachOffset.SetOffset |
|
|
wfcGTol.GTol.AttachOffset.GetOffsetRef |
|
|
wfcGTol.GTol.AttachOffset.SetOffsetRef |
|
|
wfcGTol.wfcGTol.AttachMakeDimension_Create |
|
|
wfcGTol.GTol.AttachMakeDimension.GetLocation |
|
|
wfcGTol.GTol.AttachMakeDimension.SetLocation |
|
|
wfcGTol.GTol.AttachMakeDimension.GetOrientHint |
|
|
wfcGTol.GTol.AttachMakeDimension.SetOrientHint |
|
|
wfcGTol.GTol.AttachMakeDimension.GetDimSenses |
|
|
wfcGTol.GTol.AttachMakeDimension.SetDimSenses |
|
|
wfcGTol.GTol.AttachMakeDimension.GetDimAttachments |
|
|
wfcGTol.GTol.AttachMakeDimension.SetDimAttachments |
|
|
wfcGTol.GTol.AttachMakeDimension.GetAnnotationPlane |
|
|
wfcGTol.GTol.AttachMakeDimension.SetAnnotationPlane |
The method wfcGTol.GTol.GetGTolAttach retrieves all the attachment related information for a gtol using the class wfcGTolAttach.
The method
wfcGTol.GTol.GetType retrieves the type of attachment for a specified gtol. It uses the enumerated data type
wfcGTol.GTolAttachType to provide information about the placement of the gtol and has one of the following values:
|
• |
GTOLATTACH_DATUM—Specifies that the gtol is placed on its reference datum. |
|
• |
GTOLATTACH_ANNOTATION—Specifies that the gtol is attached to an annotation. |
|
• |
GTOLATTACH_ANNOTATION_ELBOW—Specifies that the gtol is attached to the elbow of an annotation. |
|
• |
GTOLATTACH_FREE—Specifies that the gtol is placed as free. It is unattached to the model or drawing. |
|
• |
GTOLATTACH_LEADERS—Specifies that the gtol is attached with one or more leader to geometry such as, edge, dimension witness line, coordinate
system, axis center, axis lines, curves, or surface points, vertices, section entities, draft entities, and so on. The leaders
are represented using an opaque handle, wfcGTolAttachLeader. |
|
• |
GTOLATTACH_OFFSET—Specifies that the gtol frame can be placed at an offset from the following drawing objects: dimension, dimension arrow,
gtol, note, and symbol. |
|
• |
GTOLATTACH_MAKE_DIM—Specifies that the gtol frame is attached to a dimension line. |
Use the method wfcGTol.GTol.SetAttachFree to set the attachment options for free type of gtol. The input argument Attach is specified using the class wfcGTol.GTolAttachFree.
Use the method
wfcGTol.wfcGTol.GTolAttachFree_Create to create an attachment for a gtol that is placed free. The input arguments are:
|
• |
Location—Specifies the location of the gtol text in model coordinates. |
|
• |
AnnotationPlane—Specifies the annotation plane in model coordinates. |
Use the methods wfcGTol.GTolAttachFree.GetLocation and wfcGTol.GTolAttachFree.SetLocation to get and set the location of the gtol text in a specified gtol using the class pfcBase.Point3D.
Use the methods wfcGTol.GTolAttachFree.GetAnnotationPlane and wfcGTol.GTolAttachFree.SetAnnotationPlane to get and set the annotation plane in a specified gtol using the class wfcAnnotation.AnnotationPlane.
Use the method wfcGTol.GTolAttachLeader.GetMissingLeaders to get the number of suppressed leaders due to missing references.
Use the method wfcGTol.GTol.SetAttachLeader to set the attachment options for leader type of gtol. The input argument Attach is specified using the class wfcGTol.GTolAttachLeader.
Use the method
wfcGTol.wfcGTol.GTolAttachLeader_Create to create an attachment for leader type of gtol. The input arguments are:
|
• |
LeaderAttachType—Specifies the attachment type for the leader. |
|
• |
Leaders—Specifies a sequence of gtol leaders. |
|
• |
Location—Specifies the location of gtol text in model coordinates. |
|
• |
AnnotationPlane—Specifies the annotation plane. For gtols defined in drawing, it returns NULL. |
Use the methods wfcGTol.GTolAttachLeader.GetLocation and wfcGTol.GTolAttachLeader.SetLocation to get and set the location of the gtol text in a specified gtol using the class pfcBase.Point3D.
Use the methods wfcGTol.GTolAttachLeader.GetLeaders and wfcGTol.GTolAttachLeader.SetLeaders to get and set the leaders in a specified gtol using the class wfcGTol.GTolLeaderInstructionsSeq.
Use the methods
wfcGTol.GTolAttachLeader.GetLeaderAttachType and
wfcGTol.GTolAttachLeader.SetLeaderAttachType to get and set the type of leaders that can be attached in a specified gtol. The type of leaders is specified using the enumerated
type
wfcGTol.GTolLeaderAttachType and one of the valid values are:
Use the methods wfcGTol.GTolAttachLeader.GetAnnotationPlane and wfcGTol.GTolAttachLeader.SetAnnotationPlane to get and set the annotation plane on which the leader is attached to the specified gtol. The plane is specified using the
class wfcAnnotation.AnnotationPlane.
Use the method wfcGTol.wfcGTol.GTolLeaderInstructions_Create to create instructions for a leader type of gtol.
The methods wfcGTol.GTolLeaderInstructions.GetSelection and wfcGTol.GTolLeaderInstructions.SetSelection get and set the selection of instructions for a leader type of gtol using the class pfcSelect.Selection.
The methods wfcGTol.GTolLeaderInstructions.GetType and wfcGTol.GTolLeaderInstructions.SetType get and set the type of instructions for a leader type of gtol.
The method wfcGTol.GTolLeaderInstructions.GetIsZExtension checks if the gtol leader has a Z-Extension line.
The method wfcGTol.GTolLeaderInstructions.GetZExtensionPoint retrieves the Z-Extension line of the gtol leader. The leader location coordinates are required when the gtol is moved to
a different annotation plane.
Use the method wfcGTol.GTol.SetAttachDatum to set the attachment options for datum symbol type of gtol. The input argument Attach is specified using the class wfcGTol.GTolAttachDatum.
Use the method wfcGTol.wfcGTol.GTolAttachDatum_Create to create an attachment for a specified datum inside a gtol. The input argument Datum is specified using the pfcModelItem.ModelItem class.
The methods wfcGTol.GTolAttachDatum.GetDatum and wfcGTol.GTolAttachDatum.SetDatum get and set the attachments for datum type of gtol.
From Creo Parametric 4.0 F000 onward, datum symbols are defined using datum feature symbol. The methods work with the new datum feature symbol along with
the legacy datum tag annotations.
Use the method wfcGTol.GTol.SetAttachAnnotation to set the attachment options for annotation type of gtol. The input argument Attach is specified using the class wfcGTol.GTolAttachAnnotation.
Use the method wfcGTol.wfcGTol.GTolAttachAnnotation_Create to create an attachment for a specified annotation inside a gtol. The input argument Annotation is specified using the wfcAnnotation.Annotation class.
The methods wfcGTol.GTolAttachAnnotation.GetAnnotation and wfcGTol.GTolAttachAnnotation.SetAnnotation get and set the attachments for annotation type of gtol.
Use the method wfcGTol.GTol.SetAttachOffset to set the offset references for the geometric tolerance. The input argument Attach is specified using the class wfcGTol.GTolAttachOffset.
Use the method
wfcGTol.wfcGTol.AttachOffset_Create to create an attachment for a gtol with offset references. The input arguments are:
|
• |
OffsetRef—Specifies the offset reference. |
|
• |
Offset—Specifies the position of the offset reference as model coordinates. |
The methods wfcGTol.GTol.AttachOffset.GetOffset and wfcGTol.GTol.AttachOffset.SetOffset get and set the position of the offset reference as model coordinates using the class pfcBase.Vector3D.
The methods wfcGTol.GTol.AttachOffset.GetOffsetRef and wfcGTol.GTol.AttachOffset.SetOffsetRef get and set the offset reference using the class pfcSelect.Selection. The reference can be a dimension, arrow of a dimension, another geometric tolerance, note, or a symbol instance. If there
are no offset references, the output argument returns NULL.
Use the method wfcGTol.GTol.SetAttachMakeDimension to set all the attachments options to create a geometric tolerance with Make Dim type of reference. The input argument Attach is specified using the class wfcGTol.GTolAttachMakeDimension.
Use the method wfcGTol.wfcGTol.AttachMakeDimension_Create to create an attachment for a gtol with Make Dim type of reference.
Use the methods wfcGTol.GTol.AttachMakeDimension.GetLocation and wfcGTol.GTol.AttachMakeDimension.SetLocation to get and set the location of the gtol text in a specified gtol using the class pfcPoint3D.
Use the methods
wfcGTol.GTol.AttachMakeDimension.GetOrientHint and
wfcGTol.GTol.AttachMakeDimension.SetOrientHint to get and set the orientation of the gtol using the enumerated type
pfcDimension.DimOrientationHint and one of the valid values are:
|
• |
ORIENTATION_HINT_HORIZONTAL |
|
• |
ORIENTATION_HINT_VERTICAL |
|
• |
ORIENTATION_HINT_SLANTED |
|
• |
ORIENTATION_HINT_ELLIPSE_RADIUS1 |
|
• |
ORIENTATION_HINT_ELLIPSE_RADIUS2 |
|
• |
ORIENTATION_HINT_ARC_ANGLE |
|
• |
ORIENTATION_HINT_ARC_LENGTH |
|
• |
ORIENTATION_HINT_LINE_TO_TANGENT_CURVE_ANGLE |
|
• |
ORIENTATION_HINT_RADIAL_DIFF |
Use the methods wfcGTol.GTol.AttachMakeDimension.GetDimSenses and wfcGTol.GTol.AttachMakeDimension.SetDimSenses to get and set the information about how the gtol attaches to each attachment point of the model or drawing. The input argument
value is specified using the class pfcDimension.DimSenses.
Use the methods wfcGTol.GTol.AttachMakeDimension.GetDimAttachments and wfcGTol.GTol.AttachMakeDimension.SetDimAttachments to get and set the points on the model or drawing where the gtol is attached. The input argument value is specified using the class pfcSelect.DimensionAttachments.
Use the methods wfcGTol.GTol.AttachMakeDimension.GetAnnotationPlane and wfcGTol.GTol.AttachMakeDimension.SetAnnotationPlane to get and set the annotation plane in a specified gtol using the class wfcAnnotation.AnnotationPlane.