pycatia.space_analyses_interfaces.section¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
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.space_analyses_interfaces.section.Section(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSectionRepresents the Section object.The Section object is a specification of a sectioning display andcomputationwith a section plane, section slice or section box.- property annotated_views: AnnotatedViews¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property AnnotatedViews() As AnnotatedViews (Read Only)Returns the AnnotatedViews collection of the section.Example:This example retrieves the AnnotatedViews collection of NewSectionSection.Dim TheAnnotatedViewsList As AnnotatedViewsSet TheAnnotatedViewsList = NewSection.AnnotatedViews
- Return type:
- property behavior: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Behavior() As CatSectionBehaviorReturns or sets the general behavior of the section: Freeze, Automaticupdate, manual updateThe behavior value are defined in CatSectionBehavior.Example:The first example retrieves the behavior of NewSectionSection.Dim SectionBehavior As CatSectionBehaviorBehavior = NewSection.BehaviorThe second example sets the behavior of NewSectionSection.NewSection.Behavior = catSectionBehaviorAutomatic
- Returns:
enum cat_section_behavior
- Return type:
int
- property cut_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CutMode() As longReturns or sets the cutting mode of the section.The cutting mode value is 1 for clipping or 0 withoutclipping.Example:The first example retrieves the cutting mode of NewSectionSection.Dim SectionMode As IntegerSectionMode = NewSection.CutModeThe second example sets the cutting mode of NewSectionSection.NewSection.CutMode = 1
- Return type:
int
- export() Document ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Export() As DocumentExports the sections curves of the section in a document.Returns:The documentExample:This example exports the section curves of NewSection Section inPartDoc document.Dim PartDoc As DocumentPartDoc = NewSection.Export
- Return type:
- get_position() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetPosition(CATSafeArrayVariant oComponents)Retrieves the position of the section.The position of the section is made of a coordinate system whose origin isthe center of the section, and X and Y axes lie on the section. It is retrievedin an array of the X, Y, Z axes components and the origin components withrespect to the absolute coordinate system.Parameters:oComponentsThe position of the sectionoComponents( 0) is the X component of theX-axisoComponents( 1) is the Y component of theX-axisoComponents( 2) is the Z component of theX-axisoComponents( 3) is the X component of theY-axisoComponents( 4) is the Y component of theY-axisoComponents( 5) is the Z component of theY-axisoComponents( 6) is the X component of theZ-axisoComponents( 7) is the Y component of theZ-axisoComponents( 8) is the Z component of theZ-axisoComponents( 9) is the X component of theoriginoComponents(10) is the Y component of theoriginoComponents(11) is the Z component of the originExample:This example retrieves the position of NewSectionSection.Dim Components (11)NewSection.GetPosition Components
- Return type:
tuple
- property group: Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Group() As GroupReturns or sets the sectioned group.By default, it is the all leaves group.Example:The first example retrieves the group of NewSectionSection.Dim AGroup As GroupAGroup = NewSection.GroupThe second example sets the group of NewSectionSection.Dim AGroup As GroupNewSection.Group = AGroup
- Return type:
- property height: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Height() As doubleReturns or sets the height of the section.The height value must be greater than 0.Example:The first example retrieves the height of NewSectionSection.Dim SectionHeight As doubleSectionHeight = NewSection.HeightThe second example sets the height value of NewSectionSection.NewSection.Height = 100.
- Return type:
float
- is_empty() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func IsEmpty() As longIndicates whether the section is empty.The indicator value is 0 if the section is empty or 1 if the sectioncomprise at least one segment.Example:This example retrieves the information on NewSectionSection.Dim IndicatorIndicator = NewSection.IsEmpty
- Return type:
int
- property marker_3ds: Marker3Ds¶
Note
- CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
- o Property Marker3Ds() As Marker3Ds (Read Only)Returns the Marker3Ds collection of the section.Example:This example retrieves the Marker3Ds collection of NewSectionSection.Dim TheMarker3DsList As Marker3DsSet TheMarker3DsList = NewSection.Marker3Ds
- Return type:
- set_position(i_components: tuple)¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPosition(CATSafeArrayVariant iComponents)Sets the position of the section.Parameters:oComponentsThe position of the section with respect to the absolute coordinatesystemiComponents( 0) is the X component of theX-axisiComponents( 1) is the Y component of theX-axisiComponents( 2) is the Z component of theX-axisiComponents( 3) is the X component of theY-axisiComponents( 4) is the Y component of theY-axisiComponents( 5) is the Z component of theY-axisiComponents( 6) is the X component of theZ-axisiComponents( 7) is the Y component of theZ-axisiComponents( 8) is the Z component of theZ-axisiComponents( 9) is the X component of theoriginiComponents(10) is the Y component of theoriginiComponents(11) is the Z component of the originExample:This example sets the position of NewSectionSection.Dim MatrixPos (11) As DoubleMatrixPos( 0) = 1.0MatrixPos( 1) = 0.0MatrixPos( 2) = 0.0MatrixPos( 3) = 0.0MatrixPos( 4) = 1.0MatrixPos( 5) = 0.0MatrixPos( 6) = 0.0MatrixPos( 7) = 0.0MatrixPos( 8) = 1.0MatrixPos( 9) = 1000.0MatrixPos(10) = 0.0MatrixPos(11) = 0.0NewSection.SetPosition MatrixPos
- Parameters:
i_components (tuple) –
- property thickness: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Thickness() As doubleReturns or sets the thickness of the section.The thickness value must be greater than 0.Example:The first example retrieves the thickness of NewSectionSection.Dim SectionThickness As doubleSectionThickness = NewSection.ThicknessThe second example sets the thickness value of NewSectionSection.NewSection.Thickness = 100.
- Return type:
float
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Type() As CatSectionTypeReturns or sets the type of the section.The type value are defined in CatSectionType.Example:The first example retrieves the type of NewSectionSection.Dim SectionType As CatSectionTypeSectionType = NewSection.TypeThe second example sets the type of NewSectionSection.NewSection.Type = catSectionTypeSlice
- Returns:
enum cat_section_type
- Return type:
int
- property width: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Width() As doubleReturns or sets the width of the section.The width value must be greater than 0.Example:The first example retrieves the width of NewSectionSection.Dim SectionWidth As doubleSectionWidth = NewSection.WidthThe second example sets the width value of NewSectionSection.NewSection.Width = 100.
- Return type:
float