pycatia.cat_tps_interfaces.annotation_factory_2¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.cat_tps_interfaces.annotation_factory_2.AnnotationFactory2(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.FactoryAnnotationFactory2Interface for the TPS Factory.This factory is implemented on the Set object. All the created specificationsare added to the Set from which this interface is retrieved.- create_datum(i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateDatum(UserSurface iSurf) As Annotation2Create a Datum Feature.Parameters:iSurfUser surface needed to construct the Datum Feature.oDatumThe new created Datum Feature.
- Parameters:
i_surf (UserSurface) –
- Return type:
- create_datum_reference_frame() Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateDatumReferenceFrame() As Annotation2Create a Reference Frame (DRF). iType = 1 : Straightness 2 : AxisStraightness 3 : Flatness 4 : Circularity 5 : Cylindricity 6 : ProfileOfALine 7 : ProfileOfASurface 8 : Position
- Return type:
- create_datum_target(i_surf: UserSurface, i_datum: Annotation2) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateDatumTarget(UserSurface iSurf,Annotation2 iDatum) As Annotation2Create a Datum Target.Parameters:iSurfUser surface needed to construct the Datum Target.iDatumDatume Feature that is in relatino with the Datum Target.oDatumThe new created Datum Target.
- Parameters:
i_surf (UserSurface) –
i_datum (Annotation2) –
- Return type:
- create_ditto_noa(i_surf: UserSurface, i_noa_type: str, i_ditto: DrawingComponent, i_stick_to_geometry_option: bool) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateDittoNOA(UserSurface iSurf,CATBSTR iNOAType,DrawingComponent iDitto,boolean iStickToGeometryOption) As Annotation2Create a “Ditto” NOAParameters:iSurfThe user surface on which you apply the created NOA.iNOATypeType of the created NOA; this string defines the Type of Noa. Thistype can be filtered using the Filter command.iDittoThe drawing component selected to provide NOA display.iStickToGeometryOptionThis flag is TRUE to tell the factory that Stick Dittoperpendicularly to geometry option is selected. In this case, the ditto isinstantiated without frame or leader and its origin point is stuck and set onthe selected geometry. In addition, the default anchor point position is themiddle center. This argument is to be set to FALSE if leader attachment topoint out geometry is expected.oNoaThe new created NOA.
- Parameters:
i_surf (UserSurface) –
i_noa_type (str) –
i_ditto (DrawingComponent) –
i_stick_to_geometry_option (bool) –
- Return type:
- create_evaluate_datum(i_surf: UserSurface, i_x: float, i_y: float, i_z: float, i_with_leader: bool) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateEvoluateDatum(UserSurface iSurf,double iX,double iY,double iZ,boolean iWithLeader) As Annotation2Create a Datum Feature.Parameters:iSurfUser surface needed to construct the Datum Feature.iXX coordinate.iYY coordinate.iZZ coordinate.iWithLeaderCreate or not a leader on the annotation. If the leader isrequested: The activated TPSView shall not be parallel to the surface pointedby the annotation Datum. If the activated TPSView is parallel to the surfacepointed: - The leader will be disconnected - The extremity of the leader willbe positioned at the origin of the part - The annotation Datum is created butits status will be KO.oDatumThe new created Datum Feature.
- Parameters:
i_surf (UserSurface) –
i_x (float) –
i_y (float) –
i_z (float) –
i_with_leader (bool) –
- Return type:
- create_evaluate_text(i_surf: UserSurface, i_x: float, i_y: float, i_z: float, i_with_leader: bool) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateEvoluateText(UserSurface iSurf,double iX,double iY,double iZ,boolean iWithLeader) As Annotation2Create a Text.Parameters:iSurfUser surface needed to construct the Text.iXX coordinate.iYY coordinate.iZZ coordinate.iWithLeaderCreate or not a leader on the annotation. If the leader isrequested: The activated TPSView shall not be parallel to the surface pointedby the annotation Text. If the activated TPSView is parallel to the surfacepointed: - The leader will be disconnected - The extremity of the leader willbe positioned at the origin of the part - The annotation Text is created butits status will be KO.oTextThe new created Text.
- Parameters:
i_surf (UserSurface) –
i_x (float) –
i_y (float) –
i_z (float) –
i_with_leader (bool) –
- Return type:
- create_flag_note(i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateFlagNote(UserSurface iSurf) As Annotation2Create a FlagNote.Parameters:iSurfUser surface needed to construct the Flag Note.oFlagNoteThe new created Flag Note.
- Parameters:
i_surf (UserSurface) –
- Return type:
- create_non_semantic_dimension(i_surf: UserSurface, i_type: cat_variant, i_sub_type: cat_variant) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateNonSemanticDimension(UserSurface iSurf,CATVariant iType,CATVariant iSubType) As Annotation2Creates a non semantic Dimension specification.Parameters:iSurfUser surface needed to construct the Dimension.iSubType: 1 CATTPSDiameterDimension 2 CATTPSRadiusDimensioniType: 1 Linear Dimension 2 Angular Dimension 3 Second Linear Dim (Small diameter/radius for torus)oDimensionThe new created Dimension.
- Parameters:
i_surf (UserSurface) –
i_type (cat_variant) –
i_sub_type (cat_variant) –
- Return type:
- create_roughness(i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateRoughness(UserSurface iSurf) As Annotation2Create a Roughness.Parameters:iSurfUser surface needed to construct the Roughness.oRoughnessThe new created Roughness.
- Parameters:
i_surf (UserSurface) –
- Return type:
- create_semantic_dimension(i_surf: UserSurface, i_type: cat_variant, i_sub_type: cat_variant) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateSemanticDimension(UserSurface iSurf,CATVariant iType,CATVariant iSubType) As Annotation2Creates a semantic Dimension specification.Parameters:oDimensionThe new created Dimension.
- Parameters:
i_surf (UserSurface) –
i_type (cat_variant) –
i_sub_type (cat_variant) –
- Return type:
- create_text(i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateText(UserSurface iSurf) As Annotation2Create a Text.Parameters:iSurfUser surface needed to construct the Text.oTextThe new created Text.
- Parameters:
i_surf (UserSurface) –
- Return type:
- create_text_noa(i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateTextNOA(UserSurface iSurf) As Annotation2Create a “Text” NOAParameters:iSurfThe user surface on which you apply the created NOA.oNoaThe new created NOA.
- Parameters:
i_surf (UserSurface) –
- Return type:
- create_text_note_object_attribute(i_surf: UserSurface, i_noa_type: str) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateTextNoteObjectAttribute(UserSurface iSurf,CATBSTR iNOAType) As Annotation2Create a “Text” NOAParameters:iSurfThe user surface on which you apply the created NOA.iNOATypeType of the created NOA; this string defines the Type of Noa. Thistype can be filtered using the Filter command.oNoaThe new created NOA.
- Parameters:
i_surf (UserSurface) –
i_noa_type (str) –
- Return type:
- create_text_on_annot(i_text: str, i_annot: Annotation2) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateTextOnAnnot(CATBSTR iText,Annotation2 iAnnot) As Annotation2Create a Text grouped to an annotation.Parameters:iTextCharacter string that makes up the text.iAnnotAnnotation reference needed to group the Text.oTextThe new created Text.
- Parameters:
i_text (str) –
i_annot (Annotation2) –
- Return type:
- create_tolerance_with_drf(i_index: cat_variant, i_surf: UserSurface, i_drf: Annotation2) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateToleranceWithDRF(CATVariant iIndex,UserSurface iSurf,Annotation2 iDRF) As Annotation2Create a Tolerance With a Reference Frame DRF. iType = 1 : Angularity
- Parameters:
i_index (cat_variant) –
i_surf (UserSurface) –
i_drf (Annotation2) –
- Return type:
- create_tolerance_without_drf(i_index: cat_variant, i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateToleranceWithoutDRF(CATVariant iIndex,UserSurface iSurf) As Annotation2Create a Tolerance Without a Reference Frame (DRF). iType = 1 : Straightness 2 : AxisStraightness 3 : Flatness 4 : Circularity 5 : Cylindricity 6 : ProfileOfALine 7 : ProfileOfASurface 8 : Position
- Parameters:
i_index (cat_variant) –
i_surf (UserSurface) –
- Return type:
- create_weld(i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateWeld(UserSurface iSurf) As Annotation2Create a WeldParameters:iSurfThe user surface on which you apply the new Weld.oWeldThe new created Weld Feature.
- Parameters:
i_surf (UserSurface) –
- Return type:
- instantiate_noa(i_noa: Annotation2, i_surf: UserSurface) Annotation2 ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func InstanciateNOA(Annotation2 iNoa,UserSurface iSurf) As Annotation2Instanciate an NOA from a Reference NOA.Parameters:iNOAReference NOA.iSurfUser surface needed to construct the Dimension.oNOAThe new instanciated NOA.
- Parameters:
i_noa (Annotation2) –
i_surf (UserSurface) –
- Return type: