pycatia.cat_str_functional_interfaces.sfm_opening¶
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_str_functional_interfaces.sfm_opening.SFMOpening(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSfmOpeningDefines Edition Techniques for Openings created using sketch and 3DObject.- property creation_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CreationMode(long iMode)Returns or Sets the Opening Creation Mode. 0 for 3D Mode. 1 for SketchMode. 2 for StandardOpening Mode.Example:This example gets the Creation Mode for existingOpening.‘Get the Existing OpeningDim OpeningPlate As SfmOpeningSet OpeningPlate = part1.FindObjectByName(“Opening_028”)Dim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add OpeningPlateDim OpenFact As SfmOpeningSet OpenFact = Sel.FindObject(“CATIASfmOpening”)Dim CreationMode As LongCreationMode = OpenFact.CreationMode
- Return type:
int
- property direction: Reference¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Direction(Reference iDirection)Returns or Sets the Direction for a Wire Element Case.Example:This example modifies the direction of existingopening.‘Get the element to be used as direction element.Set Dir = part1.FindObjectByName(“Line.4”)Set DirRef = part1.CreateReferenceFromObject(Dir)Opening1.Direction = DirRef
- Return type:
- get_direction() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDirection() As CATSafeArrayVariantGets the Direction for Opening in the form of Vector.Parameters:oDirection[out] Direction vectorReturns:S_OK if everything ran okExample:This Example Gets the Direction for the Opening.Dim Dir() As VariantDir = OpeningPlate.GetDirectionDim x, y, z As Doublex = Dir(0)y = Dir(1)z = Dir(2)
- Return type:
tuple
- property intersecting_element: Reference¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property IntersectingElement(ReferenceiIntersectingElement)Returns or Sets the Intersecting Element to Create aOpening.Example:This example sets the intersecting element for the existing opening,after changing it’s mode to sketch mode.‘Get the Creation Mode for Existing Opening. The Existing Opening iscreated using 3D Mode.CreationMode = Opening1.CreationMode‘Set the Creation Mode for Existing Opening to sketchmodeOpening1.CreationMode = 1‘Assign a new sketch to the existing openingSet Sketch = part1.FindObjectByName(“Sketch.4”)Set sketchref = part1.CreateReferenceFromObject(Sketch)Opening1.IntersectingElement = sketchref
- Return type:
- is_a_plate_opening() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsAPlateOpening() As longDetermines if it is a Plate Opening or a Profile one.Parameters:oStatus[out] oStatus=0, if the Opening is on Plate oStatus=1, if theOpening is Not on PlateReturns:S_OK if everything ran okExample:This Example Checks weather the opening is a PlateOpening.‘Get the Existing Opening in the Part DocumentDim OpeningPlate As SfmOpeningSet OpeningPlate = part1.FindObjectByName(“Opening_028”)Dim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add OpeningPlateDim OpenFact As SfmOpeningSet OpenFact = Sel.FindObject(“CATIASfmOpening”)‘Get the Status of OpeningDim status As Longstatus = OpenFact.IsAPlateOpening
- Return type:
int
- property molded_surface: Reference¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property MoldedSurface(Reference iMoldedSurface)Returns or Sets the Molded Surface for the Opening.Example:This example modifies the molded surface for the existingopening.‘Get the Surface to be used as molded surface for theopeningDim GSDSurf As ReferenceSet GSDSurf = part1.FindObjectByName(“Fill.1”)Set GSDSurfref = part1.CreateReferenceFromObject(GSDSurf)Opening1.MoldedSurface = GSDSurfref
- Return type:
- set_master_mode() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetMasterMode()Sets Master mode on Copy Pasted Opening. It breaks the dependency byduplicating the sketch.Returns:S_OK if everything ran okExample:This Example Sets Master Mdoe on a Copy PastedOpening.Dim OpeningMaster As SfmOpeningSet OpeningMaster = part1.FindObjectByName(“Opening_035”)Dim Sel As SelectionSet Sel = CATIA.ActiveDocument.SelectionSel.Add OpeningMasterDim OpenFact As SfmOpeningSet OpenFact = Sel.FindObject(“CATIASfmOpening”)OpenFact.SetMasterMode
- Return type:
None