pycatia.space_analyses_interfaces.sections

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.sections.Sections(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Sections

A collection of all Section objects currently managed by the
application.

The method GetTechnologicalObject(“Sections”) on the root product, allows you
to retrieve this collection.
add() Section

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add() As Section

Creates a Section object which takes all products of the documents into
account and adds it to the Sections collection.

Returns:
The created Section
Example:

This example creates a new Section in the TheSections
collection.

Dim NewSection As Section
Set NewSection = TheSections.Add
Return type:

Section

add_from_sel() Section

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Func AddFromSel() As Section

Creates a Section object which takes all products in the selection into
account and adds it to the Sections collection.

Returns:
The created Section
Example:

This example creates a new Section in the TheSections
collection.

Dim NewSection As Section
Set NewSection = TheSections.AddFromSel
Return type:

Section

item(i_index: cat_variant) Section

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Func Item(CATVariant iIndex) As Section

Returns a Section object using its index or its name from the Sections
collection.

Parameters:

iIndex
The index or the name of the Section to retrieve from the
collection of Sections. As a numerics, this index is the rank of the Section in
the collection. The index of the first Section in the collection is 1, and the
index of the last Section is Count. As a string, it is the name you assigned to
the Section.

Example:

This example retrieves in ThisSection the ninth
Section,
and in ThatSection the Section named
Section Of MyProduct from the TheSections collection.

Dim ThisSection As Section
Set ThisSection = TheSections.Item(9)
Dim ThatSection As Section
Set ThatSection = TheSections.Item(“Section Of MyProduct”)
Parameters:

i_index (cat_variant) –

Return type:

Section

remove(i_index: cat_variant) None

Note

CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
o Sub Remove(CATVariant iIndex)

Removes a Section object from the Sections collection.

Parameters:

iIndex
The index or the name of the Section to remove from the collection
of Sections. As a numerics, this index is the rank of the Section in the
collection. The index of the first Section in the collection is 1, and the
index of the last Section is Count. As a string, it is the name you assigned to
the Section.

Example:

The following example removes the tenth Section and the Section
named
Section Of MyProduct from the TheSections
collection.

TheSections.Remove(10)
TheSections.Remove(“Section Of MyProduct”)
Parameters:

i_index (cat_variant) –

Return type:

None