pycatia.structure_interfaces.str_feature_factory¶
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.structure_interfaces.str_feature_factory.StrFeatureFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectStrFeatureFactoryRepresents the Factory Object for Structure Features.The factory is retrieved using the StrPlate or StrMemberExample:The following example retrieves the Feature factory object from theSelection on ActiveDocument.Dim Plate As StrPlateSet Plate = strPlates.Item(“Plate_007”)Dim Sel As SelectionSet Sel = CATIA.ActiveDocument.Selection‘ Use the Add method to add Plate to selectionSel.Add PlateDim Factory As StrFeatureFactorySet Factory = Sel.FindObject(“CATIAStrFeatureFactory”)Method IndexAddCutoutWithAfterFormingModeAdds a Cutout Feature on Plate/Member using AfterForming Mode.AddCutoutWithBeforeFormingModeAdds a Cutout Feature on Plate/Member using BeforeForming Mode.AddNibblingAdds a Coping on Plate or Member.Methodso Func AddCutoutWithAfterFormingMode( Reference iContour,Reference iDirection) As StrCutoutFeatureAdds a Cutout Feature on Plate/Member using AfterFormingMode.Parameters:iContour[in] The Sketch used to create the cutout. This must exist in thedocument.iDirection[in] The direction in which the cutout should be created. Validinputs are line created in sketch,3D Line.oCutout[out]The CutOut Feature@returnS_OK if everything ran ok.Example:This example creates Cutout on Plate.‘ Define the Plate on which cutout is to becreatedDim strPlates As strPlatesSet strPlates = rootProduct.GetTechnologicalObject(“StructurePlates”)Dim PlateToCut As StrPlateSet PlateToCut = strPlates.Item(“Plate_012”)‘ Add the Plate to SelectionDim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add PlateToCut‘Get The factory from selectionDim Factory As StrFeatureFactorySet Factory = Sel.FindObject(“CATIAStrFeatureFactory”)‘ Select the Sketch profile exisitng in thedocumentDim sketch As ReferenceSet sketch = rootProduct.CreateReferenceFromName(“Product1/Grid/!Sketch.1”)‘ Select the direction in which the cutout should becreatedDim dir1 As ReferenceSet dir1 = rootProduct.CreateReferenceFromName(“Product1/Grid/!Sketch.2”)‘ Create cutoutDim Cutout1 As StrCutoutFeatureSet Cutout1 = Factory.AddCutoutWithAfterFormingMode(sketch, dir1)o Func AddCutoutWithBeforeFormingMode( Reference iContour,Reference iSurface) As StrCutoutFeatureAdds a Cutout Feature on Plate/Member using BeforeFormingMode.Parameters:iContour[in] The Sketch used to create the cutout. This must exist in thedocumentiSurface[in] A Surface on which Plate/Member is created.oCutout[out]The CutOut Feature@returnS_OK if everything ran ok.Example:This example creates Cutout on Member.‘Define the Plate on which cutout is to becreatedDim strPlates As strPlatesSet strPlates = rootProduct.GetTechnologicalObject(“StructurePlates”)Dim PlateToCut As StrPlateSet PlateToCut = strPlates.Item(“Plate_012”)‘ Add the Plate to SelectionDim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add PlateToCut‘ Get The factory from selectionDim Factory As StrFeatureFactorySet Factory = Sel.FindObject(“CATIAStrFeatureFactory”)‘ Select the Sketch profile exisitng in thedocumentDim sketch As ReferenceSet sketch = rootProduct.CreateReferenceFromName(“Product1/Grid/!Sketch.1”)‘ Select the surfaceDim Surface1 As ReferenceSet Surface1 = rootProduct.CreateReferenceFromName(“Product1/Grid/!Extrude.1”)‘ Create cutoutDim Cutout1 As StrCutoutFeatureSet Cutout1 = Factory.AddCutoutWithBeforeFormingMode(sketch, Surface1)o Func AddNibbling( CATSafeArrayVariantiListOfLimitingElements,CATBSTR iNibblingType) As StrNibblingFeatureAdds a Coping on Plate or Member.Parameters:iListOfLimitingElements[in] List of Limiting elements used for limiting the Plate/Member.Pass only one limit at a time.iNibblingType[in] Possible Values for Plate:”Remove”. Possible Values forMember:”Remove”,”ShortPoint”,”LongPoint”,”WeldCut”. For Defining furtherattributes refer CATIAStrNibblingFeature.oNibblingFeature[out]The Nibbled Plate/Member.@returnS_OK if everything ran ok.Example:This example creates Coping on Plate.Dim Limitplate1 As StrPlateSet Limitplate1 = strPlates.Item(“Plate_008”)Dim Listoflimits As VariantSet Listoflimits(0) =Limitplate1Dim NibblingFeature As StrNibblingFeatureSet NibblingFeature = Factory.AddNibbling(Listoflimits, “Remove”)Copyright © 1999-2011, Dassault Systèmes. All rightsreserved.- add_cutout_with_after_forming_mode(i_contour: Reference, i_direction: Reference) StrCutoutFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddCutoutWithAfterFormingMode(Reference iContour,Reference iDirection) As StrCutoutFeatureAdds a Cutout Feature on Plate/Member using AfterFormingMode.Parameters:iContour[in] The Sketch used to create the cutout. This must exist in thedocument.iDirection[in] The direction in which the cutout should be created. Validinputs are line created in sketch,3D Line.oCutout[out]The CutOut Feature@returnS_OK if everything ran ok.Example:This example creates Cutout on Plate.‘ Define the Plate on which cutout is to becreatedDim strPlates As strPlatesSet strPlates = rootProduct.GetTechnologicalObject(“StructurePlates”)Dim PlateToCut As StrPlateSet PlateToCut = strPlates.Item(“Plate_012”)‘ Add the Plate to SelectionDim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add PlateToCut‘Get The factory from selectionDim Factory As StrFeatureFactorySet Factory = Sel.FindObject(“CATIAStrFeatureFactory”)‘ Select the Sketch profile exisitng in thedocumentDim sketch As ReferenceSet sketch = rootProduct.CreateReferenceFromName(“Product1/Grid/!Sketch.1”)‘ Select the direction in which the cutout should becreatedDim dir1 As ReferenceSet dir1 = rootProduct.CreateReferenceFromName(“Product1/Grid/!Sketch.2”)‘ Create cutoutDim Cutout1 As StrCutoutFeatureSet Cutout1 = Factory.AddCutoutWithAfterFormingMode(sketch, dir1)
- Parameters:
- Return type:
- add_cutout_with_before_forming_mode(i_contour: Reference, i_surface: Reference) StrCutoutFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddCutoutWithBeforeFormingMode(Reference iContour,Reference iSurface) As StrCutoutFeatureAdds a Cutout Feature on Plate/Member using BeforeFormingMode.Parameters:iContour[in] The Sketch used to create the cutout. This must exist in thedocumentiSurface[in] A Surface on which Plate/Member is created.oCutout[out]The CutOut Feature@returnS_OK if everything ran ok.Example:This example creates Cutout on Member.‘Define the Plate on which cutout is to becreatedDim strPlates As strPlatesSet strPlates = rootProduct.GetTechnologicalObject(“StructurePlates”)Dim PlateToCut As StrPlateSet PlateToCut = strPlates.Item(“Plate_012”)‘ Add the Plate to SelectionDim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add PlateToCut‘ Get The factory from selectionDim Factory As StrFeatureFactorySet Factory = Sel.FindObject(“CATIAStrFeatureFactory”)‘ Select the Sketch profile exisitng in thedocumentDim sketch As ReferenceSet sketch = rootProduct.CreateReferenceFromName(“Product1/Grid/!Sketch.1”)‘ Select the surfaceDim Surface1 As ReferenceSet Surface1 = rootProduct.CreateReferenceFromName(“Product1/Grid/!Extrude.1”)‘ Create cutoutDim Cutout1 As StrCutoutFeatureSet Cutout1 = Factory.AddCutoutWithBeforeFormingMode(sketch, Surface1)
- Parameters:
- Return type:
- add_nibbling(i_list_of_limiting_elements: tuple, i_nibbling_type: str) StrNibblingFeature ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AddNibbling(CATSafeArrayVariantiListOfLimitingElements,CATBSTR iNibblingType) As StrNibblingFeatureAdds a Coping on Plate or Member.Parameters:iListOfLimitingElements[in] List of Limiting elements used for limiting the Plate/Member.Pass only one limit at a time.iNibblingType[in] Possible Values for Plate:”Remove”. Possible Values forMember:”Remove”,”ShortPoint”,”LongPoint”,”WeldCut”. For Defining furtherattributes refer CATIAStrNibblingFeature.oNibblingFeature[out]The Nibbled Plate/Member.@returnS_OK if everything ran ok.Example:This example creates Coping on Plate.Dim Limitplate1 As StrPlateSet Limitplate1 = strPlates.Item(“Plate_008”)Dim Listoflimits As VariantSet Listoflimits(0) =Limitplate1Dim NibblingFeature As StrNibblingFeatureSet NibblingFeature = Factory.AddNibbling(Listoflimits, “Remove”)Copyright © 1999-2011, Dassault Systèmes. All rightsreserved.
- Parameters:
i_list_of_limiting_elements (tuple) –
i_nibbling_type (str) –
- Return type: