pycatia.assembly_interfaces.assembly_hole¶
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.assembly_interfaces.assembly_hole.AssemblyHole(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCATAssemblyInterfaces.AssemblyFeatureAssemblyHoleRepresents the AssemblyHole object.- property anchor_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AnchorMode() As CatHoleAnchorModeReturns or sets the hole anchor mode.This property is valid when the hole type is Counterbored orCounterdrilled.Example:The following example saves in holeAnchorMode the anchor mode of thehole assemblyHole and sets it so that the anchor mode will now be set to themiddle of its head.Dim holeAnchorModeSet holeAnchorMode = assemblyHole.AnchorModeassemblyHole.AnchorMode = catMiddlePointHoleAnchor
- Returns:
enum cat_hole_anchor_mode
- Return type:
int
- property bottom_angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property BottomAngle() As Angle (Read Only)Returns the hole bottom angle.This property is valid when the hole bottom type is VBottom. The holebottom angle is returned as a Angle object.Example:The following example retrieves in holeBottomAngle the bottom angle ofthe hole assemblyHole.Dim holeBottomAngle As AngleSet holeBottomAngle = assemblyHole.BottomAngle
- Return type:
- property bottom_limit: Limit¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property BottomLimit() As Limit (Read Only)Returns the hole bottom limit.This limit manages the way the hole is ended. It is returned as a Limitobject.Example:The following example retrieves in limit the bottom limit of the holeassemblyHole.Dim limit As LimitSet limit = assemblyHole.BottomLimit
- Return type:
- property bottom_type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property BottomType() As CatHoleBottomTypeReturns or sets the hole bottom type.Example:The following example saves in holeBottomType the bottom type of thehole assemblyHole and sets it so that the bottom will now be a V-likeone.Dim holeBottomTypeSet holeBottomType = assemblyHole.BottomTypeassemblyHole.BottomType = catVHoleBottom
- Returns:
enum cat_hole_bottom_type
- Return type:
int
- property diameter: Length¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Diameter() As Length (Read Only)Returns the hole diameter.It is returned as a Length object.Example:The following example retrieves in holeDiam the diameter of the holeassemblyHole.Dim holeDiam As LengthSet holeDiam = assemblyHole.Diameter
- Return type:
- get_direction() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetDirection(CATSafeArrayVariant ioDirection)Retrieves the hole direction vector components.These components are expressed in millimeter according to the absolutecoordinate system.Parameters:ioDirectionThe direction vector components, as a safe array made up of threedoubles: X, Y, ZThe array must be previously initialized.Example:The following example returns in dirArray the direction vectorcomponents of the hole assemblyHole.Dim dirArray(2)Call assemblyHole.GetDirection(dirArray)Set x = dirArray[0]Set y = dirArray[1]Set z = dirArray[2]
- Parameters:
io_direction (tuple) –
- Return type:
None
- get_origin() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetOrigin(CATSafeArrayVariant ioOrigin)Retrieves the origin point to which the hole is anchored.This point belongs to a plane tangent to the hole. The coordinates areexpressed in millimeter according to the absolute coordinatesystem.Parameters:ioOriginThe hole origin point coordinates, as a safe array made up of threedoubles: X, Y, ZThe array must be previously initialized.Example:The following example returns in coordArray the coordinates of the holeassemblyHole.Dim coordArray(2)Call assemblyHole.GetOrigin coordArraySet x = coordArray[0]Set y = coordArray[1]Set z = coordArray[2]
- Parameters:
io_origin (tuple) –
- Return type:
None
- property head_angle: Angle¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property HeadAngle() As Angle (Read Only)Returns the hole head angle.This property is valid when the hole type is Tapered, Counterdrilled orCountersunk. The hole head angle is returned as a Angleobject.Example:The following example retrieves in holeHeadAngle the head angle of thehole assemblyHole.Dim holeHeadAngle As AngleSet holeHeadAngle = assemblyHole.HeadAngle
- Return type:
- property head_depth: Length¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property HeadDepth() As Length (Read Only)Returns the hole head depth.This property is valid when the hole type is Counterbored, Counterdrilledor Countersunk. The hole head depth is returned as a Lengthobject.Example:The following example retrieves in holeHeadDepth the head depth of thehole assemblyHole.Dim holeHeadDepth As LengthSet holeHeadDepth = assemblyHole.HeadDepth
- Return type:
- property head_diameter: Length¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property HeadDiameter() As Length (Read Only)Returns the hole head diameter.This property is valid when the hole type is Counterbored orCounterdrilled. The hole head diameter is returned as a Lengthobject.Example:The following example retrieves in holeHeadDiam the head diameter ofthe hole assemblyHole.Dim holeHeadDiam As LengthSet holeHeadDiam = assemblyHole.HeadDiameter
- Return type:
- set_direction(i_line: Reference, i_line_comp: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDirection(Reference iLine,Product iLineComp)Sets the hole axis direction.Parameters:iLineThe hole axis direction, as a reference to a line or an edge.iLineCompThe component containing the axis directionExample:The following example sets the axis direction of the hole assemblyHolewith the dirRef line of the component dirComp.assemblyHole.SetDirection dirRef, dirComp
- property sketch: Sketch¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Sketch() As Sketch (Read Only)Returns the hole positioning sketch.Example:The following example retrieves in sketch the positioning sketch of thehole assemblyHole.Dim sketch As SketchSet sketch = assemblyHole.Sketch
- Return type:
- property sketch_component: Product¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property SketchComponent() As Product (Read Only)Returns the component containing the hole positioningsketch.Example:The following example retrieves in skComp the component that containsthe positioning sketch of the hole assemblyHole.Dim skComp As ProductSet skComp = assemblyHole.SketchComponent
- Return type:
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Type() As CatHoleTypeReturns or sets the hole type.Example:The following example saves in holeType the type of the holeassemblyHole, and then sets it so that it will now be a taperedhole.Set holeType = assemblyHole.TypeassemblyHole.Type = catTaperedHole
- Returns:
enum cat_hole_type
- Return type:
int