in_interfaces

application

class pycatia.in_interfaces.application.Application(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Application

Represents the current CNext application and its frame window.
The application is the root object for all the other objects you can use and
access from scripts. It directly aggregates:

The document collection represented by the Documents object. This
collection contains all the documents currently opened by the
application
The window collection represented by the Windows object. This collection
contains all the windows currently opened by the application, each window
displaying one of the documents contained in the document
collection
The SystemService object, providing information about the system
environment.

The active document and the active window are two key objects for the
application you can access using the ActiveDocument and ActiveWindow properties
respectively. The active window is the window the end user is currently working
in, and the active document is the document displayed in this active window and
that the end user is being editing. This document sets its workshop, that is
the available menus and toolbars that make it possible to edit it, according to
its type.

When you create or use macros for in-process access, the application is always
referred to as CATIA.
property active_document

Note

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

o Property ActiveDocument() As Document (Read Only)

Returns the active document. The active document is the document the end
user is being editing.

Example:
This example retrieves in ActiveDoc the active document of the CATIA
application.

Dim ActiveDoc As Document
Set ActiveDoc = CATIA.ActiveDocument
Returns

Document()

property active_printer

Note

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

o Property ActivePrinter() As Printer

Returns or sets the active printer. The active printer is the printer on
which documents are printed

Example:
This example retrieves in ActivePrinter the active printer of the CATIA
application.

Dim ActivePrinter As Printer
Set ActivePrinter = CATIA.ActivePrinter
Returns

Printer

property active_window

Note

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

o Property ActiveWindow() As Window (Read Only)

Returns the active window. The active window is the window in which the end
user is currently editing the active document.

Example:
This example retrieves in ActiveWin the active window of the CATIA
application.

Dim ActiveWin As Window
Set ActiveWin = CATIA.ActiveWindow
Returns

Window

property cache_size

Note

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

o Property CacheSize() As long

Returns or sets the default local cache size used by the
application.

Example:
This example sets the cache size for by the CATIA application to those
defined in LocalCacheSize.

LocalCacheSize= 10
CATIA.CacheSize = LocalCacheSize
Returns

int

property caption

Note

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

o Property Caption() As CATBSTR

Returns or sets the application’s window title. This title is displayed in
the application’s window title bar.

Example:
This example retrieves in Title the CATIA application’s window
title.

Title = CATIA.Caption


The returned value is like this:

CNext
Returns

str

create_send_to()

Note

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

o Func CreateSendTo() As SendToService

Creates a Send TO.
Role:This method creates a SendToService instance.
Warning : CATIASendToService interface requires the
installation of CATIA - PPR xPDM Gateway 1 Product (PX1)
In case this product is not granted, the first invocation
to one of CATIASendToService methods will fail.
Returns

SendToService

disable_new_undo_redo_transaction()

Note

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

o Sub DisableNewUndoRedoTransaction()

Prevents new Undo/Redo transaction creation.
If too many Undo/Redo transactions are created during macro execution, it
may affect performance. So it is valuable to prevent Undo/Redo transaction
creation during macro execution when lots of data are created, deleted or
modified.
Note: preventing Undo/Redo transaction creation must not be done when a
selection is required in the macro
Do not forget to call EnableNewUndoRedoTransaction at the end of the macro
or before selection to restore the common behavior.

Example:
This example prevents new transactions to be created, which may
increase performance.

CATIA.DisableNewUndoRedoTransaction()
Returns

None

property display_file_alerts

Note

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

o Property DisplayFileAlerts() As boolean

Returns or sets the application ability to display file
alerts.
True if the application enables file alert display.
True is the default. A file alert is, for example, the dialog box that
prompts you that the file you want to save is in read only mode, or that the
file you want to close needs to be saved. It could be handy to disable these
file alerts for automation since they may freeze your macro execution, waiting
for an end user input in the displayed dialog box.

Example:
This example disables file alerts for the CATIA
application.

CATIA.DisplayFileAlerts = False
Returns

bool

property documents

Note

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

o Property Documents() As Documents (Read Only)

Returns the collection of documents currently managed by the
application.

Example:
This example retrieves in DocCollection the collection of documents
currently managed by the CATIA application.

Dim DocCollection As Documents
Set DocCollection = CATIA.Documents
Returns

Documents

enable_new_undo_redo_transaction()

Note

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

o Sub EnableNewUndoRedoTransaction()

Allows new Undo/Redo transaction creation.

Example:
This example restores the common behavior after
DisableNewUndoRedoTransaction has been called.

CATIA.EnableNewUndoRedoTransaction()
Returns

None

evaluate(vba_code, function_name, measurable_items, cat_script_language=0)

Note

CATIA V5 Visual Basic help

Func Evaluate( CATBSTR iScriptText,
CATScriptLanguage iLanguage,
CATBSTR iFunctionName,
CATSafeArrayVariant iParameters) As CATVariant

Evaluates a scripted function.
Parameters:
iScriptText
The program text
iLanguage
The language the program is written in
iFunctionName
The name of the function to invoke
iParameters
An array of parameters for the function
Result
The value returned by the function (if any)
Example:
This example executes the function CATMain from the CodeToEvaluate string
Dim params()
Dim codeToEvaluate
CodeToEvaluate = “Sub CATMain()” & vbNewLine & _
“MsgBox ” & chr(34) & “Hello World” & chr(34) & vbNewLine & _
“End Sub”
CATIA.SystemService.Evaluate CodeToEvaluate, CATVBScriptLanguage, “CATMain”, params
Parameters
  • vba_code (str) – String containing script to run.

  • function_name (str) – Name of function within vba script.

  • measurable_items (list) – list of items to pass to script.

  • cat_script_language (int) – An integer representing the language selection from list() [CATVBScriptLanguage, CATVBALanguage, CATBasicScriptLanguage, CATJavaLanguage, CATJScriptLanguage]

Returns

execute_script(library_name, library_type, program_name, function_name, items)

Note

CAA V5 Visual Basic help

Func ExecuteScript( CATBSTR iLibraryName,
CatScriptLibraryType iType,
CATBSTR iProgramName,
CATBSTR iFunctionName,
CATSafeArrayVariant iParameters) As CATVariant

Executes a scripted function.
Parameters:
iLibraryName
The library in which the script is contained
iLibraryType
The type of the library
iProgramName
The name of the program in the library
iFunctionName
The name of the function to invoke
iParameters
An array of parameters for the function
Result
The value returned by the function (if any)

Example:
This example executes the function CATMain in the program Macro1.catvbs contained by Part1.CATPart
Dim params()
CATIA.SystemService.ExecuteScript”Part1.CATPart”,
catScriptLibraryTypeDocument,
“Macro1.catvbs”,
“CATMain”,
params
Parameters
  • library_name (str) – Full path to location of catia script.

  • library_type (int) – An integer representing the library type selection from list() CatScriptLibraryType[catScriptLibraryTypeDocument, catScriptLibraryTypeDirectory, catScriptLibraryTypeVBAProject]

  • program_name (str) – file name of script.

  • function_name (str) – Name of function to call within script.

  • items (list) – List of items to pass to script.

Returns

property file_search_order

Note

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

o Property FileSearchOrder() As CATBSTR

Returns or sets the default path concatenation.
Role: This property returns or sets the default path concatenation used by
Other folders setting of the Linked Documents Localization function. The
primary aim of the Linked Documents Localization function is to resolve
document links and to manage the strategy that will be used to locate your
linked documents.

Example:
This example sets the paths to search for by the CATIA application to
those defined in PathConcatenation.

PathConcatenation = “/u/users/fbq/db/model:/u/users/psr/db/model”
CATIA.FileSearchOrder = PathConcatenation



Theese methods require the installation of CATIA - PPR xPDM Gateway 1
Product (PX1) In case this product is not granted, the first invocation to one
of the methods will fail.
Returns

str

file_selection_box(i_title, i_extension, i_mode)

Note

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

o Func FileSelectionBox(CATBSTR iTitle,
CATBSTR iExtension,
CatFileSelectionMode iMode) As CATBSTR

Displays a modal dialog box which can be used to select / enter the name of
a file to open / save.

Parameters:

iTitle
The title of the dialog box.
iExtension
A file extension filter.
iMode
The mode in which to run the dialog box (either
CatFileSelectionModeOpen or CatFileSelectionModeSave.

oFilePath
The return string containing the full path of the selected file, or
a zero-length string if the user selects Cancel.

Example:
This example asks the user to select a text file and prints the
path of the selected file.

filepath = CATIA.FileSelectionBox(“Select a text file”,
“*.txt”, CatFileSelectionModeOpen)
CATIA.SystemServices.Print “The selected file is ” &
filepath
Parameters
  • i_title (str) –

  • i_extension (str) –

  • i_mode (CatFileSelectionMode) –

Returns

str

property file_system

Note

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

o Property FileSystem() As FileSystem (Read Only)

Returns the file system. The file system provides access to a computer’s
file system.

Example:
This example retrieves in AppliFileSys the file sytem of the CATIA
application.

Dim AppliFileSys As FileSystem
Set AppliFileSys = CATIA.FileSystem
Returns

FileSystem

property full_name

Note

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

o Property FullName() As CATBSTR (Read Only)

Returns the application’s executable file full name, including its path.
This name is the name of the executable file used to start the
application.

Example:
This example retrieves in ApplicationFullName the CATIA application’s
executable file full name.

ApplicationFullName = CATIA.FullName


The returned value is like this:

\lisacxr1arelbsfalpha_acodebinCNEXT.exe
Returns

str

get_workbench_id()

Note

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

o Func GetWorkbenchId() As CATBSTR

Returns the identifier of the CATIA current workbench.

Parameters:

oworkbenchId
The id of the current workbench.
Returns

str

property height

Note

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

o Property Height() As float

Returns or sets the height of the application’s frame window. The height is
expressed in pixels.

Example:
This example sets the height of the CATIA application’s frame window to
300 pixels.

CATIA.Height = 300
Returns

float

help(i_help_id)

Note

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

o Sub Help(CATBSTR iHelpID)

Displays application’s online help.

Parameters:

iHelpID
Identifier of the help message to display

Example:
This example displays the string referred to by the HelpKey message key
in the message catalog concatenation.

CATIA.Help(“HelpKey”)
Parameters

i_help_id (str) –

Returns

None

property hso_synchronized

Note

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

o Property HSOSynchronized() As boolean

For selection performance purposes, returns or sets the HSO synchronization
in comparison with the CSO.
Role: Precises if, for all Selection object instances, the HSO (Highlighted
Set of Objects) is synchronized in comparison with the CSO (Current Set of
Objects).

Valid values are:

True: In this case, Selection methods work directly with CATIA’s CSO,
to reflect instantly the changes made in Automation Selection. This ensures
correct selection results, but may impact performance in certain
cases.
This is the default value at the beginning of a CATIA
session.
False: In this case, Selection methods work with an internal SO buffer,
which allows faster execution when performing a large number of CSO-independent
Selection calls, or when performing a single Selection call working on a large
number of objects (usually the Search method). This may also prevent the
features from blinking between two user interactions.

Note: even if this property is set to False, the HSO is synchronized in
comparison with the CSO at the begining of the following
methods:

Selection.SelectElement2
Selection.SelectElement3
Selection.SelectElement4
Selection.IndicateOrSelectElement2D
Selection.IndicateOrSelectElement3D
Application.StartCommand

CAUTION: If you use the False value of this property, you must make sure to
reset it to True for CATIA’s CSO to reflect properly the changes made in
Automation Selection. For example, it should be reset to True before
interactive parts of your script: MsgBox, InputBox calls, VBA forms updates and
so on.
Returns

bool

property interactive

Note

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

o Property Interactive() As boolean

Returns or sets the application sensitivity to end user
interactions.
True if the application is end user interaction sensitive.

Example:
This example makes the CATIA application sensitive to end user
interactions.

CATIA.Interactive = True
Returns

bool

property left

Note

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

o Property Left() As float

Returns or sets the distance from the application’s frame window left side
to the left side of the screen. This distance is expressed in
pixels.

Example:
This example sets the distance from the CATIA application’s frame
window left side to the left side of the screen to 150
pixels.

CATIA.Left = 150
Returns

float

property local_cache

Note

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

o Property LocalCache() As CATBSTR

Returns or sets the default local cache path used by the
application.

Example:
This example sets the cache path for by the CATIA application to those
defined in LocalCachePath.

LocalCachePath= “/tmp/cache”
CATIA.LocalCache = LocalCachePath
Returns

str

property path

Note

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

o Property Path() As CATBSTR (Read Only)

Returns the path of the application’s executable files.

Example:
This example retrieves in ApplicationPath the path where the CATIA
application executable files are located.

ApplicationPath = CATIA.Path


The returned value is like this:

\lisacxr1arelbsfalpha_acodebin
Returns

Path()

property printers

Note

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

o Property Printers() As Printers (Read Only)

Returns the collection of the printers currently managed by the
application.

Example:
This example retrieves in PrintersCollection the collection of the
printers currently managed by the CATIA application.

Dim PrintersCollection As Windows
Set PrintersCollection = CATIA.Printers
Returns

Printers

quit()

Note

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

o Sub Quit()

Exits the application and closes all open documents.

Example:
This example exits the CATIA application and closes all its open
documents.

CATIA.Quit()
Returns

None

property refresh_display

Note

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

o Property RefreshDisplay() As boolean

Enables or disables the update of the display during the script replay. To
improve performance, this update can be temporarely disabled by setting this
property to False in the script.
True (value set by default) if the application’s display is refreshed after
each method call executed in late binding mode . This property does not affect
early binding calls nor the get methods because they are never followed by a
refresh of the display.

Example:
This example makes the update of the CATIA application’s display
disabled during the script replay.

CATIA.RefreshDisplay = False
Returns

bool

start_command(i_command_id)

Note

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

o Sub StartCommand(CATBSTR iCommandId)

Starts a CATIA command.
Role:This method starts a command and executes it untill its first
interaction. Please notice interactions such as selections you could add after
in your macro will not work. StartCommand is useful to execute one-shot (not
interactive) commands, it is not safe for interactive
commands.

Parameters:

iCommandId
The id of the command to be started. This id can be the name of the
command or its alias.
Parameters

i_command_id (str) –

Returns

None

start_workbench(iworkbench_id)

Note

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

o Sub StartWorkbench(CATBSTR iworkbenchId)

Starts a CATIA workbench.

Parameters:

iworkbenchId
The id of the workbench to be started.
Parameters

iworkbench_id (str) –

Returns

None

property status_bar

Note

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

o Property StatusBar() As CATBSTR

Returns or sets the text displayed in the application’s window status
bar.

Example:
This example retrieves in Text the text displayed in the CATIA
application’s window status bar.

Text = CATIA.StatusBar


The returned value is like this:

Welcome to CATIA CxR1
Returns

str

property system_configuration

Note

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

o Property SystemConfiguration() As SystemConfiguration (Read
Only)

Returns the system configuration object (an object which provides access to
system or configuration dependent resources).

Parameters:

oConfiguration
The system configuration object.
Returns

SystemConfiguration

property system_service

Note

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

o Property SystemService() As SystemService (Read Only)

Returns system services.

Example:
This example retrieves in AppliSysSer the CATIA application’s system
services.

Dim AppliSysSer As SystemService
Set AppliSysSer = CATIA.SystemService
Returns

SystemService

property top

Note

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

o Property Top() As float

Returns or sets the distance from the application’si frame window top to
the top of the screen. This distance is expressed in
pixels.

Example:
This example sets the distance from the CATIA application’s frame
window top to the top of the screen to 50 pixels.

CATIA.Top = 50
Returns

float

property undo_redo_lock

Note

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

o Property UndoRedoLock() As boolean

Returns or sets the application status about Undo/Redo.
True if the Undo/Redo mechanism is locked.
False is the default. Since Undo/Redo mechanism uses lots of memory, it can
be useful to disable it during consuming operations. Then Undo and Redo stacks
are flushed and no model modification is kept until the Undo/Redo mechanism is
unlocked. It is mandatory to unlock it before the end of the
macro.

Example:

This example disables Undo/Redo mechanism until it is
unlocked.


CATIA.UndoRedoLock = True
Returns

bool

property visible

Note

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

o Property Visible() As boolean

Returns or sets the application’s window visibility.
True if the application’s window is visible to the end
user.

Example:
This example makes the CATIA application’s window
visible.

CATIA.Visibility = True
Returns

bool

property width

Note

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

o Property Width() As float

Returns or sets the width of the application’s frame window. The width is
expressed in pixels.

Example:
This example sets the width of the CATIA application’s frame window to
350 pixels.

CATIA.Width = 350
Returns

float

property windows

Note

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

o Property Windows() As Windows (Read Only)

Returns the collection of windows currently managed by the
application.

Example:
This example retrieves in WinCollection the collection of windows
currently managed by the CATIA application.

Dim WinCollection As Windows
Set WinCollection = CATIA.Windows
Returns

Windows

camera

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.in_interfaces.camera.Camera(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Camera

Represents the camera.
The camera is the object that stores a viewpoint saved from a viewer at a given
moment using the Viewer.NewCamera method of the Viewer object. The viewpoint
stored in the camera can then be applied to another viewer to display the
document in this viewer according to this viewpoint.
property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CatCameraType (Read Only)

Returns the camera’s type.

Example:
This example retrieves in MyCameraType the type of the MyCamera 3D
camera and applies the viewpoint stored in this camera to the active
viewer.

MyCameraType = MyCamera.Type
CATIA.ActiveWindow.ActiveViewer.Viewpoint3D = MyCamera.Viewpoint3D


The value returned by the Type property in MyCameraType is catCamera3D
Returns

enum cat_camera_type

camera2_d

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.in_interfaces.camera2_d.Camera2D(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Camera
Camera2D

Represents a 2D camera.
The 2D camera stores a 2D viewpoint, that is a Viewpoint2D
object.
property viewpoint2_d

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viewpoint2D() As Viewpoint2D

Returns or sets the 2D viewpoint of a 2D camera.

Example:
Assume the active window is a SpecsAndGeomWindow object. This example
retrieves the Viewpoint2D of the SpecsViewer and creates from it a Camera2D you
handle using the MyCamera variable. Then the camera zoom is set to 2, and the
camera’s viewpoint is assigned to the SpecsViewer.

Dim MyCamera As Camera
Set MyCamera = CATIA.ActiveWindow.SpecsViewer.NewCamera()
MyCamera.Viewpoint2D.Zoom = 2
CATIA.ActiveWindow.SpecsViewer.Viewpoint2D = MyCamera.Viewpoint2D
Returns

Viewpoint2D

camera3_d

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.in_interfaces.camera3_d.Camera3D(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Camera
Camera3D

Represents a 3D camera.
The 3D camera stores a 3D viewpoint, that is a Viewpoint3D
object.
property viewpoint3_d

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viewpoint3D() As Viewpoint3D

Returns or sets the 3D viewpoint of a 3D camera.

Example:
Assume the active window is a SpecsAndGeomWindow object. This example
retrieves the Viewpoint3D of the active 3D viewer and creates from it a
Camera3D you handle using the MyCamera variable. Then the camera zoom is set to
2, and the camera’s viewpoint is assigned to the active
viewer.

Dim MyCamera As Camera3D
Set MyCamera = CATIA.ActiveWindow.ActiveViewer.NewCamera()
MyCamera.Viewpoint3D.Zoom = 2
CATIA.ActiveWindow.ActiveViewer.Viewpoint3D = MyCamera.Viewpoint3D
Returns

Viewpoint3D

cameras

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.in_interfaces.cameras.Cameras(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
Cameras

A collection of all the Camera objects currently attached to a Document
object.
A camera can be created using the Viewer.NewCamera method of the Viewer object.
The first seventh cameras of the collection are Camera3D objects and cannot be
modified or removed. They can just be retrieved and used “as is”. They store
the following viewpoints whose sight direction is always toward the 3D-axis
system origin:

* iso
The origin is on a line with (1,1,1) as components with positive
coordinates
* front
The origin is on the x axis with a positive x coordinate
* back
The origin is on the x axis with a negative x coordinate
* left
The origin is on the y axis with a positive y coordinate
* right
The origin is on the y axis with a negative y coordinate
* top
The origin is on the z axis with a positive z coordinate
* bottom
The origin is on the z axis with a negative z coordinate

The cameras of the Cameras collection are available using the dialog box
displayed by clicking the View->Defined Views menu.
item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Camera

Returns a camera using its index or its name from the Cameras
collection.

Parameters:

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

AnyObject.Name property.
Returns:
The retrieved camera
Example:
This example retrieves in ThisCamera the ninth camera, and in
ThatCamera the camera named MyCamera in the camera collection of the active
document.

Dim ThisCamera As Camera
Set ThisCamera = CATIA.ActiveDocument.Cameras.Item(9)
Dim ThatCamera As Camera
Set ThatCamera = CATIA.ActiveDocument.Cameras.Item(“MyCamera”)
Parameters

i_index (CATVariant) –

Returns

Camera

remove(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)

Removes a camera from the Cameras collection.

Parameters:

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

AnyObject.Name property. You cannot remove the first seventh cameras in
the collection.

Example:
The following example removes the tenth camera and the camera named
CameraToBeRemoved in the camera collection of the active
document.

CATIA.ActiveDocument.Cameras.Remove(10)
CATIA.ActiveDocument.Cameras.Remove(“CameraToBeRemoved”)
Parameters

i_index (CATVariant) –

Returns

None

cgr_adhesion_setting_att

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.in_interfaces.cgr_adhesion_setting_att.CgrAdhesionSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
CGRAdhesionSettingAtt

Represents the base object to handle the parameters of the
cache.
get_v4_model_comment_page_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetV4_Model_CommentPageInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Locks or unlocks the V4_Model_CommentPage container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

get_v4_model_ln_f_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetV4_Model_LnFInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the V4_Model_LnF container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

get_v4_v5_fdt_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetV4V5_FDTInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the V4V5_FDT container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

get_v5_spa_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetV5_SPAInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the V5_SPA container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

get_voxels_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetVoxelsInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Voxels container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

set_v4_model_comment_page_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetV4_Model_CommentPageLock(boolean iLocked)

Retrieves information about the V4_Model_CommentPage container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_v4_model_ln_f_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetV4_Model_LnFLock(boolean iLocked)

Locks or unlocks the V4_Model_LnF container activation
state.
Refer to CATSysSettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_v4_v5_fdt_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetV4V5_FDTLock(boolean iLocked)

Locks or unlocks the V4V5_FDT container activation state.
Refer to CATSysSettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_v5_spa_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetV5_SPALock(boolean iLocked)

Locks or unlocks the V5_SPA container activation state.
Refer to CATSysSettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_voxels_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetVoxelsLock(boolean iLocked)

Locks or unlocks the Voxels container activation state.
Refer to CATSysSettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

property v4_model_comment_page

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property V4_Model_CommentPage() As boolean

Retrieves the V4_Model_CommentPage container activation state.
Returns

bool

property v4_model_ln_f

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property V4_Model_LnF() As boolean

Retrieves the V4_Model_LnF container activation state.
Returns

bool

property v4_v5_fdt

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property V4V5_FDT() As boolean

Retrieves the V4V5_FDT container activation state.
Returns

bool

property v5_spa

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property V5_SPA() As boolean

Retrieves the V5_SPA container activation state.
Returns

bool

property voxels

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Voxels() As boolean

Retrieves the Voxels container activation state.
Returns

bool

document

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.in_interfaces.document.Document(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Document

Represents the document.
The document is the object handled by the operating system as a whole that
stores your data in files and databases. It is assigned a type determined by
its contents. It may contain other documents with a different type. For
example, a PartDocument contains a part and can be contained in a
ProductDocument. A workshop is associated with a document to gather all the
commands that can be used to create, modify, and edit the objects making up the
the document. These commands are arranged in menus and
toolbars.

See also:
PartDocument, ProductDocument, DrawingDocument
activate()

Activates the document

Note

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

Activates the document. Activating a document means that this document is
the one on which the end user is now working on. This document possibly
reconfigures the menu bar and toolbars with its own commands if its type is
different from the type of the previous active document. The first window in
the window collection which contains this document becomes the active
one.

Example:
This example activates the Doc document.

Doc.Activate()
property cameras

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Cameras() As Cameras (Read Only)

Returns the document’s collection of cameras.

Example:
This example retrieves in CameraCollection the collection of cameras
attached to the Doc document.

Dim CameraCollection As Cameras
Set CameraCollection = Doc.Cameras
Returns

Cameras

close()

Closes the current document.

Note

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

Closes the document. This closes all the windows displaying the document.
If the document needs to be saved, the end user is prompted whether to save the
document, or to close it anyway.

Example:
This example closes the Doc document

Doc.Close()
create_filter(i_filter_name=None, i_filter_definition=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CreateFilter(CATBSTR iFilterName,
CATBSTR iFilterDefinition)

Creates a new visualization filter from a name and a definition. Fails if
there is already a filter named iFilterName.

Parameters:

iFilterName
The filter name.
iFilterDefinition
The filter definition
Example:
This example creates the filter named “Filter001” and with “layer=
2 & layer= 1” definition for the Doc document.

Doc.CreateFilter (“Filter001”, “layer= 2 & layer=
1”)
Parameters
  • i_filter_name (str) –

  • i_filter_definition (str) –

Returns

None

create_reference_from_name(i_label=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateReferenceFromName(CATBSTR iLabel) As Reference

Creates a reference from a GenericNaming label. Each kind of document
provides a specific implementation.

Parameters:

iLabel
The GenericNaming identification for an object.

Returns:
The reference to the object.
Parameters

i_label (str) –

Returns

Reference

property current_filter

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CurrentFilter() As CATBSTR

Returns or sets the current visualization filter. CurrentFilter uses the
filter name and not its definition. The “All visible” filter means that all
layers are visible. For all filters, remind that the current layer is always
visible.

Example:
This example makes the filter named “Filter001” as the current
visualization filter for the Doc document.

Doc.CurrentFilter = “Filter001”
Returns

str

property current_layer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CurrentLayer() As CATBSTR

Returns or sets the current layer. CurrentLayer uses the layer name and not
its number. The “None” layer means that there is no current
layer.

Example:
This example makes the layer named “Layer 3” as the current layer for
the Doc document.

Doc.CurrentLayer = “Layer 3”
Returns

str

drawing_root()
Returns

export_data(file_name, file_type, overwrite=False)

Note

CAA V5 Visual Basic help

Sub ExportData( CATBSTR fileName, CATBSTR format)

Exports the data contained in the document to another format.
Parameters:
fileName
The name of the exported file
format
The name of the format
Example:
This example writes the Doc document in the IGES format under the IGESDoc name.
Doc.ExportData(“IGESDoc”, “igs”)
Parameters
  • file_name (str) – file_name including full path.

  • file_type (str) – file_type is the extension of required file_type. The file_type must be supported by CATIA and the CATIA license.

  • overwrite (bool) –

Returns

property full_name

Note

CAA V5 Visual Basic help

Property FullName( ) As CATBSTR (Read Only)

Returns the document’s full file name, including its path.
Example:
This example retrieves in DocFullName the Doc document’s full file name.
DocFullName = Doc.FullName

The returned value is like this:
e://users//psr//Parts//MyNicePart.CATPart
Returns

str - full path document name

get_workbench(workbench_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetWorkbench(CATBSTR workbenchName) As Workbench

Returns one of the workbenches of the document.

Parameters:

workbenchName
The name of the workbench

Example:
This example retrieves the Structural workbench on the Doc
document

Doc.GetWorkbench(“Structural”)
Parameters

workbench_name (str) –

Returns

Workbench

indicate_2d(i_message=None, io_document_window_location=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Indicate2D(CATBSTR iMessage,
CATSafeArrayVariant ioDocumentWindowLocation) As CATBSTR

Runs an 2D interactive indication command.
Role: Indicate2D asks to the user to select a location in the document
window. It can be used:
When this document is a DrawingDocument

When this document is a PartDocument, and a sketch is being edited (
Sketch.OpenEdition has been called and Sketch.CloseEdition has not been called
yet)

See also: Selection.IndicateOrSelectElement2D which can, in particular,
enable indication and not selection (positionning the iFilterType parameter to
an empty string), whichs enables to subscribe to mouse move events,
positionning the iTriggeringOnPreSelection to true.
Note:If the scripting language is Visual Basic for Applications or Visual
Basic 6 Development Studio, then, you have to know that during the execution of
an interactive selection method such as this one, no form (dialog box) must be
displayed, otherwise it would lead to unpredictible results. In a form method,
before calling an interactive selection method such as Document.Indicate2D, you
must hide all forms, and, after the call to the method, you must show the
forms.

Parameters:

iMessage
A string which instructs the user that he must select a location in
the document window. This string is displayed in the message area located at
the left of the power input area.
oDocumentWindowLocation
An array made of 2 doubles: X, Y - coordinates array of the
location the user specified in the document window.

oOutputState
The state of the indication command once Indicate2D returns. It can
be either “Normal” (the indication has succeeded), “Cancel” (the user wants to
cancel the VB command, which must exit immediately, see the oOutputState
parameter of the

Selection.SelectElement2 method), “Undo” or “Redo”. About the use of
“Undo” and “Redo”, see the example of the Selection.SelectElement2 method.

Example:

The following example suppose a drawing document is currently edited.
It asks the end user to select a
location in the current drawing window, and creates a text (see


DrawingText ) at the specified location:

Set Document = CATIA.ActiveDocument :
Set Selection = Document.Selection :
Set DrawingSheets = Document.Sheets
Set DrawingSheet = DrawingSheets.ActiveSheet : Set DrawingViews = DrawingSheet.Views
Set DrawingView = DrawingViews.ActiveView : Set DrawingTexts = DrawingView.Texts
‘We propose to the user that he specify a location in the drawing
window
Dim DrawingWindowLocation(1)
Status=Document.Indicate2D(“select a location into the drawing
window”,DrawingWindowLocation)
if (Status = “Cancel”) then Exit Sub
Set DrawingText=DrawingTexts.Add(“Hello
world”,DrawingWindowLocation(0),DrawingWindowLocation(1))
Parameters
  • i_message (str) –

  • io_document_window_location (tuple) –

Returns

str

indicate_3d(i_planar_geometric_object=None, i_message=None, io_window_location2_d=None, io_window_location3_d=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Indicate3D(AnyObject iPlanarGeometricObject,
CATBSTR iMessage,
CATSafeArrayVariant ioWindowLocation2D,
CATSafeArrayVariant ioWindowLocation3D) As CATBSTR

Runs an 3D interactive indication command.
Role: Indicate3D asks to the user to select a location in the document
window. It cannot be used:
When this document is a DrawingDocument

When this document is a PartDocument, and a sketch is being edited (
Sketch.OpenEdition has been called and Sketch.CloseEdition has not been called
yet)

In these cases, Indicate2D must be used.
See also: Selection.IndicateOrSelectElement3D which can, in particular,
enable indication and not selection (positionning the iFilterType parameter to
an empty string), whichs enables to subscribe to mouse move events,
positionning the iTriggeringOnPreSelection to true.
Note:If the scripting language is Visual Basic for Applications or Visual
Basic 6 Development Studio, then, you have to know that during the execution of
an interactive selection method such as this one, no form (dialog box) must be
displayed, otherwise it would lead to unpredictible results. In a form method,
before calling an interactive selection method such as Document.Indicate2D, you
must hide all forms, and, after the call to the method, you must show the
forms.

Parameters:

iPlanarGeometricObject
A planar geometric object.
The following objects are supported:

HybridShapeCircle, HybridShapeCircleExplicit, HybridShapeConic, Sketch,
Circle2D, Ellipse2D, Hyperbola2D, Parabola2D and Spline2D.

iMessage
A string which instructs the user that he must select a location in the
document window. This string is displayed in the message area located at the
left of the power input area.
oWindowLocation2D
An array made of 2 doubles: X, Y - coordinates array of the location
the user specified in the document window, in the input planar object
coordinates system
oWindowLocation3D
An array made of 3 doubles: X, Y, Z - coordinates array of the location
the user specified in the document window
oOutputState
The state of the indication command once Indicate3D returns. It can be
either “Normal” (the indication has succeeded), “Cancel” (the user wants to
cancel the VB command, which must exit immediately, see the oOutputState
parameter of the Selection.SelectElement2 method), “Undo” or “Redo”. About the
use of “Undo” and “Redo”, see the example of the Selection.SelectElement2
method.
Example:

The following example asks the end user to select a location in the

document window, on the Plane.1 plane, and creates a



HybridShapePointOnPlane at the specified location:

Set Document = CATIA.ActiveDocument :
Set Part = Document.Part :
Set Selection = Document.Selection
Set HybridShapeFactory = Part.HybridShapeFactory
Set HybridShapePlane = Part.Bodies.Item(“PartBody”).HybridShapes.Item(“Plane.1”)
Set PlaneReference = Part.CreateReferenceFromObject(HybridShapePlane)
‘We propose to the user that he select a location in the
window
ReDim WindowLocation2D(1),WindowLocation3D(2)
Status=Document.Indicate3D(HybridShapePlane,”select a location in the
document window”, _
WindowLocation2D,WindowLocation3D)
if (Status = “Cancel”) then Exit Sub
Set HybridShapePointOnPlane = HybridShapeFactory.AddNewPointOnPlane( _
PlaneReference,WindowLocation2D(0),WindowLocation2D(1))
Part.Bodies.Item(“PartBody”).InsertHybridShape
HybridShapePointOnPlane
Part.InWorkObject = HybridShapePointOnPlane
Part.Update
Parameters
  • i_planar_geometric_object (AnyObject) –

  • i_message (str) –

  • io_window_location2_d (tuple) –

  • io_window_location3_d (tuple) –

Returns

str

property is_part

Determine whether the active document is a CATPart.

Returns

bool

property is_product

Determine whether the active document is a CATProduct.

Returns

bool

property is_saved

Returns true if document is saved.

Note

CAA V5 Visual Basic help

Property Saved( ) As boolean (Read Only)

Returns whether the document has been modified, and thus needs to be saved. This happens when the document has changed since either its creation or its last save. True if the document has not been changed: the document doesn’t need to be saved. False if the document has been changed: the document needs to be saved.

Example:
This example retrieves in HasChanged whether the Doc document needs to be saved.
HasChanged = NOT Doc.Saved
Returns

bool

new_window()

Note

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

Duplicates the window which contains the active document. This implies
creating a window, displaying the active document in this window with the same
view point, making this window the active one, and adding the window to the
collection of windows.

Example:
This example creates the MyWindow new window for the Doc
document.

Dim MyWindow As Window
Set MyWindow = Doc.NewWindow()
Returns

Window

part()
Returns

Part()

path()

Returns the pathlib.Path() object of the document fullname.

example e://users//psr//Parts//MyNicePart.CATPart >>> Document.path().name MyNicePart.CATPart >>> Document.path().parent e://users//psr//Parts// >>> Document.path().suffix .CATPart

Returns

Path()

product()
Returns

Product()

property read_only

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReadOnly() As boolean (Read Only)

Returns whether the file containing the document can be read only, on can
be read and written.
True if the file is read-only.

Example:
This example retrieves in IsReadOnly the ability to read, and possibly
to write in, the file containing the Doc document.

IsReadOnly = Doc.ReadOnly
Returns

bool

remove_filter(i_filter_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFilter(CATBSTR iFilterName)

Removes an existing visualization filter. Fails if the filter to be removed
is the current filter.

Parameters:

iFilterName
The filter name.
Example:
This example removes the filter named “Filter001” for the Doc
document.

Doc.RemoveFilter (“Filter001”)
Parameters

i_filter_name (str) –

Returns

None

save()

Note

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

Saves the document.

Example:
This example saves the Doc document.

Doc.Save()
Returns

None

save_as(file_name, overwrite=False)

Save the document to a new name.

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SaveAs(CATBSTR fileName)

Saves the document with another name.

Parameters:

fileName
The name to assign to the document

Example:
This example saves the Doc document with the NewName
name.

Doc.SaveAs(“NewName”)
Parameters
  • file_name (str) – full pathname to new file_name

  • overwrite (bool) –

static search_for_items(document, selection_objects)

# todo: This search is currently restricted to GSD objects only.

Selection objects is a list of items to search for. Example: selection_objects = [‘Point’, ‘Line’]

Example query string to search for all lines and points “(‘Generative Shape Design’.Point + ‘Generative Shape Design’.Line),in”

Parameters
  • document

  • selection_objects (list) –

Return Selected Automation Object

property see_hidden_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SeeHiddenElements() As boolean

Returns or sets the document’s hidden elements visibility.
True if the document’s hidden elements are visible to the
user.

Example:
This example makes the Doc document’s hidden elements
visible.

Doc.SeeHiddenElements = True
Returns

bool

property selection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Selection() As Selection (Read Only)

Returns the current selection. The current selection is the object or the
set of objects the end user has selected, usually with the mouse, in the active
document displayed in the active window.

Example:
This example returns in CurSel the current selection in the Doc
document

Dim CurSel As Selection
Set CurSel = Doc.Selection
Returns

Selection

spa_workbench()

Returns:

documentation_setting_att

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.in_interfaces.documentation_setting_att.DocumentationSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Document

Represents the document.
The document is the object handled by the operating system as a whole that
stores your data in files and databases. It is assigned a type determined by
its contents. It may contain other documents with a different type. For
example, a PartDocument contains a part and can be contained in a
ProductDocument. A workshop is associated with a document to gather all the
commands that can be used to create, modify, and edit the objects making up the
the document. These commands are arranged in menus and
toolbars.

See also:
PartDocument, ProductDocument, DrawingDocument
activate()

Note

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

Activates the document. Activating a document means that this document is
the one on which the end user is now working on. This document possibly
reconfigures the menu bar and toolbars with its own commands if its type is
different from the type of the previous active document. The first window in
the window collection which contains this document becomes the active
one.

Example:
This example activates the Doc document.

Doc.Activate()
Returns

None

property cameras

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Cameras() As Cameras (Read Only)

Returns the document’s collection of cameras.

Example:
This example retrieves in CameraCollection the collection of cameras
attached to the Doc document.

Dim CameraCollection As Cameras
Set CameraCollection = Doc.Cameras
Returns

Cameras

close()

Note

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

Closes the document. This closes all the windows displaying the document.
If the document needs to be saved, the end user is prompted whether to save the
document, or to close it anyway.

Example:
This example closes the Doc document

Doc.Close()
Returns

None

create_filter(i_filter_name, i_filter_definition)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CreateFilter(CATBSTR iFilterName,
CATBSTR iFilterDefinition)

Creates a new visualization filter from a name and a definition. Fails if
there is already a filter named iFilterName.

Parameters:

iFilterName
The filter name.
iFilterDefinition
The filter definition
Example:
This example creates the filter named “Filter001” and with “layer=
2 & layer= 1” definition for the Doc document.

Doc.CreateFilter (“Filter001”, “layer= 2 & layer=
1”)
Parameters
  • i_filter_name (str) –

  • i_filter_definition (str) –

Returns

None

create_reference_from_name(i_label)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateReferenceFromName(CATBSTR iLabel) As Reference

Creates a reference from a GenericNaming label. Each kind of document
provides a specific implementation.

Parameters:

iLabel
The GenericNaming identification for an object.

Returns:
The reference to the object.
Parameters

i_label (str) –

Returns

Reference

property current_filter

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CurrentFilter() As CATBSTR

Returns or sets the current visualization filter. CurrentFilter uses the
filter name and not its definition. The “All visible” filter means that all
layers are visible. For all filters, remind that the current layer is always
visible.

Example:
This example makes the filter named “Filter001” as the current
visualization filter for the Doc document.

Doc.CurrentFilter = “Filter001”
Returns

str

property current_layer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CurrentLayer() As CATBSTR

Returns or sets the current layer. CurrentLayer uses the layer name and not
its number. The “None” layer means that there is no current
layer.

Example:
This example makes the layer named “Layer 3” as the current layer for
the Doc document.

Doc.CurrentLayer = “Layer 3”
Returns

str

export_data(file_name, format_py)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ExportData(CATBSTR fileName,
CATBSTR format)

Exports the data contained in the document to another
format.

Parameters:

fileName
The name of the exported file
format
The name of the format

Example:
This example writes the Doc document in the IGES format under the
IGESDoc name.

Doc.ExportData(“IGESDoc”, “igs”)
Parameters
  • file_name (str) –

  • format_py (str) –

Returns

None

property full_name

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FullName() As CATBSTR (Read Only)

Returns the document’s full file name, including its path.

Example:
This example retrieves in DocFullName the Doc document’s full file
name.

DocFullName = Doc.FullName


The returned value is like this:

e:/users/psr/Parts/MyNicePart.CATPart
Returns

str

get_workbench(workbench_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetWorkbench(CATBSTR workbenchName) As Workbench

Returns one of the workbenches of the document.

Parameters:

workbenchName
The name of the workbench

Example:
This example retrieves the Structural workbench on the Doc
document

Doc.GetWorkbench(“Structural”)
Parameters

workbench_name (str) –

Returns

Workbench

indicate2_d(i_message, io_document_window_location)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Indicate2D(CATBSTR iMessage,
CATSafeArrayVariant ioDocumentWindowLocation) As CATBSTR

Runs an 2D interactive indication command.
Role: Indicate2D asks to the user to select a location in the document
window. It can be used:
When this document is a DrawingDocument

When this document is a PartDocument, and a sketch is being edited (
Sketch.OpenEdition has been called and Sketch.CloseEdition has not been called
yet)

See also: Selection.IndicateOrSelectElement2D which can, in particular,
enable indication and not selection (positionning the iFilterType parameter to
an empty string), whichs enables to subscribe to mouse move events,
positionning the iTriggeringOnPreSelection to true.
Note:If the scripting language is Visual Basic for Applications or Visual
Basic 6 Development Studio, then, you have to know that during the execution of
an interactive selection method such as this one, no form (dialog box) must be
displayed, otherwise it would lead to unpredictible results. In a form method,
before calling an interactive selection method such as Document.Indicate2D, you
must hide all forms, and, after the call to the method, you must show the
forms.

Parameters:

iMessage
A string which instructs the user that he must select a location in
the document window. This string is displayed in the message area located at
the left of the power input area.
oDocumentWindowLocation
An array made of 2 doubles: X, Y - coordinates array of the
location the user specified in the document window.

oOutputState
The state of the indication command once Indicate2D returns. It can
be either “Normal” (the indication has succeeded), “Cancel” (the user wants to
cancel the VB command, which must exit immediately, see the oOutputState
parameter of the

Selection.SelectElement2 method), “Undo” or “Redo”. About the use of
“Undo” and “Redo”, see the example of the Selection.SelectElement2 method.

Example:

The following example suppose a drawing document is currently edited.
It asks the end user to select a
location in the current drawing window, and creates a text (see


DrawingText ) at the specified location:

Set Document = CATIA.ActiveDocument :
Set Selection = Document.Selection :
Set DrawingSheets = Document.Sheets
Set DrawingSheet = DrawingSheets.ActiveSheet : Set DrawingViews = DrawingSheet.Views
Set DrawingView = DrawingViews.ActiveView : Set DrawingTexts = DrawingView.Texts
‘We propose to the user that he specify a location in the drawing
window
Dim DrawingWindowLocation(1)
Status=Document.Indicate2D(“select a location into the drawing
window”,DrawingWindowLocation)
if (Status = “Cancel”) then Exit Sub
Set DrawingText=DrawingTexts.Add(“Hello
world”,DrawingWindowLocation(0),DrawingWindowLocation(1))
Parameters
  • i_message (str) –

  • io_document_window_location (tuple) –

Returns

str

indicate3_d(i_planar_geometric_object, i_message, io_window_location2_d, io_window_location3_d)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Indicate3D(AnyObject iPlanarGeometricObject,
CATBSTR iMessage,
CATSafeArrayVariant ioWindowLocation2D,
CATSafeArrayVariant ioWindowLocation3D) As CATBSTR

Runs an 3D interactive indication command.
Role: Indicate3D asks to the user to select a location in the document
window. It cannot be used:
When this document is a DrawingDocument

When this document is a PartDocument, and a sketch is being edited (
Sketch.OpenEdition has been called and Sketch.CloseEdition has not been called
yet)

In these cases, Indicate2D must be used.
See also: Selection.IndicateOrSelectElement3D which can, in particular,
enable indication and not selection (positionning the iFilterType parameter to
an empty string), whichs enables to subscribe to mouse move events,
positionning the iTriggeringOnPreSelection to true.
Note:If the scripting language is Visual Basic for Applications or Visual
Basic 6 Development Studio, then, you have to know that during the execution of
an interactive selection method such as this one, no form (dialog box) must be
displayed, otherwise it would lead to unpredictible results. In a form method,
before calling an interactive selection method such as Document.Indicate2D, you
must hide all forms, and, after the call to the method, you must show the
forms.

Parameters:

iPlanarGeometricObject
A planar geometric object.
The following objects are supported:

HybridShapeCircle, HybridShapeCircleExplicit, HybridShapeConic, Sketch,
Circle2D, Ellipse2D, Hyperbola2D, Parabola2D and Spline2D.

iMessage
A string which instructs the user that he must select a location in the
document window. This string is displayed in the message area located at the
left of the power input area.
oWindowLocation2D
An array made of 2 doubles: X, Y - coordinates array of the location
the user specified in the document window, in the input planar object
coordinates system
oWindowLocation3D
An array made of 3 doubles: X, Y, Z - coordinates array of the location
the user specified in the document window
oOutputState
The state of the indication command once Indicate3D returns. It can be
either “Normal” (the indication has succeeded), “Cancel” (the user wants to
cancel the VB command, which must exit immediately, see the oOutputState
parameter of the Selection.SelectElement2 method), “Undo” or “Redo”. About the
use of “Undo” and “Redo”, see the example of the Selection.SelectElement2
method.
Example:

The following example asks the end user to select a location in the

document window, on the Plane.1 plane, and creates a



HybridShapePointOnPlane at the specified location:

Set Document = CATIA.ActiveDocument : Set Part = Document.Part :
Set Selection = Document.Selection
Set HybridShapeFactory = Part.HybridShapeFactory
Set HybridShapePlane = Part.Bodies.Item(“PartBody”).HybridShapes.Item(“Plane.1”)
Set PlaneReference = Part.CreateReferenceFromObject(HybridShapePlane)
‘We propose to the user that he select a location in the
window
ReDim WindowLocation2D(1),WindowLocation3D(2)
Status=Document.Indicate3D(HybridShapePlane,”select a location in the
document window”, _
WindowLocation2D,WindowLocation3D)
if (Status = “Cancel”) then Exit Sub
Set HybridShapePointOnPlane = HybridShapeFactory.AddNewPointOnPlane( _
PlaneReference,WindowLocation2D(0),WindowLocation2D(1))
Part.Bodies.Item(“PartBody”).InsertHybridShape
HybridShapePointOnPlane
Part.InWorkObject = HybridShapePointOnPlane
Part.Update
Parameters
  • i_planar_geometric_object (AnyObject) –

  • i_message (str) –

  • io_window_location2_d (tuple) –

  • io_window_location3_d (tuple) –

Returns

str

new_window()

Note

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

Duplicates the window which contains the active document. This implies
creating a window, displaying the active document in this window with the same
view point, making this window the active one, and adding the window to the
collection of windows.

Example:
This example creates the MyWindow new window for the Doc
document.

Dim MyWindow As Window
Set MyWindow = Doc.NewWindow()
Returns

Window

property path

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Path() As CATBSTR (Read Only)

Returns the document’s file path.

Example:
This example retrieves in DocPath the path where the Doc document is
stored.

DocPath = Doc.Path


The returned value is like this:

e:/users/psr/Parts
Returns

str

property read_only

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReadOnly() As boolean (Read Only)

Returns whether the file containing the document can be read only, on can
be read and written.
True if the file is read-only.

Example:
This example retrieves in IsReadOnly the ability to read, and possibly
to write in, the file containing the Doc document.

IsReadOnly = Doc.ReadOnly
Returns

bool

remove_filter(i_filter_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFilter(CATBSTR iFilterName)

Removes an existing visualization filter. Fails if the filter to be removed
is the current filter.

Parameters:

iFilterName
The filter name.
Example:
This example removes the filter named “Filter001” for the Doc
document.

Doc.RemoveFilter (“Filter001”)
Parameters

i_filter_name (str) –

Returns

None

save()

Note

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

Saves the document.

Example:
This example saves the Doc document.

Doc.Save()
Returns

None

save_as(file_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SaveAs(CATBSTR fileName)

Saves the document with another name.

Parameters:

fileName
The name to assign to the document

Example:
This example saves the Doc document with the NewName
name.

Doc.SaveAs(“NewName”)
Parameters

file_name (str) –

Returns

None

property saved

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Saved() As boolean (Read Only)

Returns whether the document has been modified, and thus needs to be
saved.
This happens when the document has changed since either its creation or its
last save.

True if the document has not been changed: the document doesn’t need to
be saved.
False if the document has been changed: the document needs to be
saved.

Example:
This example retrieves in HasChanged whether the Doc document needs to
be saved.

HasChanged = NOT Doc.Saved
Returns

bool

property see_hidden_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SeeHiddenElements() As boolean

Returns or sets the document’s hidden elements visibility.
True if the document’s hidden elements are visible to the
user.

Example:
This example makes the Doc document’s hidden elements
visible.

Doc.SeeHiddenElements = True
Returns

bool

property selection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Selection() As Selection (Read Only)

Returns the current selection. The current selection is the object or the
set of objects the end user has selected, usually with the mouse, in the active
document displayed in the active window.

Example:
This example returns in CurSel the current selection in the Doc
document

Dim CurSel As Selection
Set CurSel = Doc.Selection
Returns

Selection

documents

class pycatia.in_interfaces.documents.Documents(com_object)

The Documents object is used to access multiple open documents in the catia session.

Usage:

>>> from pycatia import catia
>>> documents = catia.documents

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

        | System.IUnknown
        |     System.IDispatch
        |         System.CATBaseUnknown
        |             System.CATBaseDispatch
        |                 System.Collection
        |                     Documents
        |
        | A collection of all the Document objects currently managed by the
        | application.
        | These documents belong to one of the following types: PartDocument,
        | ProductDocument, and Drawing.
        |
        | See also:
        |     PartDocument, ProductDocument, DrawingDocument
add(document_type)

Note

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

Creates a Document object and adds it to the documents collection. This
document becomes the active one, and a window is created to accomodate it which
becomes the active window.

Parameters:

docType
The type of the document to create, chosen among:

Part
For PartDocument
Product
For ProductDocument
Drawing
For Drawing

Returns:
The created document
Example:
The following example creates a PartDocument document in the collection
retrieved in PartDoc.

Dim PartDoc As Document
Set PartDoc = Documents.Add(“Part”)
Parameters

document_type (str) –

Returns

Document

count_types(file_type_list)
Returns the number of documents which presents special file extensions like:

‘catpart’, ‘catdrawing’, ‘catproduct’, ‘catmaterial’, ‘catalog’, ‘catfct’

Parameters

(list) file_type_list (str) – filetype(s) to count.

Returns

int()

item(index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Document

Returns a document using its index or its name from the documents
collection.

Parameters:

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

AnyObject.Name property.
Returns:
The retrieved document
Example:
This example retrieves in ThisDoc the fifth document in the collection
and in ThatDoc the document named MyDoc.

Dim ThisDoc As Document
Set ThisDoc = Documents.Item(5)
Dim ThatDoc As Document
Set ThatDoc = Documents.Item(“MyDoc”)
Parameters

index (CATVariant) –

Returns

Document

new_from(file_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func NewFrom(CATBSTR iFileName) As Document

Creates a new document from a document stored in a file. Role: Reads a
document stored in a file and creates a new document containing the resulting
data, adds the new document to the document collection, displays it in a new
window, adds the window to the window collection and activates both the
document and the window.

Parameters:

The
name of the file containing the document.

Returns:
The created document.
Example:
The following example creates a new Doc document from the contents of
the FileToRead file.

FileToRead = “e:userspsrPartsThisIsANicePart.CATPart”
Dim Doc As Document
Set Doc = Documents.NewFrom(FileToRead)
Parameters

file_name (str) –

Returns

Document

num_open()

Returns the number of open documents.

Warning

The COM object can return the incorrect number of documents open. After a document is closed CATIA can keep the linked document ABQMaterialPropertiesCatalog.CATfct open.

Returns

int()

open(file_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Open(CATBSTR iFileName) As Document

Opens a document stored in a file. Reads a document stored in a file,
displays it in a new window, adds the document to the documents collection and
the window to the windows collection, and makes both the document and the
window the active ones.

Parameters:

iFileName
The name of the file containing the document

Returns:
The retrieved document
Example:
The following example opens the Doc document contained in the
FileToOpen file.

FileToOpen = “e:userspsrPartsThisIsANicePart.CATPart”
Dim Doc As Document
Set Doc = Documents.Open(FileToOpen)
Parameters

file_name (str) –

Returns

Document

read(file_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Read(CATBSTR iFileName) As Document

Reads a document stored in a file. This method has to be used only for
Browse purpose, for instance to retrieve Product properties. Be careful, it
doesn’t open any editor (no visualization, no undo/redo capabilities…) As
soon as you want to modify the V5 document, you have to use the VB Open method
collection. If this solution is not satisfactory because it opens an editor for
every document, you have to move to C++ and use the CAA methods
CATDocumentServices::Open and CATDocumentServices::SaveAs with the same file
name as the initial one.

Parameters:

iFileName
The name of the file containing the document

Returns:
The retrieved document
Example:
The following example reads the Doc document contained in the
FileToOpen file.

FileToOpen = “e:userspsrPartsThisIsANicePart.CATPart”
Dim Doc As Document
Set Doc = Documents.Read(FileToOpen)
Parameters

i_file_name (str) –

Returns

Document

drafting_page_setup

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.in_interfaces.drafting_page_setup.DraftingPageSetup(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.PageSetup
DraftingPageSetup

Represents the page setup for the drawing documents.
The page setup is the object that stores data which defines how your documents
and images are actually printed on paper. This data includes namely the paper
size, the orientation, the bottom, top, right, and left margins, the zoom
factor, the banner, the printing quality, the choice of the best orientation,
and the choice to fit either the drawing sheet format or the printer
format.
property choose_best_orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ChooseBestOrientation() As boolean

Activates or deactivates the choice of the best
orientation.

Example:
This example requests the best orientation to be chosen for
MySheet.

MySheet.DrawingPageSetUp.ChooseBestOrientation = TRUE
Returns

bool

property fit_to_printer_format

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FitToPrinterFormat() As boolean

Fits the format of the print to the printer format.

Example:
This example turns this calculation on.

MySheet.DrawingPageSetUp.FitToPrinterFormat = TRUE
Returns

bool

property fit_to_sheet_format

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FitToSheetFormat() As boolean

Fits the format of the print to the sheet format.

Example:
This example turns this calculation on.

MySheet.DrawingPageSetUp.FitToSheetFormat = TRUE
Returns

bool

file

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.in_interfaces.file.File(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.FileComponent
File

Represents the file object.
Role: The file object allows to manipulate files with UNIX and Windows. Use it
instead of the one of Visual Basic to make portable macros. Its gives access to
information about the file and can open a file as a TextStream
object.
open_as_text_stream(i_mode)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func OpenAsTextStream(CATBSTR iMode) As TextStream

Opens the file and retrieves it as a TextSteam object. Paramater iMode can
have the value “ForReading”, “ForWriting” or
“ForAppending”.

Example:
This example opens the file TestFile for reading and retrieves in the
text stream TextStr.

Dim TextStr As CATIATextSteam
Set TextStr = TestFile.OpenAsTextStream(“ForReading”)
Parameters

i_mode (str) –

Returns

TextStream

property size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Size() As long (Read Only)

Returns the size of the file.

Example:
This example retrieves in FileSize the size of the File
TestFile.

Dim FileSize As Long
FileSize = TestFile.Size
Returns

int

property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CATBSTR (Read Only)

Returns the type of the file. For instance, if the file has a .txt or .doc
extension, its type will be “Text Document”.

Example:
This example retrieves in FileType the type of the File
TestFile.

Dim FileType As String
FileSize = TestFile.Size
Returns

str

file_component

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.in_interfaces.file_component.FileComponent(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
FileComponent

Represents the file object.
Role: The file object allows to manipulate files with UNIX and Windows. Use it
instead of the one of Visual Basic to make portable macros. Its gives access to
information about the file and can open a file as a TextStream
object.
property parent_folder

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParentFolder() As Folder

Returns or sets the parent folder of the file.

Example:
This example sets the folder ParentFold as parent of the file TestFile.
This moves the file into ParentFold.

TestFile.ParentFolder
Returns

Folder

property path

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Path() As CATBSTR (Read Only)

Returns the full path of the file.

Example:
This example retrieves in FilePath the path of the File
TestFile.

Dim FilePath As String
FilePath = TestFile.Path
Returns

str

file_system

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.in_interfaces.file_system.FileSystem(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
FileSystem

Represents the file system object.
Role: The file system object allows you to access and manipulate folders and
files. It can check the existence of, get, create, delete, or copy folders and
files.

See also:
Folder, File
concatenate_paths(i_path_chunk1, i_path_chunk2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ConcatenatePaths(CATBSTR iPathChunk1,
CATBSTR iPathChunk2) As CATBSTR

Concatenates two path chunks to make a new path. Either path chunk can be
empty. The resulting path does not have to exist. The method automatically
corrects improper path separators (/ Unix separators used on a Windows platform
are automatically replaced by // and vice versa).

Parameters:

iPathChunk1
The first path chunk (for instance “E://tmp”).
iPathChunk2
The second path chunk (for instance “local/myfile.txt”).

oPath
The resulting path (for instance
“E://tmp//local//myfile.txt”).
Parameters
  • i_path_chunk1 (str) –

  • i_path_chunk2 (str) –

Returns

str

copy_file(i_path_source, i_path_destination, i_overwrite)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CopyFile(CATBSTR iPathSource,
CATBSTR iPathDestination,
boolean iOverwrite)

Copies a file from one location to another.

Parameters:

iSourcePath
The full path of the source file.
iDestinationPath
The full destination path where the source file is to be copied.

iOverwrite
Boolean value that is True if an existing file with the same name
can be overwritten; False if it is not, and the copy doesn’t take
place.

Example:
This example copies the file C:/Tests/File1 to C:/Tests/File2
from the file system object FileSys, except if a file with the name
C:/Tests/File2 already exists.

FileSys.CopyFile(“C:/Tests/File1”, “C:/Tests/File2”,
False)
Parameters
  • i_path_source (str) –

  • i_path_destination (str) –

  • i_overwrite (bool) –

Returns

None

copy_folder(i_source_path, i_destination_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CopyFolder(CATBSTR iSourcePath,
CATBSTR iDestinationPath)

Recursively copies a folder from one location to another. Role: The folder
is copied along with its files, and all its subfolders and their own
files.

Parameters:

iSourcePath
The full path of the source folder.
iDestinationPath
The full destination path where the source folder, its files, and
its subfolders are to be copied.

Example:
This example copies the folder “C:/Tests/Fold1” to
“C:/Tests/Fold2” of the file system object
FileSys.

FileSys.CopyFolder(“C:/Tests/Fold1”,
“C:/Tests/Fold2”)
Parameters
  • i_source_path (str) –

  • i_destination_path (str) –

Returns

None

create_file(i_path, i_overwrite)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateFile(CATBSTR iPath,
boolean iOverwrite) As File

Creates a file and returns the associated file object.

Parameters:

iPath
The full path where the file is to be created.
iOverwrite
Boolean value that is True if an existing file with the same name
can be overwritten; False if it is not, and the creation doesn’t take place.


Returns:
The created file

Example:
This example creates the file C:/Tests/File1 and retrieves it in
the file object FileObj from the file system object FileSys, except if a file
with the name C:/Tests/File1 already exists.

Dim FileObj As File
Set FileObj = FileSys.CreateFile(“C:/Tests/File1”, False)
Parameters
  • i_path (str) –

  • i_overwrite (bool) –

Returns

File

create_folder(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateFolder(CATBSTR iPath) As Folder

Creates a folder and returns the associated folder object.

Parameters:

iPath
The full path where the folder is to be created.

Returns:
The created folder object. If the folder already exists, the method
fails.

Example:
This example creates the folder “C:/Tests/Fold1” and retrieves it
in FoldObj from the FileSystem FileSys.

Dim FoldObj As Folder
Set FoldObj = FileSys.CreateFolder(“C:/Tests/Fold1”)
Parameters

i_path (str) –

Returns

Folder

delete_file(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub DeleteFile(CATBSTR iPath)

Deletes a file.
The method fails if the folder doesn’t exist.

Parameters:

iPath
The full path of the file to delete.

Example:
This example deletes the file “C:/Tests/File” from the file
system object FileSys.

FileSys.DeleteFile(“C:/Tests/File1”)
Parameters

i_path (str) –

Returns

None

delete_folder(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub DeleteFolder(CATBSTR iPath)

Deletes a folder.
The method fails if the folder doesn’t exist.

Parameters:

iPath
The full path of the folder to delete.

Example:
This example deletes the folder “C:/Tests/Fold1” from the
FileSystem FileSys.

FileSys.DeleteFolder(“C:/Tests/Fold1”)
Parameters

i_path (str) –

Returns

None

file_exists(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func FileExists(CATBSTR iPath) As boolean

Returns whether a given file exists.
True if the file exists.

Parameters:

iPath
The full path of the file.

Example:
This example retrieves in Exists whether the file
“C:/Tests/File1” exists in the file system object
FileSys.

Dim Exists As Boolean
Exists = FileSys.FileExists(“C:/Tests/File1”)
Parameters

i_path (str) –

Returns

bool

property file_separator

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FileSeparator() As CATBSTR (Read Only)

Returns the file separator string. (usually, // on Windows and / on
UNIX)

Parameters:

oTmpDirectory
The file separator string.
Returns

str

folder_exists(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func FolderExists(CATBSTR iPath) As boolean

Returns whether a given folder exists.
True if the folder exists.

Parameters:

iPath
The full path of the folder.

Example:
This example retrieves in Exists whether the folder
“C:/Tests/Fold1” exists in the file system object
FileSys.

Dim Exists As Boolean
Exists=FileSys.FolderExists(“C:/Tests/Fold1”)
Parameters

i_path (str) –

Returns

bool

get_file(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFile(CATBSTR iPath) As File

Returns a file using its full path.
The method fails if the folder doesn’t exist.

Parameters:

iPath
The full path of the file to retrieve.

Example:
This example retrieves the file C:/Tests in the FileObj from
the file system object FileSys.

Dim FileObj As File
Set FileObj = FileSys.GetFile(“C:/Tests”)
Parameters

i_path (str) –

Returns

File

get_folder(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFolder(CATBSTR iPath) As Folder

Returns a folder using its full path.

Parameters:

iPath
The full path of the folder to retrieve.

Returns:
The retrieved folder. If the folder doesn’t exist, the method
fails.

Example:
This example retrieves the C:Tests folder in FoldObj from the file
system object FileSys.

Dim FoldObj As Folder
Set FoldObj = FileSys.GetFolder(“C:/Tests/”)
Parameters

i_path (str) –

Returns

Folder

property path_separator

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PathSeparator() As CATBSTR (Read Only)

Returns the path separator string. (usually,; on Windows and : on UNIX)

Parameters:

oTmpDirectory
The path separator string.
Returns

str

property temporary_directory

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TemporaryDirectory() As Folder (Read Only)

Returns the temporary system directory. (usually, C://temp on Windows and
/tmp on UNIX)

Parameters:

oTmpDirectory
A folder which corresponds to the temporary system
directory.
Returns

Folder

files

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.in_interfaces.files.Files(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
Files

A collection of all the file objects in a folder.
It lists all the files contained in the folder. It allows to retrieve File
objects.
item(i_number)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(long iNumber) As File

Returns a file using its index or its name from the file
collection.

Parameters:

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


AnyObject.Name property.
Returns:
The retrieved file
Example:
This example retrieves in ThisFile the third file, and it ThatFile the
file named MyFile. in the TestFiles file collection.

Dim ThisFile As File
Set ThisFile = TestFiles.Item(3)
Dim ThatFile As File
Set ThatFile = TestFiles.Item(“MyFile”)
Parameters

i_number (int) –

Returns

File

folder

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.in_interfaces.folder.Folder(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.FileComponent
Folder

Represents the folder object.
It allows you to manipulate folders and gives access to information about
them.
property files

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Files() As Files (Read Only)

Returns the file collection of the folder.

Example:
This example retrieves in TestFiles the file collection of the folder
TestFolder.

Dim TestFiles As Files
Set TestFiles = TestFolder.Files
Returns

Files

property sub_folders

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SubFolders() As Folders (Read Only)

Returns the folder collection of the folder.

Example:
This example retrieves in TestSubFolders the folder colection of the
folder TestFolder.

Dim TestSubFolders As CATIAFolders
Set TestSubFolders = TestFolder.SubFolders
Returns

Folders

folders

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.in_interfaces.folders.Folders(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
Folders

The folders object belongs to a folder.
It lists all the folders contained in the folder. It allows to retrieve Folder
objects.
item(i_number)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(long iNumber) As Folder

Returns a folder using its index or its name from the folder
collection.

Parameters:

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

AnyObject.Name property.
Returns:
The retrieved folder
Example:
This example retrieves in ThisFolder the third folder, and it
ThatFolder the folder named MyFolder. in the TestFolders folder
collection.

Dim ThisFolder As Folder
Set ThisFolder = TestFolders.Item(3)
Dim ThatFolder As Folder
Set ThatFolder = TestFolders.Item(“MyFolder”)
Parameters

i_number (int) –

Returns

Folder

general_session_setting_att

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.in_interfaces.general_session_setting_att.GeneralSessionSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
GeneralSessionSettingAtt

Setting controller for the General property tab page.
Role: This interface is implemented by a component which represents the
controller of the general settings.
property auto_save

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutoSave() As CATGenDataSave

Returns the data save parameter.
Returns

enum cat_gen_data_save

property conferencing

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Conferencing() As CATGenConferencing

Returns the conference driver parameter.
Returns

enum cat_gen_conferencing

property drag_drop

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DragDrop() As boolean

Returns the drag & drop parameter.
Returns

bool

get_auto_save_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAutoSaveInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the data save
parameter.
Role:Retrieves the state of the data save parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_conferencing_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetConferencingInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the conference driver
parameter.
Role:Retrieves the state of the conference driver parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_drag_drop_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDragDropInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the drag & drop
parameter.
Role:Retrieves the state of the drag & drop parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_ref_doc_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRefDocInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the referenced documents
parameter.
Role:Retrieves the state of the referenced documents parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_ui_style_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUIStyleInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the user interface style
parameter.
Role:Retrieves the state of the user interface style parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property ref_doc

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RefDoc() As boolean

Returns the referenced documents parameter.
Returns

bool

set_auto_save_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAutoSaveLock(boolean iLocked)

Locks or unlocks the data save parameter.
Role:Locks or unlocks the data save parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_conferencing_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetConferencingLock(boolean iLocked)

Locks or unlocks the conference driver parameter.
Role:Locks or unlocks the conference driver parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_drag_drop_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDragDropLock(boolean iLocked)

Locks or unlocks the drag & drop parameter.
Role:Locks or unlocks the drag & drop parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_ref_doc_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRefDocLock(boolean iLocked)

Locks or unlocks the referenced documents parameter.
Role:Locks or unlocks the referenced documents parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_ui_style_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUIStyleLock(boolean iLocked)

Locks or unlocks the user interface style parameter.
Role:Locks or unlocks the user interface style parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

property time_roll

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TimeRoll() As long

Returns the data save parameter (in milliseconds).
Returns

int

property ui_style

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UIStyle() As CATGenUIStyle

Returns the user interface style parameter.
Returns

enum cat_gen_ui_style

light_source

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.in_interfaces.light_source.LightSource(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
GeneralSessionSettingAtt

Setting controller for the General property tab page.
Role: This interface is implemented by a component which represents the
controller of the general settings.
property auto_save

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutoSave() As CATGenDataSave

Returns the data save parameter.
Returns

enum cat_gen_data_save

property conferencing

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Conferencing() As CATGenConferencing

Returns the conference driver parameter.
Returns

enum cat_gen_conferencing

property drag_drop

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DragDrop() As boolean

Returns the drag & drop parameter.
Returns

bool

get_auto_save_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAutoSaveInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the data save
parameter.
Role:Retrieves the state of the data save parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_conferencing_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetConferencingInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the conference driver
parameter.
Role:Retrieves the state of the conference driver parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_drag_drop_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDragDropInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the drag & drop
parameter.
Role:Retrieves the state of the drag & drop parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_ref_doc_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRefDocInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the referenced documents
parameter.
Role:Retrieves the state of the referenced documents parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_ui_style_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUIStyleInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the user interface style
parameter.
Role:Retrieves the state of the user interface style parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property ref_doc

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RefDoc() As boolean

Returns the referenced documents parameter.
Returns

bool

set_auto_save_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAutoSaveLock(boolean iLocked)

Locks or unlocks the data save parameter.
Role:Locks or unlocks the data save parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_conferencing_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetConferencingLock(boolean iLocked)

Locks or unlocks the conference driver parameter.
Role:Locks or unlocks the conference driver parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_drag_drop_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDragDropLock(boolean iLocked)

Locks or unlocks the drag & drop parameter.
Role:Locks or unlocks the drag & drop parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_ref_doc_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRefDocLock(boolean iLocked)

Locks or unlocks the referenced documents parameter.
Role:Locks or unlocks the referenced documents parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_ui_style_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUIStyleLock(boolean iLocked)

Locks or unlocks the user interface style parameter.
Role:Locks or unlocks the user interface style parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

property time_roll

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TimeRoll() As long

Returns the data save parameter (in milliseconds).
Returns

int

property ui_style

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UIStyle() As CATGenUIStyle

Returns the user interface style parameter.
Returns

enum cat_gen_ui_style

light_sources

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.in_interfaces.light_sources.LightSources(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
LightSources

A collection of all the LightSource objects.
This collection is currently managed by a Viewer3D object.
add()

Note

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

Adds a new light source to the LightSources collection.

Example:
The following adds a light source to the collection attached to the active
viewer. This viewer must be a @see Viewer3D object.

Dim MyViewer As Viewer
Set MyViewer = CATIA.ActiveWindow.ActiveViewer
Dim MyLightSource As LightSource
Set MyLightSource = MyViewer.LightSources.Add
Returns

LightSource

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(long iIndex) As LightSource

Returns a light source from its index in the LightSources
collection.

Parameters:

iIndex
The index of the light source to retrieve in the collection of
light sources. Compared with other collections, you cannot use the name of the
light source as argument.

Returns:
The retrieved light source

Example:
The following example returns in MyLightSource the sixth light source in
the collection.

Dim MyLightSource As LightSource
Set MyLightSource = LightSources.Item(6)
Parameters

i_index (int) –

Returns

LightSource

remove(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(long iIndex)

Removes a light source from the LightSources collection.

Parameters:

iIndex
The index of the light source to remove. Compared with other
collections, you cannot use the name of the light source as argument.


Example:
The following example removes the second light source in the collection
attached to the active viewer. This viewer must be a

Viewer3D object.

Dim MyViewer As Viewer
Set MyViewer = CATIA.ActiveWindow.ActiveViewer
MyViewer.LightSources.Remove(2)
Parameters

i_index (int) –

Returns

None

macros_setting_att

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.in_interfaces.macros_setting_att.MacrosSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
MacrosSettingAtt

Setting controller for the Macros tab page.
get_default_macro_libraries()

Note

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

Returns the list of default macro libraries.
Returns

tuple

get_default_macro_libraries_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultMacroLibrariesInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the default macro libraries
setting.
Role:Retrieves the state of the parameter default macro libraries setting
in the current environment.

Parameters:

AdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.
oModified
Indicates if the parameter has been explicitly modified or remain
to the administrated value.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

get_external_references()

Note

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

Returns the list of external references.
Returns

tuple

get_external_references_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExternalReferencesInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the external references
setting.
Role:Retrieves the state of the parameter external references setting in
the current environment.

Parameters:

AdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.
oModified
Indicates if the parameter has been explicitly modified or remain
to the administrated value.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

get_language_editor(i_language)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLanguageEditor(CATScriptLanguage iLanguage) As
CATBSTR

Returns the editor path for the specified language.
Parameters

i_language (CATScriptLanguage) –

Returns

str

get_language_editor_info(admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLanguageEditorInfo(CATBSTR AdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the language editors
setting.
Role:Retrieves the state of the parameter language editors setting in the
current environment.

Parameters:

AdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.
oModified
Indicates if the parameter has been explicitly modified or remain
to the administrated value.
Parameters
  • admin_level (str) –

  • o_locked (str) –

Returns

bool

set_default_macro_libraries(i_libraries)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultMacroLibraries(CATSafeArrayVariant
iLibraries)

Sets the list of default macro libraries.
Parameters

i_libraries (tuple) –

Returns

None

set_default_macro_libraries_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultMacroLibrariesLock(boolean iLocked)

Locks or unlocks the default macro libraries setting.
Role:Locks or unlocks the default macro libraries setting if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
True : to lock the parameter.
False: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_external_references(i_references)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExternalReferences(CATSafeArrayVariant iReferences)

Sets the list of external references.
Parameters

i_references (tuple) –

Returns

None

set_external_references_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExternalReferencesLock(boolean iLocked)

Locks or unlocks the external references setting.
Role:Locks or unlocks the external references setting if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
True : to lock the parameter.
False: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_language_editor(i_language, i_editor_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLanguageEditor(CATScriptLanguage iLanguage,
CATBSTR iEditorPath)

Sets the editor path for the specified language.
Parameters
  • i_language (CATScriptLanguage) –

  • i_editor_path (str) –

Returns

None

set_language_editor_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLanguageEditorLock(boolean iLocked)

Locks or unlocks the language editors setting.
Role:Locks or unlocks the language editors setting if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
True : to lock the parameter.
False: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

move

class pycatia.in_interfaces.move.Move(com_object)

Note

CAA V5 Visual Basic help

Represents an object associated with any kind of objects which
retrieves the corresponding movable object.An object can be moved only
if it is independent from other objects. For example, a pad can be
moved, and is as such a movable object, while an edge cannot be moved
individually. It should be moved with all the objects making up the
pad to which it belongs as a whole. In this case, the underlying
edge’s movable object is the pad.
apply(i_transformation_array)

Note

CAA V5 Visual Basic help

Apply
o Sub Apply(iTransformationArray)

Applies a move transformation to a movable object.

Parameters:
TransformationArray
The linear transformation array initialized successively by the
four columns of the transformation matrix.
The first nine components represent the rotation matrix.
The last three components represent the translation vector.

Examples:
This example applies the transformation (45 degrees-rotation
around the x axis and a translation) stored in
TransformationArray to the Move object associated with
myMovableObject:
Dim TransformationArray( 11 )
‘Rotation( 45 degrees around the x axis) components
TransformationArray( 0 ) = 1.000
TransformationArray( 1 ) = 0
TransformationArray( 2 ) = 0
TransformationArray( 3 ) = 0
TransformationArray( 4 ) = 0.707
TransformationArray( 5 ) = 0.707
TransformationArray( 6 ) = 0
TransformationArray( 7 ) = -0.707
TransformationArray( 8 ) = 0.707
‘Translation Vector (10,20,30)
TransformationArray( 9 ) = 10.000
TransformationArray( 10 ) = 20.000
TransformationArray( 11 ) = 30.000
MyMovableObject.Move.Apply TransformationArray
Parameters

i_transformation_array

Returns

property movable_object

Note

CAA V5 Visual Basic help

MovableObject
o Property MovableObject() As (Read Only)

Returns the movable object associated with the used object.
Example: This example retrieves the myMovableObject from
Move object associated with MyObject. Dim myMovableObject As
Move Set myMovableObject = MyObject.Move.MovableObject

Returns

page_setup

class pycatia.in_interfaces.page_setup.PageSetup(com_object)

Note

CAA V5 Visual Basic help

Represents the page setup.The page setup is the object that stores
data which defines how yourdocuments and images are actually printed
on paper.This data includes namely the paper size, the orientation,the
bottom, top, right, and left margins, the zoom factor, the banner,and
the printing quality.
property banner

Note

CAA V5 Visual Basic help

Banner
o Property Banner() As

Returns or sets the banner text. The banner text is added
to the print and can include variables, such as the user
who prints, the date and time of printing. Available
variables are: $USER The user name
$HOST The workstation name $SCALE
The print scale $TIME The print time
$DATE The print date $DAY
The print day $MONTH The print month
$YEAR The print year The default banner is:
Printed by $USER on $DATE $TIME Example: This
example sets the banner text to the following:
Printed by $USER at scale $SCALE on $MONTH/$DAY/$YEAR
for the SetupForMyPrint page setup.
SetupForMyPrint.Banner = “Printed by $USER at scale $SCALE on
$MONTH/$DAY/$YEAR”
Returns

str

property banner_position

Note

CAA V5 Visual Basic help

BannerPosition
o Property BannerPosition() As

Returns or sets the banner position. The banner can be
located on the top, bottom, left, or right side of the
page. catBannerPositionNone removes the banner.

Example:
This example sets the banner on the
top side of the page for the SetupForMyPrint
page setup.
SetupForMyPrint.BannerPosition = CatBannerPositionTop
Returns

int

property banner_size

Note

CAA V5 Visual Basic help

BannerSize
o Property BannerSize() As

Returns or sets Banner Size. Banner size could
range from 0.1 mm to 10.0 mm Default value is 2.4 mm

Example:
This example sets banner size for the
SetupForMyPrint page setup.
SetupForMyPrint.BannerSize = 1.1
Returns

float

property bottom

Note

CAA V5 Visual Basic help

Bottom
o Property Bottom() As

Returns or sets the lower left corner location with respect to the
bottom of the sheet of paper.
This is the distance of the document or the image to print
lower left corner to the paper lower left corner.

Example:
This example sets the location
of the lower left corner of the document
or the image to print at 40 mm from the paper lower left corner
for the SetupForMyPrint page setup.
SetupForMyPrint.Bottom = 40
Returns

float

property bottom_margin

Note

CAA V5 Visual Basic help

BottomMargin
o Property BottomMargin() As

Returns or sets the bottom margin. The
bottom margin is a strip in which nothing is printed, located
at the bottom of the page, which height is expressed in mm.

Example:
This example sets the
bottom margin for the SetupForMyPrint
page setup to 10 mm.
SetupForMyPrint.BottomMargin = 10
Returns

property color

Note

CAA V5 Visual Basic help

Color
o Property Color() As

Returns or sets the color mode to use when printing.

Example:
This example sets the
color mode to GreyScale for the
SetupForMyPrint page setup.
SetupForMyPrint.Color = catColorGreyScale
Returns

int

property dpi

Note

CAA V5 Visual Basic help

Dpi
o Property Dpi() As

Returns or sets the printing dpi.

Example:
This example sets the printing dpi for the SetupForMyPrint page setup.
SetupForMyPrint.Dpi = 150.
Returns

float

property gamma

Note

CAA V5 Visual Basic help

Gamma
o Property Gamma() As

Returns or sets Gamma factor for print.
Gamma value could range from 0.1 to 5.0
Default value is 1.0

Example:
This example sets Gamma factor for the SetupForMyPrint page setup.
SetupForMyPrint.Gamma = 1.2
Returns

float

property left

Note

CAA V5 Visual Basic help

Left
o Property Left() As

Returns or sets the lower left corner location with respect to the
left of the sheet of paper.
This is the distance of the document or the image to print
lower left corner to the paper lower left corner.

Example:
This example sets the location of the lower left corner of the
document or the image to print at 25 mm from the paper lower left corner
for the SetupForMyPrint page setup.
SetupForMyPrint.Left = 25
Returns

float

property left_margin

Note

CAA V5 Visual Basic help

LeftMargin
o Property LeftMargin() As

Returns or sets the left margin.
The left margin is a strip in which nothing is printed, located
at the left of the page, which width is expressed in mm.

Example: This example sets the left margin for the SetupForMyPrint
page setup to 10 mm.
SetupForMyPrint.LeftMargin = 10
Returns

float

property line_cap

Note

CAA V5 Visual Basic help

LineCap
o Property LineCap() As

Returns or sets Line cap for print.
Refer to
Default value is catPrintFlat
Example:

This example sets Line cap for the SetupForMyPrint page setup.
SetupForMyPrint.LineCap = catPrintFlat
Returns

int

property line_type_overlapping_check

Note

CAA V5 Visual Basic help

LineTypeOverlappingCheck
o Property LineTypeOverlappingCheck() As

Returns or sets text Line type overlap check option for
print.
Default value is FALSE

Example:
This example sets Line type overlapping check option
for the SetupForMyPrint page setup.
SetupForMyPrint.LineTypeOverlappingCheck = True
Returns

bool

property line_type_specification

Note

CAA V5 Visual Basic help

LineTypeSpecification
o Property LineTypeSpecification() As

Returns or sets Line type specification for print.
Refer to
Default value is catPrintAbsolute

Example:
This example sets Line type specification
for the SetupForMyPrint page setup.
SetupForMyPrint.LineTypeSpecification = catPrintAbsolute
Returns

int enumeration_type

property line_width_specification

Note

CAA V5 Visual Basic help

LineWidthSpecification
o Property LineWidthSpecification() As

Returns or sets Line width specification for print.
Refer to
Default value is catPrintAbsolute

Example:
This example sets Line width specification
for the SetupForMyPrint page setup.
SetupForMyPrint.LineWidthSpecification = catPrintAbsolute
Returns

int enumeration_type

Note

CAA V5 Visual Basic help

Logo
o Property Logo() As

Returns or sets the file containing the logo
image.
The logo is printed with the banner.
Example:
This example sets the logo file to the
following file:
e://users//psr//Images//Logo.tif
for the SetupForMyPrint page
setup.
SetupForMyPrint.Logo = “e://users//psr//Images//Logo.tif”
Returns

str

property logo_visibility

Note

CAA V5 Visual Basic help

LogoVisibility
o Property LogoVisibility() As

Returns or sets LogoVisibility option for
print.
Default value is FALSE

Example:
This example sets LogoVisibility option for the SetupForMyPrint page setup.
SetupForMyPrint.LogoVisibility = True
Returns

bool

property maximum_size

Note

CAA V5 Visual Basic help

MaximumSize
o Property MaximumSize() As

Returns or sets whether the document or the image should be printed
at the maximum size with respect to the page size and margins.
True if the document or the image is printed with the maximum
size. This overrides the location properties,
that is Left and Bottom, and the Zoom property values.

Example:
This example requests to print the document or the image with
the SetupForMyPrint page setup at maximum size.
SetupForMyPrint.MaximumSize = True
Returns

property orientation

Note

CAA V5 Visual Basic help

Orientation
o Property Orientation() As

Returns or sets the paper orientation.
Example:
This example sets the paper orientation for the SetupForMyPrint
page setup to catPaperLandscape.
SetupForMyPrint.Orientation = catPaperLandscape
Returns

int enumeration_type

property paper_height

Note

CAA V5 Visual Basic help

PaperHeight
o Property PaperHeight() As

Returns or sets the paper height.

Example:
This example sets the
page height for the SetupForMyPrint
page setup to 297 mm..
SetupForMyPrint.PaperHeight = 297
Returns

float

property paper_size

Note

CAA V5 Visual Basic help

PaperSize
o Property PaperSize() As

Returns or sets the paper
size.

Example:
This example sets the page size for the SetupForMyPrint
page setup to catPaperA4.
SetupForMyPrint.PaperSize = catPaperA4
Returns

property paper_width

Note

CAA V5 Visual Basic help

PaperWidth
o Property PaperWidth() As
Returns or sets the
paper width.

Example: This example sets the page width for the SetupForMyPrint
page setup to 210 mm..
SetupForMyPrint.PaperWidth = 210
Returns

int

property print_rendering_mode

Note

CAA V5 Visual Basic help

PrintRenderingMode
o Property PrintRenderingMode() As

Returns or sets theprinting rendering mode.

Example:
This example sets the printing rendering mode for the SetupForMyPrint
page setup.
SetupForMyPrint.PrintRenderingMode = CatPrintRenderingModeDefault
Returns

int enumeration_type

property quality

Note

CAA V5 Visual Basic help

Quality
o Property Quality() As

Returns or sets the printing quality.
Refer to

Example:
This example sets the printing quality to draft for the
SetupForMyPrint page setup.

SetupForMyPrint.Quality = catPrintQualityDraft
Returns

int enumeration_type

property right_margin

Note

CAA V5 Visual Basic help

RightMargin
o Property RightMargin() As

Returns or sets the right margin. The right margin is a strip in which
nothing is printed, located at the right of the page, which width is
expressed in mm.

Example:
This example sets the right margin for the SetupForMyPrint page setup
to 12 mm.
SetupForMyPrint.RightMargin = 12
Returns

int

property rotation

Note

CAA V5 Visual Basic help

Rotation
o PropertyRotation()As

Returns or sets the rotation of the document or the image to print.
Rotations angles can be 0, 90, 180, and 270 degrees counted clockwise.

Example:
This example sets the rotation to 90 degrees clockwise for the
SetupForMyPrint page setup.
SetupForMyPrint.Rotation = catImageRotation90
Returns

int

property scaling_to1

Note

CAA V5 Visual Basic help

Scaling1To1
o Property Scaling1To1() As

Returns or sets whether the document or the image should be printed with a
zoom factor equals to 1 and the image to print lower left corner on the paper
lower corner.

True if the document or the image is printed with the zoom factor equals to
1 and the image to print lower left corner on the paper lower corner.
This overrides the location properties, that is Left and Bottom, and the
Zoom property values.

Example:
This example requests to print the document or the image with the SetupForMyPrint page setup.
SetupForMyPrint.Scaling1To1 = True
Returns

bool

property text_blanking

Note

CAA V5 Visual Basic help

TextBlanking
o Property TextBlanking() As

Returns or sets the text blanking option in print Text will
be printed in blanking rectangle
Default value is FALSE

Example:
This example sets the text blanking option for the SetupForMyPrint
page setup.
SetupForMyPrint.TextBlanking = True
Returns

bool

property text_scaling

Note

CAA V5 Visual Basic help

TextScaling
o Property TextScaling() As

Returns or sets text scaling option for print.
Default value is TRUE

Example:
This example sets text scaling option for the SetupForMyPrint page setup.
SetupForMyPrint.TextScaling = True
Returns

bool

property top_margin

Note

CAA V5 Visual Basic help

TopMargin
o Property TopMargin() As

Returns or sets the top margin. The top margin is a strip in which
nothing is printed, located at the top of the page, which height is expressed in mm.
Example:
This example sets the top margin for the SetupForMyPrint page setup to 15 mm.
SetupForMyPrint.TopMargin = 15
Returns

float

property use_3d_accuracy

Note

CAA V5 Visual Basic help

Use3DAccuracy
o Property Use3DAccuracy()As

Returns or sets Use3DAccuracy option for print.
Default value is FALSE

Example:
This example sets Use3DAccuracy option for the SetupForMyPrint page setup.
SetupForMyPrint.Use3DAccuracy = True
Returns

bool

property use_image_size

Note

CAA V5 Visual Basic help

UseImageSize
o Property UseImageSize() As

Returns or sets the paper size to the image size.

Example:
This example sets the paper size to image size for the
SetupForMyPrint page setup.
SetupForMyPrint.UseImageSize = True
Returns

bool

property white_vectors_in_black

Note

CAA V5 Visual Basic help

WhiteVectorsInBlack
o Property WhiteVectorsInBlack() As

Returns or sets the white vectors in black option.
white vectors will be printed in black if set to True Default value is TRUE

Example:
This example sets the Print White Vectors In Black option for
the SetupForMyPrint page setup.
SetupForMyPrint.WhiteVectorsInBlack = True
Returns

bool

property zoom

Note

CAA V5 Visual Basic help

Zoom
o Property Zoom() As

Returns or sets the zoom factor to use when printing.

Example:
This example sets the zoom factor to 1.5 for the SetupForMyPrint page setup.
SetupForMyPrint.Zoom = 1.5
Returns

float

position

class pycatia.in_interfaces.position.Position(com_object)

Note

CAA V5 Visual Basic help

Represents the position object.
The position object is the 3D-axis system associated with an object.
get_components()

Note

CAA V5 Visual Basic help

Returns the components of an object’s position. This returns the 3D-axis system associated with the object.

Parameters: oAxisComponentsArray

The array used to store the twelve components retrieved from the objet’s position. The first nine represent successively the components of the x-axis, y-axis, and z-axis. The last three represent the coordinates of the origin point. | Example: | This example retrieves in oAxisComponentsArray the 3D-axis system components from the Position object | associated with MyObject: | Dim oAxisComponentsArray ( 11 ) | MyObject.Position.GetComponents oAxisComponentsArray

Returns

set_components()

Note

CAA V5 Visual Basic help

Sets the components of an object’s position. This sets the 3D-axis system associated with the object.

Parameters: iAxisComponentsArray The array initialized with the components to set to the object’s position. The first nine represent succcessively the components of the x-axis, y-axis, and z-axis. The last three represent the coordinates of the origin point.

Example:
This example sets the 3D-axis system components stored in iAxisComponentsArray to the Position object
associated with MyObject:
Dim iAxisComponentsArray( 11 )
‘ x axis components
iAxisComponentsArray( 0 ) = 1.000
iAxisComponentsArray( 1 ) = 0
iAxisComponentsArray( 2 ) = 0.707
‘ y axis components
iAxisComponentsArray( 3 ) = 0
iAxisComponentsArray( 4 ) = 0
iAxisComponentsArray( 5 ) = 0.707
‘ z axis components
iAxisComponentsArray( 6 ) = 0
iAxisComponentsArray( 7 ) = -0.707
iAxisComponentsArray( 8 ) = 0.707
‘ origin point coordinates
iAxisComponentsArray( 9 ) = 1.000
iAxisComponentsArray( 10 ) = 2.000
iAxisComponentsArray( 11 ) = 3.000
MyObject.Position.SetComponents iAxisComponentsArray
Returns

printer

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.in_interfaces.printer.Printer(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Printer

Represents a printer handled by the printing subsystem.
This object is read only and gives access to some properties of the
printer.
property device_name

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DeviceName() As CATBSTR (Read Only)

Returns the printer device name.

Example:
This example displays the device name of the myPrinter
printer.

MsgBox myPrinter.DeviceName
Returns

str

property orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Orientation() As CatPaperOrientation (Read Only)

Returns or sets the default paper orientation.

Example:
This example retrieves in DefaultPaperOrientation the default paper
orientation of the myPrinter printer.

Dim DefaultPaperOrientation As CatPaperOrientation
DefaultPaperOrientation = myPrinter.Orientation
Returns

enum cat_paper_orientation

property paper_height

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PaperHeight() As float (Read Only)

Returns the default paper height.

Example:
This example retrieves in Height the default paper height of the
myPrinter printer.

Dim Height
Height = myPrinter.PaperHeight
Returns

float

property paper_size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PaperSize() As CatPaperSize (Read Only)

Returns the default paper size.

Example:
This example retrieves in DefaultPaperSize the default paper size of
the myPrinter printer.

Dim DefaultPaperSize As CatPaperSize
DefaultPaperSize = myPrinter.PaperSize
Returns

enum cat_paper_size

property paper_width

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PaperWidth() As float (Read Only)

Returns the default paper width.

Example:
This example retrieves in Witdh the default paper width of the
myPrinter printer.

Dim Width As float
Width = myPrinter.PaperWidth
Returns

float

printers

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.in_interfaces.printers.Printers(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
Printers

A collection of all the Printer objects managed by the
application.
item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Printer

Returns a printer using its index or its device name from the Printers
collection.

Parameters:

iIndex
The index or the name of the printer to retrieve from the
collection of printers. As a numerics, this index is the rank of the printer in
the collection. The index of the first printer in the collection is 1, and the
index of the last printer is Count. As a string, it is the DeviceName of the
printer.

Returns:
The retrieved printer
Example:
This example returns in ThisPrinter the third printer in the
collection, and in ThatPrinter the printer named
LaserPrinter.

Dim ThisPrinter As Printer
Set ThisPrinter = CATIA.Printers.Item(3)
Dim ThatPrinter As Printer
Set ThatPrinter = CATIA.Printers.Item(“LaserPrinter”)
Parameters

i_index (CATVariant) –

Returns

Printer

printers_setting_att

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.in_interfaces.printers_setting_att.PrintersSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
PrintersSettingAtt

Represents a setting controller for the printer settings.
Role: This interface is implemented by a component which represents the
controller of the printer settings.
add_printer_directory(i_printer_dir, i_printer_dir_state)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddPrinterDirectory(CATBSTR iPrinterDir,
CatPrinterDirState iPrinterDirState)

Add a printer file directory to printer directories list and define its
state.

Parameters:

iPrinterDir
directory where some 3DPLM printers are defined.
The printers defined in this directory will be available for each
user.
iPrinterDirState
printer directory state.
Each directory can be protected to prevent user access to the
printers it contains.
The state could be protect or free.
If the state is CatPrinterDirProtect, the parameters of each
printer included in the directory cannot be
changed.
If the state is CatPrinterDirFree, the parameters of each printer
included in the directory can be changed, and the printers can be
removed.
Legal values:
CatPrinterDirProtect : the printers included in the directory are protected.
CatPrinterDirFree : the printers included in the directory are free.
Parameters
  • i_printer_dir (str) –

  • i_printer_dir_state (CatPrinterDirState) –

Returns

None

add_printer_group(i_printer_group_name, i_printer_names)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddPrinterGroup(CATBSTR iPrinterGroupName,
CATSafeArrayVariant iPrinterNames)

Add a printer group and define the printers included in this
group.

Parameters:

iPrinterGroupName
printer group name
iPrinterNames
array of printers included in the group.
Parameters
  • i_printer_group_name (str) –

  • i_printer_names (tuple) –

Returns

None

get_driver_configuration_path(o_driver_cfg_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDriverConfigurationPath(CATBSTR oDriverCfgPath)

Returns the driver configuration file.

Parameters:

oDriverCfgPath
path of the driver configuration file
Parameters

o_driver_cfg_path (str) –

Returns

None

get_driver_configuration_path_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDriverConfigurationPathInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the driver configuration
file.
Role: Retrieves the state of the driver configuration file in the current
environment.

Parameters:

oAdminLevel
If the parameter is locked, oAdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, oAdminLevel gives the
administration level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_new_printer_directory(o_new_printer_dir)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNewPrinterDirectory(CATBSTR oNewPrinterDir)

Returns the directory where new printers will be added.

Parameters:

oNewPrinterDir
directory to add new printers
Role: Each new printer created by an user is added in this
directory.
Parameters

o_new_printer_dir (str) –

Returns

None

get_new_printer_directory_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNewPrinterDirectoryInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the directory where printers will be
added.
Role: Retrieves the state of the directory where printers will be added in
the current environment.

Parameters:

oAdminLevel
If the parameter is locked, oAdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, oAdminLevel gives the
administration level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_printer_array_for_group(i_printer_group_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPrinterArrayForGroup(CATBSTR iPrinterGroupName) As
CATSafeArrayVariant

Returns the definition of the printer group.

Parameters:

iPrinterGroupName
printer group name

Returns:
array of printers included in the group.
Parameters

i_printer_group_name (str) –

Returns

tuple

get_printer_directories()

Note

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

Returns the directories of printer files.

Returns:
array of directories where 3DPLM printers are defined.
Returns

tuple

get_printer_directories_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPrinterDirectoriesInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the directories of printer files and
their states.
Role: Retrieves the state of the directories of printer files and their
states in the current environment.

Parameters:

oAdminLevel
If the parameter is locked, oAdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, oAdminLevel gives the
administration level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_printer_directory_state(i_printer_dir)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPrinterDirectoryState(CATBSTR iPrinterDir) As
CatPrinterDirState

Returns the state of the directory of printer files.

Parameters:

iPrinterDir
directory where some 3DPLM printers are defined.

Returns:
printer directory state.
Each directory can be protected to prevent user access to the printers
it contains.
The state could be protect or free.
If the state is CatPrinterDirProtect, the parameters of each printer
included in the directory cannot be changed.
If the state is CatPrinterDirFree, the parameters of each printer
included in the directory can be changed, and the printers can be
removed.
Legal values:
CatPrinterDirProtect : the printers included in the directory are protected.
CatPrinterDirFree : the printers included in the directory are free.
Parameters

i_printer_dir (str) –

Returns

enum cat_printer_dir_state

get_printer_groups()

Note

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

Returns the printer groups.

Returns:
array of printer group names
Returns

tuple

get_printer_groups_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPrinterGroupsInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves environment informations for the definition of each printer
group.
Role: Retrieves the state of the definition of each printer group in the
current environment.

Parameters:

oAdminLevel
If the parameter is locked, oAdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, oAdminLevel gives the
administration level that will give the value of the parameter after a reset.

oLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

modify_printer_array_for_group(i_printer_group_name, i_printer_names)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ModifyPrinterArrayForGroup(CATBSTR iPrinterGroupName,
CATSafeArrayVariant iPrinterNames)

Modify a printer group: redefine the array of printers included in this
group.

Parameters:

iPrinterGroupName
printer group name
iPrinterNames
array of printers included in the group.
Parameters
  • i_printer_group_name (str) –

  • i_printer_names (tuple) –

Returns

None

modify_printer_directory_state(i_printer_dir, i_printer_dir_state)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ModifyPrinterDirectoryState(CATBSTR iPrinterDir,
CatPrinterDirState iPrinterDirState)

Modify a printer file directory state.

Parameters:

iPrinterDir
directory where some 3DPLM printers are defined.
iPrinterDirState
printer directory state.
Each directory can be protected to prevent user access to the
printers it contains.
The state could be protect or free.
If the state is CatPrinterDirProtect, the parameters of each
printer included in the directory cannot be
changed.
If the state is CatPrinterDirFree, the parameters of each printer
included in the directory can be changed, and the printers can be
removed.
Legal values:
CatPrinterDirProtect : the printers included in the directory are protected.
CatPrinterDirFree : the printers included in the directory are free.
Parameters
  • i_printer_dir (str) –

  • i_printer_dir_state (CatPrinterDirState) –

Returns

None

remove_all_printer_directories()

Note

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

Remove all the directories including printer files.
Returns

None

remove_all_printer_groups()

Note

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

Remove all the groups of printers.
Returns

None

remove_printer_directory(i_printer_dir)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemovePrinterDirectory(CATBSTR iPrinterDir)

Remove a directory of printer files from the directories
list.

Parameters:

iPrinterDir
directory where some 3DPLM printers are defined.
Parameters

i_printer_dir (str) –

Returns

None

remove_printer_group(i_printer_group_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemovePrinterGroup(CATBSTR iPrinterGroupName)

Remove a group of printers.

Parameters:

iPrinterGroupName
name of the group to remove.
Parameters

i_printer_group_name (str) –

Returns

None

set_driver_configuration_path(i_driver_cfg_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDriverConfigurationPath(CATBSTR iDriverCfgPath)

Sets the driver configuration file.

Parameters:

iDriverCfgPath
path of the driver configuration file
Parameters

i_driver_cfg_path (str) –

Returns

None

set_driver_configuration_path_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDriverConfigurationPathLock(boolean iLock)

Locks or unlocks the driver configuration file.
Role: Locks or unlocks the driver configuration file if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed
Legal values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_lock (bool) –

Returns

None

set_new_printer_directory(i_new_printer_dir)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewPrinterDirectory(CATBSTR iNewPrinterDir)

Sets the directory where new printers will be added.

Parameters:

iNewPrinterDir
directory to add new printers
Role: Each new printer created by an user is added in this
directory.
Parameters

i_new_printer_dir (str) –

Returns

None

set_new_printer_directory_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewPrinterDirectoryLock(boolean iLock)

Locks or unlocks the directory where printers will be
added.
Role: Locks or unlocks the directory where printers will be added if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed
Legal values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_lock (bool) –

Returns

None

set_printer_directories_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPrinterDirectoriesLock(boolean iLock)

Locks or unlocks the directories of printer files and their
states.
Role: Locks or unlocks the directories of printer files and their states if
it is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed
Legal values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_lock (bool) –

Returns

None

set_printer_groups_lock(i_lock)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPrinterGroupsLock(boolean iLock)

Locks or unlocks the definition of each printer group.
Role: Locks or unlocks the definition of each printer group if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed
Legal values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_lock (bool) –

Returns

None

reference

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.in_interfaces.reference.Reference(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Reference

Represents an object pointing to another object.
This other object can be either a wireframe GeometricElement object such as a
plane or a line, or a boundary representation object such as a face, a vertex
or an edge. It may be, in particular, a Boundary object. References are created
using appropriate methods for parts. They are then passed to an object to
enable associativity with the referenced object.
compose_with(i_reference)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func ComposeWith(Reference iReference) As Reference

Composes a reference with another reference thus creating a new composite
reference.

Parameters:

iReference
The reference to be composed with the current
reference.

Example:
The following example returns in CompositeRef the reference
resulting from the composition of the FirstRef and SecondRef
references.

Dim CompositeRef As Reference
Set CompositeRef = FirstRef.ComposeWith(SecondRef)
Parameters

i_reference (Reference) –

Returns

Reference

property display_name

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayName() As CATBSTR (Read Only)

Returns the name of the referenced object. The name of the referenced
object is either the name displayed in the specification tree for a
GeometricElement object or a character string defining the reference for a
boundary object.

Example:
The following example returns in StrName the displayable name of
reference FirstRef:

StrName = FirstRef.DisplayName
Returns

str

references

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.in_interfaces.references.References(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
References

A collection of all the references aggregated in an object.

See also:
Reference
item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Reference

Returns a reference using its index or its name from the References
collection.

Parameters:

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

AnyObject.Name property.
Returns:
The retrieved reference
Example:
This example retrieves the last item in the RefList reference
collection by means of the Count property.

Dim LastRef As Reference
Set LastRef = RefList.Item(RefList.Count)
Parameters

i_index (CATVariant) –

Returns

Reference

search_setting_att

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.in_interfaces.search_setting_att.SearchSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
SearchSettingAtt

Represents the setting controller for the Search property tab
page.
Role: The setting controller is the object that enables to get and set setting
parameters.
property deep_search_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DeepSearchActivation() As boolean

Returns or sets the Deep Search Activation attribute.
Role: The Deep Search Activation attribute manages the Deep Search option
available in the Search dialog box used to determine whether documents in
visualization mode must be transiently loaded during a search query
Returns

bool

property default_power_input_context_priority

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultPowerInputContextPriority() As boolean

Returns or sets the Default Power Input Context Priority
attribute.
Role: The Default Power Input Context Priority attribute manages whether
the default context scope must override the context scope stored in a favorite
query
Returns

bool

property default_power_input_context_scope

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultPowerInputContextScope() As
CATSearchContextScope

Returns or sets the Default Power Input Context Scope
attribute.
Role: The Default Power Input Context Scope attribute manages the default
context scope to be used when none is typed in the Power Input field
Returns

enum cat_search_context_scope

property default_power_input_prefix

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultPowerInputPrefix() As CATBSTR

Returns or sets the Default Power Input Prefix attribute.
Role: The Default Power Input Prefix attribute manages the default prefix
to be used when none is typed in the Power Input field
Returns

str

get_deep_search_activation_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDeepSearchActivationInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Deep Search Activation setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_default_power_input_context_priority_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultPowerInputContextPriorityInfo(CATBSTR
oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Default Power Input Context Priority
setting parameter.
Refer to SettingController for a detailed description.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_default_power_input_context_scope_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultPowerInputContextScopeInfo(CATBSTR
oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Default Power Input Context Scope setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_default_power_input_prefix_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultPowerInputPrefixInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Default Power Input Prefix setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_max_displayed_results_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMaxDisplayedResultsInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Max Displayed Results setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

get_max_pre_highlighted_elements_info(o_admin_level, o_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMaxPreHighlightedElementsInfo(CATBSTR oAdminLevel,
CATBSTR oLocked) As boolean

Retrieves information about the Max Displayed Results setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • o_admin_level (str) –

  • o_locked (str) –

Returns

bool

property max_displayed_results

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaxDisplayedResults() As long

Returns or sets the Max Displayed Results attribute.
Role: The Max Displayed Results attribute indicates the maximum number of
elements that can be displayed in the Search results page. Displaying too many
lines can stick more or less the results list so it is recommended to limit
this number.
Returns

int

property max_pre_highlighted_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaxPreHighlightedElements() As long

Returns or sets the Max Pre-Highlighted Elements
attribute.
Role: The Max Pre-Highlighted Elements attribute indicates the maximum
number of elements that can be displayed in the Search results page. Displaying
too many elements can stick the session so it is strongly recommended to limit
this number.
Returns

int

set_deep_search_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDeepSearchActivationLock(boolean iLocked)

Locks or unlocks the Deep Search Activation setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_default_power_input_context_priority_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultPowerInputContextPriorityLock(boolean
iLocked)

Locks or unlocks the Default Power Input Context Priority setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_default_power_input_context_scope_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultPowerInputContextScopeLock(boolean iLocked)

Locks or unlocks the Default Power Input Context Scope setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_default_power_input_prefix_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultPowerInputPrefixLock(boolean iLocked)

Locks or unlocks the Default Power Input Prefix setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_max_displayed_results_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMaxDisplayedResultsLock(boolean iLocked)

Locks or unlocks the Max Displayed Results setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_max_pre_highlighted_elements_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMaxPreHighlightedElementsLock(boolean iLocked)

Locks or unlocks the Max Displayed Results setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

selected_element

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.in_interfaces.selected_element.SelectedElement(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
SelectedElement

Represents an element contained by a Selection object.
This object is an object contained by a Selection object. The Selection object
contains SelectedElement objects, which are accessed through the
Selection.Count2 and Selection.Item2 methods.
property document

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Document() As Document (Read Only)

Returns the document to which the selected element belongs.
Returns

Document

get_coordinates(io_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetCoordinates(CATSafeArrayVariant ioPoint)

Returns the coordinates of the pick point.

Parameters:

oPoint
The coordinates of the pick point, i.e. the hit between the
geometric object and the cursor.
The length of this parameter will be 3, except if the document is a


DrawingDocument
Example:

This example retrieves the coordinates of the pick point in
the
array myArray:

Dim oSelElem As SelectedElement
Set oSelElem = CATIA.ActiveDocument.Selection.Item(1)
ReDim myArray(2)
oSelElem.GetCoordinates myArray
Parameters

io_point (tuple) –

Returns

None

property leaf_product

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LeafProduct() As AnyObject (Read Only)

Returns the leaf product corresponding to the selection in the
specification tree.
Role: Returns the leaf Product (component, corresponding for example to
“Product1.1” in the specification tree). The AnyObject returned is a Product if
a product appears in the specification tree, in the path corresponding to the
current selection, and a fake AnyObject whose AnyObject.Name property equals to
“InvalidLeafProduct” otherwise.
Cumulated with the use of the AnyObject.Parent property (which enables to
navigate into the object structure), the current property enables the scripter
to obtain the path, in the specification tree, corresponding to the
selection.

Example:

The following example supposes a

Part or a Product is opened. It asks the end user to select a Shape in the
current window. It then sends message boxes containing the names of the
automation objects contained in the specification tree path corresponding to
the shape selected, and, regarding the automation objects which are products
(only products which are components), a message box containing the abcissa of
the translation of the product compared to its reference
product.

Dim Status,Feature,LeafProduct,LeafProductProcessed,InputObjectType(0)
Dim Document,Selection,AutomationTreeNodeOrProduct,Position,AxisComponentsArray(11)
Set Document = CATIA.ActiveDocument : Set Selection = Document.Selection
‘We propose to the user that he select a feature
InputObjectType(0)=”AnyObject”
Status=Selection.SelectElement2(InputObjectType,”Select a
feature”,true)
if (Status = “Cancel”) then Exit Sub
Set Feature = Selection.Item(1).Value
Set LeafProduct = Selection.Item(1).LeafProduct
LeafProductProcessed = true
if (LeafProduct.Name<>”InvalidLeafProduct”) then LeafProductProcessed = false
Set AutomationTreeNodeOrProduct = Feature
do while
(TypeName(AutomationTreeNodeOrProduct)<>”Application”)
‘ We send a message box, if AutomationTreeNodeOrProduct is not nor a
Shapes object neither a PartDocument object
if ((TypeName(AutomationTreeNodeOrProduct)<>”Shapes”) And
_
(TypeName(AutomationTreeNodeOrProduct)<>”Bodies”) And
_
(TypeName(AutomationTreeNodeOrProduct)<>”PartDocument”) And
_
(TypeName(AutomationTreeNodeOrProduct)<>”Products”) And
_
(TypeName(AutomationTreeNodeOrProduct)<>”ProductDocument”))
then
msgbox AutomationTreeNodeOrProduct.Name
if (TypeName(AutomationTreeNodeOrProduct)=”Product”)
then
‘ We display a message box containing the abcissa of the
translation, except in the case of the
‘ root product
if
(TypeName(AutomationTreeNodeOrProduct.Parent.Parent)<>”Application”)
then
Set Position = AutomationTreeNodeOrProduct.Position
Call Position.GetComponents(AxisComponentsArray) | msgbox AxisComponentsArray(9)
end if
end if
end if
‘ We determine the next automation tree node or product
Set AutomationTreeNodeOrProduct = AutomationTreeNodeOrProduct.Parent
if ((TypeName(AutomationTreeNodeOrProduct)=”Application”) And (Not
LeafProductProcessed)) then
‘ The specification tree path corresponding to the selection contains
at least one product, which the current
‘ loop as not yet processed. It means that the parent in the
specification tree of the feature corresponding
‘ to the last message box sent is LeafProduct
Set AutomationTreeNodeOrProduct = LeafProduct
LeafProductProcessed = true
end if
loop

If you run the preceeding piece of script, the current document beeing a
product with the following specification tree:

+——–+
!Product3!
+—-+—+
!
+- Product2 (Product2.1) ‘translation value:
10
! !
! +- Product1 (Product1.1) ‘translation value:
20
! !
! +- Part1 (Part1.1)
! !
! +- Part1
! !
! +- PartBody
! !
! +- Pad.1
+- Part2 (Part2.1)

and you select Pad.1, the message boxes displayed will be:

Pad.1
PartBody
Part1
Part1.1
Product1.1
20
Product2.1
10
Product3
Returns

AnyObject

property reference

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Reference() As Reference (Read Only)

Returns a Reference version of the Value property.
Role: Returns a Reference version of Value .
Returns

Reference

property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CATBSTR (Read Only)

Returns the string constant which describes the selected element Automation
type.
This type is returned by the Value property, and may be, for instance “Pad”
or “Line2D”.
Caution: This property gives the leaf automation type of the object, in the
inheritance hierarchy. Nevertheless, after a call to Selection.SelectElement2 ,
Selection.SelectElement3 , Selection.SelectElement4 ,
Selection.IndicateOrSelectElement2D or Selection.IndicateOrSelectElement3D ,
this property gives the input filter string constant relative to the effective
selection (more precisely the first filter string constant delivered through
the iFilterType parameter, for which the current automation object fullfills
the string constant). This string constant may be an automation object name
corresponding to the iFilterType parameter with which Selection.SelectElement2
has previously been called, or even a CATSelectionFilter value
name.

Example:

Suppose you run the following piece of script:


Set Selection = CATIA.ActiveDocument.Selection
‘ We propose to the user that he select a Prism or a
Hole
ReDim InputObjectType(1) : InputObjectType(0)=”Prism” : InputObjectType(1)=”Hole”
Status=Selection.SelectElement2(InputObjectType,”Select a prism or a
hole”,true)
if (Status = “Cancel”) then Exit Sub
AutomationType = Selection.Item(1).Type


If the user selects a Pad, the script AutomationType variable will
contain “Prism”
and not “Pad”.


Consequently, in most cases, use the VBScript TypeName function instead
of this property.
Returns

str

property value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Value() As CATBaseDispatch (Read Only)

Returns the actual selected automation object.
Returns

AnyObject

selection

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-03 17:02:05.216737

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.in_interfaces.selection.Selection(com_object)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Selection

Represents the selection.
The Selection object contains the features the end user selected, usually with
the mouse, and which are candidates as subjects for the next
action.

A feature possess parent objects in the specification tree (hierarchy). For
example, the Pad below possess parent objects in the specification
tree:

+——–+
!Product3!
+——–+
!
+- Product2 (Product2.1)
! !
! +- Product1 (Product1.1)
! !
! +- Part1 (Part1.1)
! !
! +- Part1
! !
! +- PartBody
! !
+——————+
! +- Pad.1 ! Selected feature
!
! !
+——————+
! +- Sketch.1
+- Part2 (Part2.1)


For a given selected feature, its parent objects which are exposed to
automation can be accessed through a recursive call to the AnyObject.Parent
property. When a given feature is selected, there are three
possibilities:

The feature is exposed to automation (a Pad for example, this is the common
case): the feature can be accessed by all Selection object
methods
The feature is not exposed to automation, but at least one of its parent
objects is exposed to automation (a DMU Navigator URL for example: the
Hyperlink is not exposed to automation, but the root Product, which contains
the Hyperlink, is exposed to automation):
no access is given to the feature through the Count2 and Item2 methods
of the Selection object
nevertheless, the first parent object of the feature, which is exposed
to automation (the root Product in our example) can be accessed through the
Item2 and Count2 methods
The Search, Delete, VisProperties, Copy, Cut, Paste and PasteSpecial
methods of the Selection object, take into account the
feature.
For example, if the user:
Puts a DMU Navigator URL in the clipboard
Runs a script calling the PasteSpecial method
then, during the paste, the DMU Navigator URL will be
pasted
The feature is not exposed to automation, and he has no parent object which
is exposed to automation (a ResourcesList object of a .CATProcess for
example):
no access is given to the feature through the Count2 and Item2 methods
of the Selection object
no access is given neither to any parent object of the feature through
the Item2 and Count2 methods
The Search, Delete, VisProperties, Copy, Cut, Paste and PasteSpecial
methods of the Selection object take into account the
feature.
For example, if the user:
Go to the “DPM - Process and Resource Definition”
workshop
Puts a ResourcesList object in the clipboard
Runs a script calling the Selection.PasteSpecial
method
then, during the paste, the ResourcesList object will be
pasted.

Note: The Selection object can be accessed through the Document.Selection
property . However, when the active window contains the tree described above,
the Selection object to use is the one associated to the Product3 Document ,
which can be accessed through the application of the Document.Selection to this
document. You will, for example, determine the Selection object the following
way:

Set ActiveProductDocument = CATIA.ActiveDocument
Set Product3 = ActiveProductDocument.Product
Set Product3Products = Product3.Products
Set Product2Dot1 = Product3Products.Item(“Product2.1”) : Set Product2 = Product2Dot1.ReferenceProduct
Set ProductDocument2 = Product2.Parent
Set Product2Products = Product2.Products
Set Product1Dot1 = Product2Products.Item(“Product1.1”) : Set Product1 = Product1Dot1.ReferenceProduct
Set ProductDocument1 = Product1.Parent
Set Product1Products = Product1.Products
Set Part1Dot1 = Product1Products.Item(“Part1.1”) : Set Part1 = Part1Dot1.ReferenceProduct
Set PartDocument1 = Part1.Parent
Set Selection = ActiveProductDocument.Selection


Another Selection object, such as:

Set ProductDocument2Selection = ProductDocument2.Selection
Set ProductDocument1Selection = ProductDocument1.Selection
Set PartDocument1Selection = PartDocument1.Selection


(lets take ProductDocument2Selection for example) can only be used if, among
the different Window , there is at least one whose root Document is
ProductDocument2 . Otherwise, results are unpredictable.
add(i_object=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Add(AnyObject iObject)

Creates a SelectedElement object which Value property is the given
automation object, and adds it to the selection.
Note: In a product structure aggregating a “Part1 (Part1.1)” Part document,
if you double-clic Part1 in the spectification tree:

the “Part Design” workbench becomes active
the Part1 node is inside a blue button

Here, Part1 is the UI Active Object.
Some editors, such as CatalogDocument editors, do not possess any UI Active
Object.
When this method is used in a CATAnalysis context, a CATPart (such as Part1
in our example) must be UI active. Otherwise, Selection.Add does not work
correctly (the 3D is not highlighted properly).
Role: Creates a SelectedElement object and adds it to the current
selection. Depending on the type of the parent Document of the Selection
object:

if it is one of the following:
CATIAPartDocument
CATIADrawingDocument
CATIAMaterialDocument
CATIAAnalysisDocument
CATIAFunctionalDocument
then, regarding the created SelectedElement , the SelectedElement.Value
property will be equal to iObject
Otherwise:
first case: the specification tree contains a
path:
whose leaf node is iObject
the UI Active Object belongs to the path
then, the method will create a SelectedElement object corresponding
to this path.
Otherwise: the method will create a SelectedElement object
corresponding to the first path, in the specification tree, whose leaf node is
iLeafNode

Example:
This example creates a SelectedElement object, which Value property is
the ObjectToAdd automation object, the SelectedElement being added to the
current selection.

CATIA.ActiveDocument.Selection.Add(ObjectToAdd)
Parameters

i_object (AnyObject) –

Returns

None

clear()

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Clear()

Clears the selection.

Example:
This example clears the selection. The selection is then
empty.

CATIA.ActiveDocument.Selection.Clear()
Returns

None

copy()

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Copy()

Copies, in a copy and paste operation.
Role: Puts the contents of the selection in the clipboard, but leaves the
selected elements in the document, and clears the selection. This is the
programming equivalent of the Copy command from the Edit
menu.
Note: The method (and the script execution) fails if one of the following
errors occurs:

The CSO is empty. The Copy operation could not be
performed.
No CSO element remains after the filtering through the UI active
object. The Copy operation could not be performed.

Note: If a selected feature is not exposed to automation, it will be copied
into the clipboard all the way.

Example:
This example copies, in a copy and paste operation. A selected DMU
Navigator URL will be put into the clipboard although it is not exposed to
automation.

CATIA.ActiveDocument.Selection.Copy()
Returns

None

property count

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737)
o Property Count() As long (Read Only)

Deprecated:
V5R16 #Count2 . The Count and Item Methods have been replaced by the
Count2 and Item2 methods because they did not process correctly features which
are not exposed to automation (such as a ResourcesList feature of a .CATProcess
document).
Returns

int

property count2

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737)
o Property Count2() As long (Read Only)

Returns the number of SelectedElement objects contained by the current
selection.
Role: This method returns the number of SelectedElement objects contained
by the Selection. The Value property of a given SelectedElement object is an
automation object associated to a selected feature.
Returns

int

cut()

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Cut()

Cuts, in a cut and paste operation.
Role: Puts the contents of the selection in the clipboard, and removes the
selected elements from the document, and clears the selection. This is the
programming equivalent of the Cut command from the Edit
menu.
Note: The method (and the script execution) fails if one of the following
errors occurs:

The CSO is empty. The Cut operation could not be
performed.
No CSO element remains after the filtering through the UI active
object. The Cut operation could not be performed.

Note: If a selected feature is not exposed to automation, it will be copied
into the clipboard and removed from the document all the
way.

Example:
This example cuts, in a cut and paste opertation. A selected DMU
Navigator URL will be put into the clipboard and removed from the document,
although it is not exposed to automation.

CATIA.ActiveDocument.Selection.Cut()
Returns

None

delete()

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Delete()

Deletes all selected objects.
Role: For all the SelectedElement objects contained by the selection, the
SelectedElement.Value automation object is deleted from the
document.
Note: If a selected feature is not exposed to automation, it will deleted
all the way.

Example:
This example deletes all the selected objects. A selected DMU Navigator
URL will be removed from the document, although it is not exposed to
automation.

CATIA.ActiveDocument.Selection.Delete()
Returns

None

filter_correspondence(i_filter_type=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func FilterCorrespondence(CATSafeArrayVariant iFilterType) As
boolean

Specifies if the automation objects appearing as Value property of
SelectedElement objects fit a given filter.
Role: FilterCorrespondence filters the selection with respect to provided
automation types. The use of this method coupled with the use of the
SelectElement2 will enable to offer a multi-selection written programmatically,
which is the common way to write multi-selection is CATIA.
It will enable, for example, to write a script reproducing the
functionalities of the “Fillet” command of the “Part Design”
workbench.
This method, called before a loop onto SelectElement2 calls, will enable if
all the selection objects correspond to the filter (which will be the same as
the filter given to SelectElement2 ), to take them into account, and,
otherwise, to clear the selection.
This multi-selection written programmatically will generally be used
coupled with the fact that already selected elements remain selected during the
selections.

Parameters:

iFilterType
An array of strings constants to be used as a filter for the kind
of element to which current selection object must correspond. See the
iFilterType parameter of the

SelectElement2 method.
oAllFit
All current selection objects fit the iFilterType filter, i.e.
regarding each of the current selection objects, they all fit one of the
iFilterType string constant.
Example:

The following example scripts an edge fillet creation command. It
supposes that a part is currently edited,
containing a Pad. It loops onto the following:




it asks the end user to select an edge (see

TriDimFeatEdge ). If the selected edge has not already been selected, the
selected edge is added to the selection, otherwise it is removed from the
selection
it asks the end user if another edge has to be selected
until the answer of the user to the preceding question is
no.
Then, it creates an edge fillet (see ConstRadEdgeFillet ) taking into
account all the selected edges as fillet specifications.

Note: The edges which were selected before the script execution are taken
into account. Nevertheless, if, before the script execution, the selection
contained an object which was not a TriDimFeatEdge element, the selection is
cleared before the first selection proposal.
Note: During the selection of a given edge, the edges already selected
remain highlighted.

Dim Document,Part,Selection,ShapeFactory,EdgeSaveAllocatedCount,EdgeIndex,
AllEdgesHaveBeenSelected,AllFit
Dim EdgeSaveCount,SelectedEdge,SelectedElementBelongsToSaveVariables,AlreadySelectedEdgeIndex
Dim OtherEdgeAnswer,Fillet
Set Document = CATIA.ActiveDocument : Set Part = Document.Part
: Set Selection = Document.Selection
Set ShapeFactory = Part.ShapeFactory
ReDim InputObjectType(0) : InputObjectType(0)=”TriDimFeatEdge” : EdgeSaveCount = 0
‘We determine if the selection contains an object which is not a
TriDimFeatEdge element
AllFit = Selection.FilterCorrespondence(InputObjectType)
‘If the selection contains an object which is not a TriDimFeatEdge element,
we clear the selection
if (Not AllFit) then Selection.Clear
EdgeSaveAllocatedCount = Selection.Count+10 : ReDim EdgeSave(EdgeSaveAllocatedCount-1)
‘We loop onto interactive selections
AllEdgesHaveBeenSelected = false
do while (Not AllEdgesHaveBeenSelected)
‘ We save the selection content in save variables.
‘ This corresponds to the fact that:
‘ - we want that, during the following call to SelectElement2, the
TriDimFeatEdge elements previously selected
‘ remain highlighted
‘ - this is done using the False value for the
iObjectSelectionBeforeCommandUsePossibility
‘ parameter of the SelectElement2 method, the selection containing the
TriDimFeatEdge elements. It requires that
‘ the selection content be saved
if (EdgeSaveAllocatedCount < Selection.Count) then
EdgeSaveAllocatedCount = EdgeSaveAllocatedCount + 10
: ReDim EdgeSave(EdgeSaveAllocatedCount-1)
end if
for EdgeIndex = 0 to Selection.Count2-1
Set EdgeSave(EdgeIndex) = Selection.Item2(EdgeIndex+1).Value
next
EdgeSaveCount = Selection.Count
‘ We propose to the user that he select an edge
Status=Selection.SelectElement2(InputObjectType,”Select an
edge”,false)
if (Status=”Cancel”) then
Selection.Clear : Exit Sub
end if
‘ We save the selected edge in a dedicated variable
Set SelectedEdge = Selection.Item2(1).Value
‘ We merge the selected element with the save variables, and put the
result in the selection.
‘ At first, we determine if the selected edge already belongs to the
EdgeSave array
EdgeIndex = 0 : SelectedElementBelongsToSaveVariables = False
do while ((EdgeIndex < EdgeSaveCount) And (Not
SelectedElementBelongsToSaveVariables))
if (EdgeSave(EdgeIndex).Name=SelectedEdge.Name)
then
SelectedElementBelongsToSaveVariables = True
AlreadySelectedEdgeIndex = EdgeIndex
end if
EdgeIndex = EdgeIndex + 1
loop
‘ Effective merge
if (Not SelectedElementBelongsToSaveVariables) then
‘ The selected element does not belong to the save variables. We add
the save variables to the selection
for EdgeIndex = 0 to EdgeSaveCount-1
Selection.Add EdgeSave(EdgeIndex)
next
else
‘ We remove the selected element from the save
variables
for EdgeIndex = AlreadySelectedEdgeIndex to EdgeSaveCount-2
Set EdgeSave(EdgeIndex) = EdgeSave(EdgeIndex+1)
next
EdgeSaveCount = EdgeSaveCount - 1
‘ We clear the selection
Selection.Clear
‘ We add the save variables to the selection
for EdgeIndex = 0 to EdgeSaveCount -1
Selection.Add EdgeSave(EdgeIndex)
next
end if
‘ We ask the end user if another edge has to be selected
OtherEdgeAnswer = msgbox (“do you want to select another edge?”,3,”Edge Fillet Definition”)
if (OtherEdgeAnswer = 2) then Exit Sub
if (OtherEdgeAnswer = 7) then AllEdgesHaveBeenSelected = true
loop
‘We create an edge fillet taking into account all the selected edges as
fillet specifications
if (Selection.Count > 0) then
Set Fillet = ShapeFactory.AddNewEdgeFilletWithConstantRadius(Selection.Item(1).Value, 1, 5.0)
Fillet.EdgePropagation = 1
for EdgeIndex = 2 to Selection.Count
Fillet.AddObjectToFillet
Selection.Item(EdgeIndex).Value
next
Part.Update : Selection.Clear : Selection.Add Fillet
end if
Parameters

i_filter_type (tuple) –

Returns

bool

find_object(i_object_type=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func FindObject(CATBSTR iObjectType) As AnyObject

Finds an object in the current selection and deletes it from the
selection.
Role: Determines the first automation object specified in
SelectedElement.Value (for the SelectedElement objects contained in the current
selection), or which is a Parent (see AnyObject.Parent ) of the automation
object specified in SelectedElement.Value , which type is equal to the type
specified in input. It returns directly the automation object and deletes the
corresponding SelectedElement object from the current
selection.
Note: If the string specified in input is he “CATIAProduct” string, the
possible automation object specified in SelectedElement.LeafProduct is also
looked at.

Example:
This example searches a Pad object in the current selection and puts it
into FoundObject.

Dim FoundObject As AnyObject
Set FoundObject = CATIA.ActiveDocument.Selection.FindObject(“CATIAPad”)
Parameters

i_object_type (str) –

Returns

AnyObject

indicate_or_select_element3_d(i_planar_geometric_object=None, i_message=None, i_filter_type=None, i_object_selection_before_command_use_possibility=None, i_tooltip=None, i_triggering_on_mouse_move=None, o_object_selected=None, o_window_location2_d=None, o_window_location3_d=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func IndicateOrSelectElement3D(AnyObject
iPlanarGeometricObject,
CATBSTR iMessage,
CATSafeArrayVariant iFilterType,
boolean iObjectSelectionBeforeCommandUsePossibility,
boolean iTooltip,
boolean iTriggeringOnMouseMove,
boolean oObjectSelected,
CATSafeArrayVariant oWindowLocation2D,
CATSafeArrayVariant oWindowLocation3D) As CATBSTR

Runs an interactive command enabling both indication and selection, 3D
version.
Role: IndicateOrSelectElement3D asks the end user to select either a
location into the window, or a feature (in the geometry or in the specification
tree).
During execution, when entering this method, the active document must be a
3D document. See Document.Indicate3D and SelectElement3

Parameters:

iPlanarGeometricObject
A planar geometric object.
iMessage
A string which instructs the user that he must select a location
into the document window or select an object.
iFilterType
An array of strings constants defining the automation object types
with which the selection will be filtered.
iObjectSelectionBeforeCommandUsePossibility
Enables the script to support the possibility, for the user, to
select a required object before running the script. See


SelectElement2 .
iTooltip
Displays a tooltip as soon as an object is located under the mouse
without being selected.
iTriggeringOnMouseMove
Triggers as soon as a mouse move event is detected. This option beeing
set, oOutputState may be valued to “MouseMove”.
oObjectSelected
Flag précising if the user choosed the selection or the indication.

oWindowLocation2D
X, Y - coordinates array of the location the user specified into the
document window. This parameter is valuated only if oObjectSelected equals to
false.
oWindowLocation3D
X, Y, Z - coordinates array of the location the user specified in the
document window. This parameter is valuated only if oObjectSelected equals to
false.
oOutputState
The state of the interactive command once IndicateOrSelectElement3D
returns. The possible values are the same than the values described regarding
the oOutputState parameter of the SelectElement2 method, except that the
“MouseMove” value can also be returned.
Example:

The following example suppose a part is currently edited, containing
a plane. It creates a point
(see

HybridShapePointOnPlane ), asks the end user to select a location into the
part window, onto the Plane.1 plane, or to select a point.
As the mouse moves without clicking the left button, the location into the
drawing window is determined, and the script creates a temporary point as a
feedback.
A click into the document window or the selection of a point creates
definitively the point (see HybridShapePointOnPlane ) located at the specified
location (whether the location is a location into the part window or whether it
is the existing point location).

Dim Document,Part,HybridShapeFactory,Selection,Body,HybridShapePlane,PlaneReference,
HardCodedPoint,Point
Dim InputObjectType(0),WindowLocation2D(1),WindowLocation3D(2),
TempPointHasBeenCreatedAtLeastOnce,Status
Dim ObjectSelected,ExistingPoint
Set Document = CATIA.ActiveDocument : Set Part = Document.Part
Set HybridShapeFactory = Part.HybridShapeFactory : Set Selection = Document.Selection
Set Body = Part.Bodies.Item(“PartBody”)
Set HybridShapePlane = Body.HybridShapes.Item(“Plane.1”)
Set PlaneReference = Part.CreateReferenceFromObject(HybridShapePlane)
‘We create a point
Set HardCodedPoint = HybridShapeFactory.AddNewPointOnPlane(PlaneReference,30.,30.)
Body.InsertHybridShape HardCodedPoint : Part.InWorkObject = HardCodedPoint : Part.Update
‘We propose to the user that he specify a location into the part window or
a point
InputObjectType(0)=”HybridShapePointOnPlane”
Status = “MouseMove” : TempPointHasBeenCreatedAtLeastOnce = 0 : Selection.Clear
Status=Selection.IndicateOrSelectElement3D(HybridShapePlane,”select a
point or click to locate the point”, _
InputObjectType,false,false,true, _
ObjectSelected,WindowLocation2D,WindowLocation3D)
‘ We loop onto mouse moves without click
do while (Status = “MouseMove”)
if (TempPointHasBeenCreatedAtLeastOnce) then
Selection.Add Point : Selection.Delete
end if
Set Point = HybridShapeFactory.AddNewPointOnPlane(PlaneReference,WindowLocation2D(0),
WindowLocation2D(1))
Body.InsertHybridShape Point : Part.InWorkObject = Point : Part.Update
TempPointHasBeenCreatedAtLeastOnce = 1
Status=Selection.IndicateOrSelectElement3D(HybridShapePlane,”select a
point or click to locate the point”, _
InputObjectType,false,false,true, _
ObjectSelected,WindowLocation2D,WindowLocation3D)
loop
‘We go out if necessary
if (Status = “Cancel” Or Status = “Undo” Or Status = “Redo”) then
if (TempPointHasBeenCreatedAtLeastOnce) then
Selection.Add Point : Selection.Add HardCodedPoint : Selection.Delete : Part.Update
end if
Exit Sub
end if
‘We determine the possible selected point coordinates
if (ObjectSelected) then
Set ExistingPoint = Selection.Item2(1).Value
WindowLocation2D(0) = ExistingPoint.XOffset.Value
WindowLocation2D(1) = ExistingPoint.YOffset.Value
Selection.Clear
end if
‘We clean-up the temporary point
if (TempPointHasBeenCreatedAtLeastOnce) then
Selection.Add Point : Selection.Delete
end if
‘We create the point
Set Point = HybridShapeFactory.AddNewPointOnPlane(PlaneReference,WindowLocation2D(0),
WindowLocation2D(1))
Body.InsertHybridShape Point : Part.InWorkObject = Point : Part.Update
Parameters
  • i_planar_geometric_object (AnyObject) –

  • i_message (str) –

  • i_filter_type (tuple) –

  • i_object_selection_before_command_use_possibility (bool) –

  • i_tooltip (bool) –

  • i_triggering_on_mouse_move (bool) –

  • o_object_selected (bool) –

  • o_window_location2_d (tuple) –

  • o_window_location3_d (tuple) –

Returns

str

indicate_or_select_element_2d(i_message=None, i_filter_type=None, i_object_selection_before_command_use_possibility=None, i_tooltip=None, i_triggering_on_mouse_move=None, o_object_selected=None, o_document_window_location=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func IndicateOrSelectElement2D(CATBSTR iMessage,
CATSafeArrayVariant iFilterType,
boolean iObjectSelectionBeforeCommandUsePossibility,
boolean iTooltip,
boolean iTriggeringOnMouseMove,
boolean oObjectSelected,
CATSafeArrayVariant oDocumentWindowLocation) As CATBSTR

Runs an interactive command enabling both indication and selection, 2D
version.
Role: IndicateOrSelectElement2D asks the end user to select either a
location into the window, or a feature (in the geometry or in the specification
tree).
During execution, when entering this method, the active document must be a
2D document. See Document.Indicate2D and SelectElement3

Parameters:

iMessage
A string which instructs the user that he must select a location
into the document window or select an object.
iFilterType
An array of strings constants defining the automation object types
with which the selection will be filtered.
iObjectSelectionBeforeCommandUsePossibility
Enables the script to support the possibility, for the user, to
select a required object before running the script. See


SelectElement2 .
iTooltip
Displays a tooltip as soon as an object is located under the mouse
without being selected.
iTriggeringOnMouseMove
Triggers as soon as a mouse move event is detected. This option beeing
set, oOutputState may be valued to “MouseMove”.
oObjectSelected
Flag précising if the user choosed the selection or the indication.

oDocumentWindowLocation
An array made of 2 doubles: X, Y - coordinates array of the location
the user specified in the document window. This parameter is valuated only if
oObjectSelected equals to false.
oOutputState
The state of the interactive command once IndicateOrSelectElement2D
returns. The possible values are the same than the values described regarding
the oOutputState parameter of the SelectElement2 method, except that the
“MouseMove” value can also be returned.
Example:

The following example suppose a drawing is currently edited. It
creates a point (see

Point2D ), and asks the end user to click to define the circle
center.
When it is done, as the mouse moves without clicking the left button, the
script determines the location into the drawing window, and the script creates
a temporary circle as a feedback.
A click into the document window or the selection of a point creates
definitively the circle (see Circle2D ) located at the specified location
(whether the location is a location into the drawing window or whether it is
the existing point location).

Dim Document,Selection,DrawingSheets,DrawingSheet,DrawingViews,WindowLocation(1),DrawingView,
Factory2D,Radius,Circle2D
Dim HardCodedPoint,Status,XCenter,YCenter,InputObjectType(0),TempCircleHasBeenCreatedAtLeastOnce,
ExistingPoint
Dim ObjectSelected
Set Document = CATIA.ActiveDocument : Set Selection = Document.Selection
: Set DrawingSheets = Document.Sheets
Set DrawingSheet = DrawingSheets.ActiveSheet : Set DrawingViews = DrawingSheet.Views
Set DrawingView = DrawingViews.ActiveView : Set Factory2D = DrawingView.Factory2D
‘We create a point
Set HardCodedPoint = Factory2D.CreatePoint(700.,400.)
HardCodedPoint.ReportName = 1 : HardCodedPoint.Construction = False
‘We propose to the user to click to define the circle
center
Status=Document.Indicate2D(“click to define the circle
center”,WindowLocation)
if (Status = “Cancel” Or Status = “Undo” Or Status = “Redo”) then Exit Sub
XCenter = WindowLocation(0) : YCenter = WindowLocation(1)
‘We propose to the user that he specify a location into the drawing window
or a point
InputObjectType(0)=”Point2D”
Status = “MouseMove” : TempCircleHasBeenCreatedAtLeastOnce = 0
Status=Selection.IndicateOrSelectElement2D(
“select a point or click to locate the circle radius point”, _
InputObjectType,false,false,true, _ObjectSelected,WindowLocation)
‘ We loop onto mouse moves without click
do while (Status = “MouseMove”)
if (TempCircleHasBeenCreatedAtLeastOnce) then
Selection.Add Circle2D : Selection.Delete
end if
Radius = Sqr(((WindowLocation(0)-XCenter)*(WindowLocation(0)-XCenter))+ _
((WindowLocation(1)-YCenter)*(WindowLocation(1)-YCenter)))
Set Circle2D = Factory2D.CreateClosedCircle(XCenter,YCenter,Radius)
TempCircleHasBeenCreatedAtLeastOnce = 1
Status=Selection.IndicateOrSelectElement2D(“select a point or click to
locate the circle radius point”, _
InputObjectType,false,false,true, _
ObjectSelected,WindowLocation)
loop
‘We go out if necessary
if (Status = “Cancel” Or Status = “Undo” Or Status = “Redo”) then
if (TempCircleHasBeenCreatedAtLeastOnce) then
Selection.Add Circle2D : Selection.Add HardCodedPoint : Selection.Delete
end if
Exit Sub
end if
‘We determine the possible selected point coordinates
if (ObjectSelected) then
Set ExistingPoint = Selection.Item2(1).Value : ExistingPoint.GetCoordinates WindowLocation
: Selection.Clear
end if
‘We clean-up the temporary circle
if (TempCircleHasBeenCreatedAtLeastOnce) then
Selection.Add Circle2D : Selection.Delete
end if
‘We create the circle
Radius = Sqr(((WindowLocation(0)-XCenter)*(WindowLocation(0)-XCenter))+ _
((WindowLocation(1)-YCenter)*(WindowLocation(1)-YCenter)))
Set Circle2D = Factory2D.CreateClosedCircle(XCenter,YCenter,Radius) : Selection.Add Circle2D
Parameters
  • i_message (str) –

  • i_filter_type (tuple) –

  • i_object_selection_before_command_use_possibility (bool) –

  • i_tooltip (bool) –

  • i_triggering_on_mouse_move (bool) –

  • o_object_selected (bool) –

  • o_document_window_location (tuple) –

Returns

str

item(i_index=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func Item(long iIndex) As SelectedElement

Deprecated:
V5R16 #Item2 . The Count and Item Methods have been replaced by the
Count2 and Item2 methods because they did not process correctly features which
are not exposed to automation (such as a ResourcesList feature of a .CATProcess
document).
Parameters

i_index (int) –

Returns

SelectedElement

item2(i_index=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func Item2(long iIndex) As SelectedElement

Returns the iIndex-th SelectedElement object contained by the current
selection.
Role: Returns the iIndex-th SelectedElement object contained by the current
Selection. The Value property of the SelectedElement object is an automation
object associated to a selected feature.

Parameters:

iIndex
The index of the

SelectedElement object to return, 1≤iIndex≤Selection.Count2 .

oSelectedElement
The SelectedElement object
Example:

See the

SelectElement3 method first example.
Parameters

i_index (int) –

Returns

SelectedElement

paste()

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Paste()

Puts the contents of the clipboard in the document at the indicated
location.
Role: After the execution of the Paste method, there may be, among the
pasted features, some which are not exposed to automation. If the selected
feature after which the clipboard must be pasted is not exposed to automation,
the Paste will be done all the way.
Note: The method (and the script execution) fails if one of the following
errors occurs:

The CSO is empty. The Paste operation could not be
performed.
No CSO element remains after the filtering through the UI active
object. The Paste operation could not be performed.

Example:
This example pastes, in a cut, or copy, and paste operation. A selected
DMU Navigator URL will be put into the clipboard and removed from the document,
although it is not exposed to automation.

CATIA.ActiveDocument.Selection.Paste()
Returns

None

paste_special(i_format=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub PasteSpecial(CATBSTR iFormat)

Puts the contents of the clipboard in the document at the indicated
location, according to the specified format.
Role: After the execution of the Paste method, there may be, among the
pasted features, some which are not exposed to automation. If the selected
feature after which the clipboard must be pasted is not exposed to automation,
the Paste will be done all the way.
Note: The method (and the script execution) fails if one of the following
errors occurs:

The CSO is empty. The PasteSpecial operation could not be
performed.
No CSO element remains after the filtering through the UI active
object. The PasteSpecial operation could not be
performed.


Formats are:

In all the containers
“CATIA_LINK_FORMAT” to paste “Catia Link Source”,
“OLE_LINK_FORMAT” to paste “Ole Link Source”,
“OLE_EMBED_FORMAT” to paste “Ole Embed Source”.


In a Part container
“CATPrtCont” to paste “As Specified In Part Document”,
“CATPrtResultWithOutLink” to paste “AsResult”,
“CATPrtResult” to paste “AsResultWithLink”,
“CATMaterialCont” to paste “As material”,
“AsMaterialLink” to paste “As material link”,
“CATMechProdCont” to paste “As specified in Assembly”,
“CATProdCont” to paste “As specified in Product
Structure”,
“CATIA_SPEC” to paste “CATIA_SPEC”,
“CATIA_RESULT” to paste “CATIA_RESULT”.


In a Product container
“CATProdCont” to paste “As specified in Product
Structure”,
“CATSpecBreakLink” to paste “Break Link”.


In a Process container
“SPPProcessCont” to paste “Simple paste”,
“SPP_I” to paste “Paste with Items”,
“SPP_R” to paste “Paste with Resources”,
“SPP_IR” to paste “Paste with Items and Resources”,
“SPPI_I” to paste “Paste with Items and entire
hierarchy”,
“SPPI_R” to paste “Paste with Resources and entire
hierarchy”,
“SPPI_IR” to paste “Paste with Items and Resources and entire
hierarchy”.


In a Material container
“CATMaterialCont” to paste “As material”,
“AsMaterialLink” to paste “As material link”.


In a Catalog container
“CATDescriptionFormat” to paste “As defined in catalog
instanciation”,
“CATCtlgChapterFormat” to paste “As defined in catalog
document”.


In a Rendering Scene container
“CATRscLightContainer” to paste “As light”,
“CATRscEnvironmentContainer” to paste “As
environment”,
“CATRscShootingContainer” to paste “As shooting”,
“CATRscTurntableContainer” to paste “As turntable”.


In a Deneb Resource Program container
“DNBProgCont” to paste “Resource Program”.


In a Behavior container
“Behaviors” to paste “Behaviors”.


In a CATCamera container
“CATCameraContainer” to paste “Camera”.


To know more about those formats, refer to the interactive
command.

Example:
This example pastes, in a cut, or copy, and paste special operation. A
selected DMU Navigator URL will be pasted from the clipboard at the specified
location, although it is not exposed to automation.

CATIA.ActiveDocument.Selection.PasteSpecial
“CATPrtResultWithOutLink”
Parameters

i_format (str) –

Returns

None

remove(i_index=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Remove(long iIndex)

Deprecated:
V5R16 #Remove2 . This method does the same as the Remove2 method, but
it does know how to manage features which are not exposed to automation (such
as a ResourcesList feature of a .CATProcess document).
Parameters

i_index (int) –

Returns

None

remove2(i_index=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Remove2(long iIndex)

Removes the iIndex-th SelectedElement object contained by the current
selection.
Role: Removes the iIndex-th SelectedElement object contained by the current
selection.

Parameters:

iIndex
The index of the

SelectedElement object to remove, 1≤iIndex≤Selection.Count2
.

Example:
This example removes the second SelectedElement object contained by
the current selection.

CATIA.ActiveDocument.Selection.Remove2(2)
Parameters

i_index (int) –

Returns

None

search(i_string_bstr=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Sub Search(CATBSTR iStringBSTR)

Finds an object in the document using the Edit/Search
grammar.
Role: Finds an object in the document using the Edit/Search grammar, and
fills the selection with the found objects. A criterium is created, based on
the Search grammar, which defines in addition the depth of the investigation
field.
Note: After the execution of the Search method, there may be, among the
selected features, some which are not exposed to
automation.

Example:
The following example searches the objects matching the following
criterium in all the document: Part.Sketcher.Color=’White’ . A selected DMU
Navigator URL put into the selection although it is not exposed to
automation.


CATIA.ActiveDocument.Selection.Search(“Part.Sketcher.Color=’White’,all”)

param str i_string_bstr

return

None

select_element2(i_filter_type=None, i_message=None, i_object_selection_before_command_use_possibility=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func SelectElement2(CATSafeArrayVariant iFilterType,
CATBSTR iMessage,
boolean iObjectSelectionBeforeCommandUsePossibility) As
CATBSTR

Runs an interactive selection command.
Role: SelectElement2 asks the end user to select a feature (in the geometry
or in the specification tree) in a Window of the active Document . During the
selection, when the end user will move the mouse above a feature which maps the
given filter, the mouse pointer will be the “hand” cursor, and when end user
will move the mouse above a feature which does not map the given filter, the
mouse pointer will be the “no entry” cursor.

If iObjectSelectionBeforeCommandUsePossibility is equal to
False:
The end user is asked to interactively select an appropriate element.
When this is done, the Selection object is cleared, and filled with the
selected element.

If iObjectSelectionBeforeCommandUsePossibility is equal to
True:
SelectElement2 determines whether the automation objects specified in
SelectedElement.Value, for the SelectedElement objects contained in the current
selection, or one of the parents of the automation objects (see
AnyObject.Parent ) is an appropriate element:
If it is the case, no interaction is asked to the end user, the
Selection object is cleared, and filled with the appropriate
element.
Otherwise, the Selection object is cleared, and the end user is
asked to interactively select an appropriate element. When this is done, the
selection is filled with the selected element.
Note: The Selection object on which the Selection.SelectElement2 method
must be called must be the Selection object obtained the following
way:
determine the active document, for example, in the following
case:

Product3
!
+- Product2 (Product2.1)
! !
! ! +———————+
! +-!Product1 (Product1.1)!
! +———-+———-+
! !
! +- Part1 (Part1.1)

! !
! +- Part1
! !
! +- PartBody
! !
+——————+
! +- Pad.1 !
Selected feature !
! !
+——————+
! +- Sketch.1

+- Part2 (Part2.1)


it will be Product3
call the Document.Selection property onto this
document
Otherwise, results are unpredictable. Note: During the selection scan
to find an automation object, a “Product” string constant specified in
iFilterType will imply that SelectElement2 will also look at the possible
automation object specified in SelectedElement.LeafProduct
.

After a call to SelectElement2, if the return value equals to “Normal”, a
call to the Count2 method will return one, and a call to Item2(1) will return
the selected element.

Note: If the scripting language is Visual Basic for Applications or Visual
Basic 6 Development Studio, then, you have to know that the use of an
interactive selection method such as this one from a form (dialog box) method
requires some constraints regarding the content of an average form
method.
If your macro possess a form method which calls the SelectElement2 method,
then, the content of an average form method of your macro must begin by a test,
which checks that no form method is currently being executed and, otherwise, go
out of the method. This constraint enable to prevent that, during the execution
of the SelectElement2 method from a form method, when CATIA asks the end user
to select a feature:

the users select a dialog object of a form (CATIA going on asking the
end user to select a feature)
this selection trigger the corresponding form method
this run CATIA automation objects methods, CATIA going on asking the
end user to select a feature

which would lead to unpredictable results.
The code will be the following way:

- macro module main variables:
Dim AFormMethodIsBeingExecuted As Boolean
- form method calling SelectElement2:
Private Sub
FormPossessingOneMethodCallingSelectElement2_Click()
Dim InputObjectType(0), Status
AFormMethodIsBeingExecuted = True
InputObjectType(0)=”TriDimFeatEdge”
Status=Selection.SelectElement2(InputObjectType,”Select an
edge”,false)
AFormMethodIsBeingExecuted = False
End Sub
- average form method:
Private Sub AverageForm_Click()
If (AFormMethodIsBeingExecuted) Then Exit Sub
‘ content of the form method itself
End Sub

Parameters:

iFilterType
An array of strings constants defining the automation object types
with which the selection will be filtered. During the selection, when the end
user will move the mouse (above the geometry or the specification tree), if the
feature under the mouse does not map iFilterType, the cursor will be the “no
entry” cursor.
The resulting filter is a logical OR of the supplied strings
constants. For instance if the array contains two elements “Point” and “Line”,
when the end user will move the mouse above the geometry, if there is a feature
under a mouse, which is a

HybridShapePointCoord object (you have to know that the Point object is
a parent object of the HybridShapePointCoord object ), then, the cursor will be
a “hand” cursor. At the opposite, if there is a feature under a mouse, which is
neither a Point nor a Line, the cursor will be a “no entry”
cursor.

Beside the automation object names, the CATSelectionFilter value names
are supported.
iMessage
A string which instructs the user what to select. This string is
displayed in the message area located at the left of the power input area.

iObjectSelectionBeforeCommandUsePossibility
Enables the script to support the possibility, for the user, to select
a required object before running the script.

If the scripter:

writes a script calling SelectElement2, giving as iFilterType
parameter an array containing one string: “Pad”
for the first call to SelectElement2 made by the script, the
iObjectSelectionBeforeCommandUsePossibility is set to
True
the scripter associates the script to an Icon. He will proceed as
following:
in the Tools menu, select the Customize item. A window
appears.
select the Commands Tab. The window contains two
lists.
in the list on the left, select the Macros
value
select the “Show Properties” push button
select the button on the right of the Icon label. A window
containing a list of icons appears
select an Icon
select the Close button. The window containing the icon list
disappears
in the list on the right, push the key 1 of the mouse, the
cursor beeing on the macro to associate to an Icon. Then drag to a desired
Toolbar. The Icon has been added to the
Toolbar.


Then the user will be able to implement the following
scenario:

select a Pad
select the Icon mentioned above. This runs the
script.


During the execution of the script, the script will detect that the
selected Pad is required as input, and the first call to SelectElement2 will
not ask to the user to interactively select a Pad: the Pad selected before the
script execution will be taken.
Note:Regarding the features selected by the user (a Pad in the example
above), all the automation objects specified in SelectedElement.Value for the
current selection SelectedElement objects must be used: if an automation object
specified in SelectedElement.Value is not asked by the input filter, the
SelectElement2 method will ask the user to interactively select an appropriate
element.

A False value for the iObjectSelectionBeforeCommandUsePossibility parameter
may be used although the selection is not empty before entering the method.
This enables that, during the selection, the selected elements remain
highlighted.
Caution: After a call to SelectElement2 , the
iObjectSelectionBeforeCommandUsePossibility parameter being set to False, the
elements which were selected before the call to SelectElement2 are not any more
in the selection (unless the user selected one of them!). Consequently, such a
use of the False value for the iObjectSelectionBeforeCommandUsePossibility
parameter requires the following code:

save the selection content in save variables
call the SelectElement2 method, the
iObjectSelectionBeforeCommandUsePossibility parameter being set to
False
copy the selected element to a dedicated variable
merge the selected element with the save variables, and put the result
in the selection. This mean:
if the selected element does not belong to the save variables, add
the save variables to the selection
otherwise, remove the selected element from the save variables,
clear the selection and then, add the save variables to the
selection

oOutputState
The state of the selection command once SelectElement2 returns. It can
be either “Normal” (the selection has succeeded), “Cancel” (the user wants to
cancel the VB command, which must exit immediately), “Undo” or
“Redo”.
Note:The “Cancel” value is returned if one of the following cases
occured:

an external command has been selected
the ESCAPE key has been selected
another window has been selected, the window document beeing
another document than the current document

Caution:All scripts should exit (after the necessary cleanings) when
the “Cancel” value is returned.
If the script does not exit (beside the cleanings) when the “Cancel”
value is returned, but calls another interactive method such as SelectElement2
, and, during execution, the user select an external command (which triggers
the return of the “Cancel” value), then, the execution of the other interactive
method will display an error message.
Example:

The following example asks the end user to select a sketch (see


Sketch ) in the current window, and creates a Pad (see
ShapeFactory.AddNewPad ). If, before the script execution, a sketch was already
selected, it will be taken into account and the end user will ne be asked to
select a sketch.
Then, it asks the end user to select an edge of the pad, and creates an
edge fillet. Then, is asks the end user to select a 1-D entity whose geometry
is rectilinear (see CATSelectionFilter ), such as an edge of the
Pad.
Then, it asks the end user to select a pad face perpendicular to the 1-D
entity previously selected. Then, it creates a hole at the face selected point,
the hole direction being the direction of the 1-D selected
entity.
During the face selection, the 1-D entity previously selected is
highlighted.

Dim Document,Part,Selection,ShapeFactory,SketchHasBeenAcquiredAtLeastOnce,
EdgeHasBeenAcquiredAtLeastOnce
Dim FaceHasBeenAcquiredAtLeastOnce,MonoDimEntityHasBeenAcquiredAtLeastOnce,
FirstExtrudeNotFinished,FilletEdge
Dim PadNotFinished,Status,SketchForPad,Pad,FilletNotFinished,Fillet,
MonoDimEntityDeterminationNotFinished
Dim SelectedElement,MonoDimEntity,HoleNotFinished,PadFace,Hole,InputObjectType(0),
HoleLocation(2),MonoDimEntitySave
Dim SketchForPadPartBody
Set Document = CATIA.ActiveDocument : Set Part = Document.Part
Set Selection = Document.Selection
Set ShapeFactory = Part.ShapeFactory
SketchHasBeenAcquiredAtLeastOnce = False : EdgeHasBeenAcquiredAtLeastOnce = False
FaceHasBeenAcquiredAtLeastOnce = False : MonoDimEntityHasBeenAcquiredAtLeastOnce = False
FirstExtrudeNotFinished = True : PadNotFinished = True : ReDim SelectionAtBeginning(1)
‘We save the current selection content
ReDim SelectionAtBeginning(Selection.Count2)
for SelectionObjectIndex = 0 to Selection.Count2-1
Set SelectionAtBeginning(SelectionObjectIndex) = Selection.Item2(1).Value
next
SelectionAtBeginningLength = Selection.Count2
‘Feature creation
do while PadNotFinished
‘ We propose to the user that he select a sketch
InputObjectType(0)=”Sketch”
Status=Selection.SelectElement2(InputObjectType,”Select a
sketch”,true)
if ((Status = “Cancel”) Or (Status = “Undo”)) then
‘ We restore the selection to its initial content
Selection.Clear
for SelectionObjectIndex = 0 to SelectionAtBeginningLength-1
Selection.Add
SelectionAtBeginning(SelectionObjectIndex)
next
Exit Sub
elseif (Status = “Redo” And Not SketchHasBeenAcquiredAtLeastOnce ) then
‘ We do nothing: Redo has no meaning in this context
else
if (Status <> “Redo”) then Set SketchForPad = Selection.Item2(1).Value
SketchHasBeenAcquiredAtLeastOnce = True
‘ We determine the PartBody corresponding to the
Sketch
Set SketchForPadPartBody = SketchForPad.Parent.Parent
‘ We create the Pad
Set Pad = ShapeFactory.AddNewPad(SketchForPad,20.0)
Pad.SecondLimit.Dimension.Value = 0.0 : Part.Update
PadNotFinished = False
Selection.Clear
‘ We create the fillet and the hole
FilletNotFinished = True
do while (FilletNotFinished And Not
PadNotFinished)
‘ We propose to the user that he select an edge
InputObjectType(0)=”TriDimFeatEdge”
Status=Selection.SelectElement2(InputObjectType,”Select an
edge of the Pad”,false)
if (Status = “Cancel”) then
‘ We remove the pad, restore the selection to its initial
content and go out
Selection.Clear : Selection.Add(Pad) : Selection.Delete
Part.Update
Selection.Clear
for SelectionObjectIndex = 0 to SelectionAtBeginningLength-1
Selection.Add SelectionAtBeginning(SelectionObjectIndex)
next
Exit Sub
elseif (Status = “Redo” And Not EdgeHasBeenAcquiredAtLeastOnce ) then
‘ We do nothing: Redo has no meaning in this
context
elseif (Status = “Undo”) then
‘ We copy the sketch to the clipboard
Selection.Clear : Selection.Add(SketchForPad)
‘ We remove the pad
Selection.Clear : Selection.Add(Pad) : Selection.Delete : Part.Update
‘ We re-create the sketch
Selection.Clear : Selection.Add(SketchForPadPartBody) : Selection.Paste()
‘ We store the fact that the Pad is not finished
PadNotFinished = True
else
if (Status <> “Redo”) then Set FilletEdge = Selection.Item2(1).Value
EdgeHasBeenAcquiredAtLeastOnce = True
‘ Create the Fillet
Set Fillet = ShapeFactory.AddNewSolidEdgeFilletWithConstantRadius(FilletEdge,
catTangencyFilletEdgePropagation,5.0)
Part.Update
FilletNotFinished = False
Selection.Clear
‘ Determine the 1-D entity
MonoDimEntityDeterminationNotFinished = True
do while (MonoDimEntityDeterminationNotFinished And Not
FilletNotFinished)
‘ We propose to the user that he select 1-D entity whose
geometry is rectilinear
InputObjectType(0)=”RectilinearMonoDim”

Status=Selection.SelectElement2(InputObjectType, _

“Select a 1-D entity
whose geometry is rectilinear”,false)

if (Status = “Cancel”) then
‘ We remove the fillet, the pad, restore the selection
to its initial content and go out
Selection.Clear : Selection.Add(Fillet) : Selection.Delete
Selection.Clear : Selection.Add(Pad) : Selection.Delete
Part.Update
Selection.Clear
for SelectionObjectIndex = 0 to SelectionAtBeginningLength-1
Selection.Add SelectionAtBeginning(SelectionObjectIndex)
next
Exit Sub
elseif (Status = “Redo” And Not MonoDimEntityHasBeenAcquiredAtLeastOnce )
then
‘ We do nothing: Redo has no meaning in this context
elseif (Status = “Undo”) then
‘ We remove the fillet
Selection.Clear : Selection.Add(Fillet) : Selection.Delete
Part.Update
FilletNotFinished = True
else
if (Status = “Redo”) then
Selection.Clear : Selection.Add(MonoDimEntity)
else
Set SelectedElement = Selection.Item2(1)
Set MonoDimEntity = SelectedElement.Value
end if
MonoDimEntityHasBeenAcquiredAtLeastOnce = True
MonoDimEntityDeterminationNotFinished = False
‘ Create the Hole
HoleNotFinished = True
do while (HoleNotFinished And Not MonoDimEntityDeterminationNotFinished)
‘ We save the selection content in save
variables.
‘ This corresponds to the fact
that:
‘ - we want that, during the following call to
SelectElement2, the 1-D entity previously
‘ selected remain highlighted
‘ - this is done using the False value for the
iObjectSelectionBeforeCommandUsePossibility
‘ parameter, the selection containing the 1-D
entity. It requires that the selection
‘ content be saved
Set MonoDimEntitySave = Selection.Item2(1).Value
‘ We propose to the user that he select a
face
InputObjectType(0)=”Face”

Status=Selection.SelectElement2(InputObjectType, _

“Select a face
perpendicular to the 1-D entity”,false)
if (Status = “Cancel”) then
‘ We remove the fillet, the pad, restore the
selection to its initial content and go out
Selection.Clear : Selection.Add(Fillet) : Selection.Delete
Selection.Clear : Selection.Add(Pad) : Selection.Delete
Selection.Clear
for SelectionObjectIndex = 0 to SelectionAtBeginningLength-1
Selection.Add SelectionAtBeginning(SelectionObjectIndex)
next
Part.Update
Exit Sub
elseif (Status = “Redo” And Not FaceHasBeenAcquiredAtLeastOnce ) then
‘ We do nothing: Redo has no meaning in this context
elseif (Status = “Undo”) then
Selection.Clear
‘ The 1-D entity must be
re-selected
MonoDimEntityDeterminationNotFinished = True
else
if (Status <> “Redo”) then

Set SelectedElement = Selection.Item2(1)
Set PadFace = SelectedElement.Value
SelectedElement.GetCoordinates
HoleLocation
‘ We merge the selected element with the
save variables, and put the result in the selection
Selection.Add
MonoDimEntitySave
end if
FaceHasBeenAcquiredAtLeastOnce = True
‘ We create the Hole
Set Hole = Part.ShapeFactory.AddNewHoleFromPoint(HoleLocation(0),
HoleLocation(1),HoleLocation(2),PadFace,10.0)
Hole.ThreadingMode = 1 : Hole.ThreadSide = 0 :
Hole.Diameter.Value = 5.0
Hole.SetDirection
FilletEdge
Part.Update
HoleNotFinished = False
‘ We clear the selection
Selection.Clear
end if
loop
end if
loop
end if
loop
end if
loop
Parameters
  • i_filter_type (tuple) –

  • i_message (str) –

  • i_object_selection_before_command_use_possibility (bool) –

Returns

str

select_element3(i_filter_type=None, i_message=None, i_object_selection_before_command_use_possibility=None, i_multi_selection_mode=None, i_tooltip=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func SelectElement3(CATSafeArrayVariant iFilterType,
CATBSTR iMessage,
boolean iObjectSelectionBeforeCommandUsePossibility,
CATMultiSelectionMode iMultiSelectionMode,
boolean iTooltip) As CATBSTR

Runs an interactive selection command, exhaustive version.
Role: SelectElement3 asks the end user to select a feature (in the geometry
or in the specification tree). It is identical to the SelectElement2 method
except that it manages complex uses through the specification of 2 more
parameters.

Parameters:

iFilterType
An array of strings constants defining the automation object types
with which the selection will be filtered.
iMessage
A string which instructs the user what to select. This string is
displayed in the message area located at the left of the power input area.

iObjectSelectionBeforeCommandUsePossibility
Enables the script to support the possibility, for the user, to
select required object(s) before running the script. See


SelectElement2 .
iMultiSelectionMode
The type of multi-selection which will be offered to the user.

iTooltip
Displays a tooltip as soon as an object is located under the mouse
without being selected.
oOutputState
The state of the selection command once SelectElement3 returns. It can
be either “Normal”, “Cancel”, “Undo” or “Redo”. See SelectElement2
.
Example:

This first example asks the end user to select several points (see


Point ) into the current Part window, drawing a trap, and performs a
symmetry with respect to the XZ plane on the selected points (see
HybridShapeSymmetry ). The points can be selected before the script be
run.

Dim Document,Part,Selection,HybridShapeFactory,HybridBodies,HybridBody,OriginElements,Plane,
PlaneReference,Status
Dim InputObjectType(0),PointIndex,PointReference,HybridShapeSymmetry
Set Document = CATIA.ActiveDocument : Set Part = Document.Part :
Set Selection = Document.Selection
Set HybridShapeFactory = Part.HybridShapeFactory
Set Bodies = Part.Bodies
Set Body = Bodies.Item(“PartBody”)
Set OriginElements = Part.OriginElements
Set Plane = OriginElements.PlaneZX
Set PlaneReference = Part.CreateReferenceFromObject(Plane)
‘We propose to the user that he select several points, drawing a
trap
InputObjectType(0)=”Point”
Status=Selection.SelectElement3(InputObjectType,”Select points”,
_
true,CATMultiSelTriggWhenSelPerf,false)
if (Status = “Cancel”) then Exit Sub
For PointIndex = 1 to Selection.Count2
Set PointReference = Part.CreateReferenceFromObject(Selection.Item2(PointIndex).Value)
Set HybridShapeSymmetry = HybridShapeFactory.AddNewSymmetry(PointReference,PlaneReference)
HybridShapeSymmetry.VolumeResult = False
Body.InsertHybridShape HybridShapeSymmetry
Part.InWorkObject = HybridShapeSymmetry
Part.Update
next
Selection.Clear


Example:

This second example illustrates the use of the
CATMultiSelTriggWhenUserValidatesSelection value for the

iMultiSelectionMode parameter. This example is a training tool
enabling the user to learn how to use the “Symmetry”
command of the “Geometry Modification” toolbar of the Drafting
workbench.

It creates a drawing containing a line and three points, and guides
the user in:




the selection of points


the selection of the symmetry axis




the selected points being moved by symmetry according to the selected
axis.


‘We create a drawing
Set Documents = CATIA.Documents : Set Document = Documents.Add(“Drawing”)
: Document.Standard = catISO
Set DrawingSheets = Document.Sheets : Set DrawingSheet = DrawingSheets.Item(“Sheet.1”)
DrawingSheet.PaperSize = catPaperA0 : DrawingSheet.Scale = 1.000000
: DrawingSheet.Orientation = catPaperLandscape
Set DrawingViews = DrawingSheet.Views : Set DrawingView = DrawingViews.ActiveView
Set Factory2D = DrawingView.Factory2D : Set Selection = Document.Selection
: Dim Coordinates(2)
ReDim InputObjectType(0) : Dim SelectedPoint(3) : SelectedPointCount = 0
‘We create a horizontal line with a zero ordinate
Set LineLeftExtremity = Factory2D.CreatePoint(-100.0, 0.0)
: LineLeftExtremity.ReportName = 3
Set LineRightExtremity = Factory2D.CreatePoint(100.0, 0.0)
: LineRightExtremity.ReportName = 4
Set Line2D = Factory2D.CreateLine(-100.0, 0.0, 100.0, 0.0) : Line2D.ReportName = 5
Line2D.StartPoint = LineLeftExtremity : Line2D.EndPoint = LineRightExtremity
‘We create three points
Set Point2D1 = Factory2D.CreatePoint(-50.0, 50.0)
: Point2D1.ReportName = 6 : Point2D1.Construction = False
Set Point2D2 = Factory2D.CreatePoint(0.0, 70.0) : Point2D2.ReportName = 7
: Point2D1.Construction = False
Set Point2D3 = Factory2D.CreatePoint(50.0, 50.0) : Point2D3.ReportName = 8
: Point2D3.Construction = False
‘We mention to the user that he will select the set of elements to be
symmetrized
msgbox “This tool will enable you to learn how to use the Symmetry
command.” & Chr(13) & Chr(13) & _
“Suppose you selected the Symmetry command.” & Chr(13) & _

“You will first select several points to be
symmetrized”
‘We propose to the user that he select several points
InputObjectType(0)=”Point2D”
Status=Selection.SelectElement3(InputObjectType,”Select the set of
elements to be symmetrized”, _true,CATMultiSelTriggWhenUserValidatesSelection,false)
if (Status = “Cancel”) then Exit Sub
‘We add the selected points to SelectedPoint
for PointIndex = 0 to Selection.Count2-1
Set SelectedPoint(PointIndex) = Selection.Item2(PointIndex+1).Value
: SelectedPointCount = SelectedPointCount+1
next
‘We mention to the user that he will select the axis from which the
elements will remain equidistant
msgbox “You will then select the line from which the elements will
remain equidistant”
‘We propose to the user that he select the line
InputObjectType(0)=”Line2D”
Status=Selection.SelectElement2(InputObjectType, _
“Select the line or axis from which
the elements will remain equidistant”,
false)
if (Status = “Cancel”) then Exit Sub
‘We move the selected points by symmetry according to the selected
line
for PointIndex = 0 to SelectedPointCount-1
Set CurrentPoint2D = SelectedPoint(PointIndex)
CurrentPoint2D.GetCoordinates Coordinates
CurrentPoint2D.SetData Coordinates(0),
-Coordinates(1)
next
Selection.Clear
‘We mention to the user that the points have successfully been
moved
msgbox “The points have successfully been moved.”
Parameters
  • i_filter_type (tuple) –

  • i_message (str) –

  • i_object_selection_before_command_use_possibility (bool) –

  • i_multi_selection_mode (CATMultiSelectionMode) –

  • i_tooltip (bool) –

Returns

str

select_element4(i_filter_type=None, i_active_document_message=None, i_non_active_document_message=None, i_tooltip=None, o_document=None)

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737))
o Func SelectElement4(CATSafeArrayVariant iFilterType,
CATBSTR iActiveDocumentMessage,
CATBSTR iNonActiveDocumentMessage,
boolean iTooltip,
Document oDocument) As CATBSTR

Runs an interactive selection command, enabling the selection in a non
active document.
Role: SelectElement4 asks the end user to select a feature (in the geometry
or in the specification tree) of a non active document. During the selection,
when end user will move the mouse above a window corresponding to a non active
document, when he will move the mouse above a feature which maps the given
filter, the mouse pointer will be the “hand” cursor. When he will move the
mouse above a feature which does not map the given filter, the mouse pointer
will be the “no entry” cursor.
This method may be used, for example, to write a script which does the
following:

a drawing is currently edited
request that the user select a reference plane in the 3D geometry (a
part)
creation of a front view in the drawing, projecting the 3D geometry
onto the selected reference plane


Compared to the SelectElement2 , the result of the selection will not be
accessed through the Count2 and Item2 methods of the current selection object,
but through the Count2 and Item2 methods of the Selection object aggregated by
the Document object returned through the oDocument
parameter.
Note:The Selection object aggregated by the Document object returned
through the oDocument parameter is emptied by before the effective interactive
selection.

Parameters:

iFilterType
An array of strings constants defining the automation object types
with which the selection will be filtered.
iActiveDocumentMessage
A string which instructs the user what to select, which will be
displayed into the active document. This string is displayed in the message
area located at the left of the power input area.
iNonActiveDocumentMessage
A string which instructs the user what to select, which will be
displayed into the non active document.
iTooltip
Displays a tooltip as soon as an object is located under the mouse
without being selected.
oOutputState
The state of the selection command once SelectElement3 returns. It
can be either “Normal”, “Cancel”, “Undo”.

Example:

The following example supposes a part, containing a pad, and drawing
are currently edited, the drawing
window beeing the current window. It asks the end user to select a 2-D
topological entity, such as a


Plane , in a part. Then it creates a front view in the drawing, projecting
the 3D geometry onto the selected 2-D topological entity.

Dim DrawingSelection,DrawingSheets,DrawingSheet,DrawingViews,DrawingFrontView
ReDim DrawingSelectionAtBeginning(1)
Dim Status,InputObjectType(0),Plane,Drawing,DrawingViewGenerativeBehavior,V1(2),V2(2),
PartDocument
Set Drawing = CATIA.ActiveDocument : Set DrawingSelection = Drawing.Selection
: Set DrawingSheets = Drawing.Sheets
Set DrawingSheet = DrawingSheets.ActiveSheet
‘We save the current selection content
ReDim
DrawingSelectionAtBeginning(DrawingSelection.Count2)
for SelectionObjectIndex = 0 to DrawingSelection.Count2-1
Set DrawingSelectionAtBeginning(SelectionObjectIndex) = DrawingSelection.Item2(1).Value
next
SelectionAtBeginningLength = DrawingSelection.Count2
‘Feature creation
InputObjectType(0)=”BiDimInfinite”
Status=DrawingSelection.SelectElement4(InputObjectType,”Select a 2-D
topological entity in a 3-D geometry”, _”Select a 2-D topologicalentity”,false,PartDocument)
if ((Status = “Cancel”) Or (Status = “Undo”) Or (Status = “Redo”)) then
‘ We restore the selection to its initial content
PartDocument.Selection.Clear
for SelectionObjectIndex = 0 to SelectionAtBeginningLength-1
DrawingSelection.Add
DrawingSelectionAtBeginning(SelectionObjectIndex)
next
Exit Sub
else
Set BiDimFeature = PartDocument.Selection.Item2(1).Value
BiDimFeatureType = TypeName(BiDimFeature)
if ((BiDimFeatureType=”Plane”) Or (BiDimFeatureType=”PlanarFace”))
then
BiDimFeature.GetFirstAxis V1
BiDimFeature.GetSecondAxis V2
else
Exit Sub
end if
‘ We create a view called “Front View” in the current sheet, using Plane
as projection plane, and whose origin
‘ coordinates are 300,150
Set DrawingFrontView = DrawingSheet.Views.Add(“Front View”)
Set DrawingViewGenerativeBehavior = DrawingFrontView.GenerativeBehavior
DrawingViewGenerativeBehavior.Document = PartDocument
DrawingViewGenerativeBehavior.DefineFrontView V1(0), V1(1), V1(2),
V2(0), V2(1), V2(2)
DrawingFrontView.x = 300
DrawingFrontView.y = 150
DrawingViewGenerativeBehavior.Update
‘ We clear the PartDocument Selection object
PartDocument.Selection.Clear
end if
Parameters
  • i_filter_type (tuple) –

  • i_active_document_message (str) –

  • i_non_active_document_message (str) –

  • i_tooltip (bool) –

  • o_document (Document) –

Returns

str

property vis_properties

Note

CAA V5 Visual Basic Help (2020-07-03 17:02:05.216737)
o Property VisProperties() As VisPropertySet (Read Only)

Manages graphic properties on current selection.
Role: Gives a VisPropertySet automation object so that graphic properties
of the selected objects can be read or modified.
Note: After the execution of the VisProperties methods which update graphic
properties of the features, selected features which are not exposed to
automation will be updated. After the execution of the VisProperties methods
which consult the selection to give the graphic properties, selected features
which are not exposed to automation will be consulted.

Example:
This example sets in no show all elements of the current
selection:

Dim Selection,VisPropertySet
Set Selection = CATIA.ActiveDocument.Selection
Set VisPropertySet = Selection.VisProperties
VisPropertySet.SetShow catVisPropertiesNoShowAttr
Returns

VisPropertySet

selection_sets

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.in_interfaces.selection_sets.SelectionSets(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
SelectionSets

Interface to manage the Selection Sets in a document.
add_cso_into_selection_set(i_sel_set_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddCSOIntoSelectionSet(CATBSTR iSelSetName)

Adds CSO’s content in a Selection Set.

Parameters:

iSelSetName
The name of the Selection Set in wich the CSO has to be added.


Returns:
The error code of function :

S_OK if the content of the CSO is added
E_FAIL if the content of the CSO is not added
Parameters

i_sel_set_name (str) –

Returns

None

create_selection_set(i_sel_set_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub CreateSelectionSet(CATBSTR iSelSetName)

Creates a new Selection Set.
Role: This method creates a new Selection Set.

Parameters:

iSelSetName
The name of Selection Set to create.

Returns:
The error code of function :

S_OK if the Selection Set is created
E_FAIL if a problem occurred
Parameters

i_sel_set_name (str) –

Returns

None

delete_selection_set(i_sel_set_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub DeleteSelectionSet(CATBSTR iSelSetName)

Deletes a Selection Set.
Role: This method removes a Selection Set and all its
content.

Parameters:

iSelSetName
The Selection Set to delete.

Returns:
The error code of function :

S_OK if the method succeeded
E_FAIL if a problem occurred
Parameters

i_sel_set_name (str) –

Returns

None

get_list_of_selection_set(o_list_of_selection_set)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetListOfSelectionSet(CATSafeArrayVariant
oListOfSelectionSet)

Retrieves the list of Selection Sets in the document.

Parameters:

oListOfSelectionSet
The list of Selection Sets in the document

Returns:
The error code of function :

S_OK if the method succeeded
E_FAIL if an error occurred
Parameters

o_list_of_selection_set (tuple) –

Returns

None

put_selection_set_into_cso(i_sel_set_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutSelectionSetIntoCSO(CATBSTR iSelSetName)

Puts Selection Set’s content in the CSO.

Parameters:

iSelSetName
The name of the Selection Set to put in the CSO.

Returns:
The error code of function :

S_OK if the content of the Selection Set is added in the
CSO
E_FAIL if the content of the Selection Set is added in the
CSO
Parameters

i_sel_set_name (str) –

Returns

None

rename_selection_set(i_old_sel_set_name, i_new_sel_set_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RenameSelectionSet(CATBSTR iOldSelSetName,
CATBSTR iNewSelSetName)

Renames a Selection Set.

Parameters:

iOldSelSetName
The original name of the Selection Set.
iNewSelSetName
The new name of the Selection Set.

Returns:
The error code of function :

S_OK if the name is changed
E_FAIL if the name is not changed
Parameters
  • i_old_sel_set_name (str) –

  • i_new_sel_set_name (str) –

Returns

None

send_to_service

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.in_interfaces.send_to_service.SendToService(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
SendToService

This interface allows to use ‘Send To’ functionalities through an
API.
Example: Set Send=CATIA.CreateSendTo()
This interface requires the installation of CATIA - PPR xPDM Gateway 1 Product
(PX1) or the installation of the CATIA-SmarTeam plugin. In case one of these
products is not granted, the first invocation to one of CATIASendToService
methods will fail.
add_file(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddFile(CATBSTR iPath)

Adds a file to the list of the files ‘to be copied’. This method verifies
that the given input file is valid (exists and is not a directory), it
recursively adds pointed files.

Parameters:

iPath
: The path of the file to be added to the list of the ‘to be copied’ files.
Example:
Send.AddFile(iPath)
Parameters

i_path (str) –

Returns

None

get_last_send_to_method_error(o_error_param, o_error_code)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetLastSendToMethodError(CATBSTR oErrorParam,
long oErrorCode)

Retrieves the diagnosis related to the last call to SendToService
interface.

Parameters:

oErrorParam
A parameter string given together with the error code.

oErrorCode
The last executed method error code:
code diagnosisoErrorParam value
0 action successfully performed :-)
1 PX1 license not granted
2 internal error
5 file already in the list file name
6 file is not in the list file name
7 empty file list
8 missing target directory
9 no common root directory
10 file does not exist file name
11 input is a directory directory name
12 directory check failed directory name
13 invalid file name given name
14 file has no read permission given name
36 allocation failed :-(
Parameters
  • o_error_param (str) –

  • o_error_code (int) –

Returns

None

get_list_of_dependant_file(o_dependant)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetListOfDependantFile(CATSafeArrayVariant oDependant)

Retrieves the complete list of the files recursively pointed by the file given in argument to
SetInitialFile method.
Notice : in case AddFile has also been invoked, the files recursively pointed by the added file
also are retrieved.

Parameters:

oDependant
: The table of dependant files.
Example:
Send.GetListOfDependantFile(oDependant)
Parameters

o_dependant (tuple) –

Returns

None

get_list_of_to_be_copied_files(o_will_be_copied)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetListOfToBeCopiedFiles(CATSafeArrayVariant
oWillBeCopied)

Retrieves the complete list of the files that will be copied. This list
matches the list of dependant files, but without the files for which RemoveFile
has been invoked.

Parameters:

oWillBeCopied
: The table of the files that will be copied.
Example:
Send.GetListOfToBeCopiedFiles(oWillBeCopied)
Parameters

o_will_be_copied (tuple) –

Returns

None

keep_directory(i_keep)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub KeepDirectory(boolean iKeep)

Controls the directory tree structure in the target
directory.

Parameters:

iKeep
=1: to preserve the relative tree structure of the
files.
This option will be effective only if there is a common root
directory for all files.
iKeep
=0: to copy the files directly in the destination directory

Example:
Send.KeepDirectory(ikeep)
Parameters

i_keep (bool) –

Returns

None

remove_file(i_file)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFile(CATBSTR iFile)

Removes a file from the list of the files that will be
copied.

Parameters:

iFile
: The File (With extension) to be removed from the list of the ‘to be copied’ files.
Example:
Send.RemoveFile(iFile)
Parameters

i_file (str) –

Returns

None

run()

Note

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

Executes the copy action, according to previously set files and
options.
A “report.txt” report file is generated in the specified destination
directory.
Returns

None

set_directory_file(i_directory)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDirectoryFile(CATBSTR iDirectory)

Positions the destination directory. This method verifies that the given
directory exists. Be careful, if SetDirectoryOneFile method has been previously
called, its action is overriden by this SetDirectoryFile
call.

Parameters:

iDirectory
: The destination directory where the files will be copied.
Example:
Send.SetDirectoryFile(iDirectory)
Parameters

i_directory (str) –

Returns

None

set_directory_one_file(i_file, i_directory)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDirectoryOneFile(CATBSTR iFile,
CATBSTR iDirectory)

Allows positioning the destination directory for one given file to be
copied. The file will be copied in the specified target directory. Be careful
that using this method implies that the ‘KeepDirectory’ variable will be
automatically set to 0.

Parameters:

iFile
: The name (Name With extension) of the given file.
iDirectory
: The directory where this file will be copied.
Example:
Send.SetDirectoryOneFile(iFile, iDirectory)
Parameters
  • i_file (str) –

  • i_directory (str) –

Returns

None

set_initial_file(i_path)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetInitialFile(CATBSTR iPath)

Sets the initial file to be copied. This method verifies that the given
input file is valid (exists and is not a directory)
It generates a complete list of the recursively dependent files to be
copied.
Example:
This example positions the file of path ipath in the list of ‘to be copied’
files. All its dependant files will also be added in the list of ‘to be copied’
files.

Parameters:

iPath
: Full path of the file to be copied.

Send.SetInitialFile(iPath)
Parameters

i_path (str) –

Returns

None

set_rename_file(i_oldname, i_new_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRenameFile(CATBSTR iOldname,
CATBSTR iNewName)

Renames one file to be copied. The new name may not have invalid
characters

Parameters:

iOldname
: The old file name (With extension).
iNewName
: The new file name (Without extension).
Example:
Send.SetRenameFile(iOldname, iNewName)
Parameters
  • i_oldname (str) –

  • i_new_name (str) –

Returns

None

setting_controllers

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.in_interfaces.setting_controllers.SettingControllers(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
SettingControllers

A collection of all the setting controllers objects currently managed by the
application.
item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATBSTR iIndex) As SettingController

Returns a setting controller using its name from the setting controllers
collection.

Parameters:

iIndex
The name of the window to retrieve from the collection of setting
controller. As a string.

Returns:
The retrieved setting controller.
Parameters

i_index (str) –

Returns

SettingController

specs_and_geom_window

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.in_interfaces.specs_and_geom_window.SpecsAndGeomWindow(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Window
SpecsAndGeomWindow

Represents a window featuring a specification viewer and a geometry
viewer.
The specification viewer is located in the left part of the window and displays
the document’s specification tree. The geometry viewer is located in the right
part of the window and displays the document’s geometry, and can thus be a
Viewer2D or a Viewer3D, according to the document type. Even if generally the
two viewers are simultaneously displayed, one viewer or the other can be hidden
thanks to the CatSpecsAndGeomWindowLayout enumeration.

See also:
CatSpecsAndGeomWindowLayout
property layout

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Layout() As CatSpecsAndGeomWindowLayout

Returns or sets the specification and geometry window
layout.

Example:
This example sets the specification and geometry window layout for the
MyCADWindow window to catWindowGeomOnly.

MyCADWindow.Layout = catWindowGeomOnly
Returns

enum cat_specs_and_geom_window_layout

property specs_viewer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SpecsViewer() As SpecsViewer (Read Only)

Returns the specifications viewer.

Example:
This example retrieves the specification viewer for the MyCADWindow
window.

Dim MyViewer As Viewer
Set MyViewer = MyCADWindow.SpecsViewer
Returns

SpecsViewer

specs_viewer

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.in_interfaces.specs_viewer.SpecsViewer(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Viewer
InfInterfaces.Viewer2D
SpecsViewer

Represents the specification tree viewer.
This viewer displays the document’s specification tree according to the chosen
layout, and can only be included in a SpecsAndGeomWindow
object.

See also:
CatSpecsLayout, SpecsAndGeomWindow
property layout

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Layout() As CatSpecsLayout

Returns or sets the specification tree layout.

Example:
This example sets the specification tree layout for the SpecsTreeViewer
specification tree viewer to
catSpecsViewerHorizontalCentered.

SpecsTreeViewer.Layout = catSpecsViewerHorizontalCentered
Returns

enum cat_specs_layout

system_configuration

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.in_interfaces.system_configuration.SystemConfiguration(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
SystemConfiguration

Provides abstractions to resources which depend on the platform or the current
configuration.
get_product_names(io_product_names)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetProductNames(CATSafeArrayVariant ioProductNames)

Returns the product names of all the licenses currently known to the
system.

Parameters:

CATSafeArrayVariant
An properly dimensioned array of strings in which the product names
will be stored.

Example:
This example determines if the first product in the list of
known product names is authorized.

Dim SystemConfiguration1 As
SystemConfiguration
Set SystemConfiguration1 = CATIA.SystemConfiguration
ReDim NameArray(SystemConfiguration1.ProductNamesCount) | SystemConfiguration1.GetProductNames
NameArray
MsgBox “IsProductAuthorized for product ” & NameArray(0) & ”
returns ” & SystemConfiguration1.IsProductAuthorized(NameArray(0))
Parameters

io_product_names (tuple) –

Returns

None

is_product_authorized(i_product_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsProductAuthorized(CATBSTR iProductName) As boolean

Returns True if the specified product is authorized, False
otherwise.

Parameters:

iProductName
The name of the product to check.
oAuthorized
A boolean which specifies if the product is
authorized.
Parameters

i_product_name (str) –

Returns

bool

property operating_system

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OperatingSystem() As CATBSTR (Read Only)

Returns a string which identifies the operating system on which the
application is currently running. Examples of identifiers include: intel_a,
solaris_a, aix_a, win_a and hpux_a.

Parameters:

oOperatingSystem
The operating system identifier.
Returns

str

property product_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ProductCount() As long (Read Only)

Returns the number of product names names currently known to the
system.

Parameters:

oProductCount
The number of product names currently known to the
system.
Returns

int

property release

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Release() As long (Read Only)

Returns the CATIA release number.

Parameters:

oVersion
The CATIA release number.
Returns

int

property service_pack

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ServicePack() As long (Read Only)

Returns the CATIA service pack number.

Parameters:

oServicePack
The CATIA service pack number.
Returns

int

property version

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Version() As long (Read Only)

Returns the CATIA version number (usually version 5).

Parameters:

oVersion
The CATIA version.
Returns

int

text_stream

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.in_interfaces.text_stream.TextStream(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
TextStream

The textstream object allows to manage input and output for a text
stream.
property at_end_of_line

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AtEndOfLine() As boolean (Read Only)

Returns a boolean value which specifies if the index position in the stream
is at a end of line.

Example:
This example retrieves in EndLine the end of line value for the
TextStream TestStream.

Dim EndLine As Boolean
EndLine = TestStream.AtEndOfLine
Returns

bool

property at_end_of_stream

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AtEndOfStream() As boolean (Read Only)

Returns a boolean value which specifies if the index position in the stream
is at a end of stream.

Example:
This example retrieves in EndStream the end of stream value for the
TextStream TestStream.

Dim EndStream As Boolean
EndStream = TestStream.AtEndOfStream
Returns

bool

close()

Note

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

Closes a text stream.

Example:
This example closes the TextStream TestStream

TestStream.Close
Returns

None

read(i_num_of_char)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Read(long iNumOfChar) As CATBSTR

Returns a string which contains a given number of characters from the
current position in the stream.

Parameters:

iNumOfChar
The number of characters to read.

Returns:
oReadString The retrieved string.

Example:
This example retrieves the next fifty characters of the TextStream
TestStream in the stream ReadString.

Dim ReadString As String
Set ReadString = TestStream.Read(50)
Parameters

i_num_of_char (int) –

Returns

str

read_line()

Note

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

Returns a string which contains a line of charaters from the current
position in the stream.

Returns:
oReadLine The retrieved read line.

Example:
This example retrieves the next line of the TextStream TestStream
in the stream ReadString.

Dim ReadString As String
Set ReadString = TestStream.ReadLine
Returns

str

write(i_written_string)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Write(CATBSTR iWrittenString)

Writes a string in the text stream.

Parameters:

iWrittenString
The string to write in the stream.

Example:
This example write a string in the the TextStream
TestStream.

TestStream.Write(“This is a test”)
Parameters

i_written_string (str) –

Returns

None

tree_viz_manip_setting_att

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.in_interfaces.tree_viz_manip_setting_att.TreeVizManipSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
TreeVizManipSettingAtt

The Interface to retrieve and set the visual information on the specification
tree.
property arc_selection_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ArcSelectionActivation() As boolean

Retrieves or Sets the arc-selection mode applied to the specification tree.
Returns

bool

property auto_expand_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutoExpandActivation() As boolean

Retrieves or Sets the automatic expand mode applied to the specification
tree.
Returns

bool

property auto_scroll_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutoScrollActivation() As boolean

Retrieves or Sets the automatic scrolling mode applied to the specification
tree.
Returns

bool

property display_geom_on_scrolling

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayGeomOnScrolling() As boolean

Retrieves or Sets the “display geometry on scrolling” mode.
Returns

bool

get_arc_selection_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetArcSelectionActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for arc-selection mode applied to the
specification tree.
Role:Retrieves the state of arc-selection mode applied to the specification
tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_auto_expand_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAutoExpandActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for automatic expand mode applied to the
specification tree.
Role:Retrieves the state of automatic expand mode applied to the
specification tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_auto_scroll_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAutoScrollActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for automatic scrolling mode applied to
the specification tree.
Role:Retrieves the state of the automatic scrolling mode applied to the
specification tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_display_geom_on_scrolling_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayGeomOnScrollingInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for “display geometry on scrolling”
mode.
Role:Retrieves the state of “display geometry on scrolling” mode in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_orientation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOrientationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the orientation applied to the
specification tree.
Role:Retrieves the state of the orientation applied to the specification
tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_show_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetShowActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the visualization Show/NoShow’s mode
applied to the specification tree.
Role:Retrieves the state of the visualization Show/NoShow’s mode applied to
the specification tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_size_type_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSizeTypeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the type of size applied to the text
of the specification tree.
Role:Retrieves the state of the type of size applied to the text of the
specification tree in the current environment. Attributes “size” and “SizeType”
are linked together by the same lock. So there is no function
“GetSizeInfo”.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_type_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTypeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the type applied to the
specification tree.
Role:Retrieves the state of the type applied to the specification tree in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Orientation() As CatTreeOrientationEnum

Retrieves or Sets the orientation applied to the specification tree.
Returns

enum cat_tree_orientation_enum

set_arc_selection_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetArcSelectionActivationLock(boolean iLocked)

Locks or unlocks the arc-selection mode applied to the specification
tree.
Role:Locks or unlocks the arc-selection mode applied to the specification
tree if it is possible in the current administrative context. In user mode this
method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_auto_expand_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAutoExpandActivationLock(boolean iLocked)

Locks or unlocks the automatic expand mode applied to the specification
tree.
Role:Locks or unlocks the automatic expand mode applied to the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_auto_scroll_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAutoScrollActivationLock(boolean iLocked)

Locks or unlocks the automatic scrolling mode applied to the specification
tree.
Role:Locks or unlocks the automatic scrolling mode applied to the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_display_geom_on_scrolling_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayGeomOnScrollingLock(boolean iLocked)

Locks or unlocks the “display geometry on scrolling” mode.
Role:Locks or unlocks “display geometry on scrolling” mode if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_orientation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOrientationLock(boolean iLocked)

Locks or unlocks the orientation applied to the specification
tree.
Role:Locks or unlocks the orientation applied to the specification tree if
it is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_show_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetShowActivationLock(boolean iLocked)

Locks or unlocks the visualization Show/NoShow’s mode applied to the
specification tree.
Role:Locks or unlocks the visualization Show/NoShow’s mode applied to the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_size_type_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSizeTypeLock(boolean iLocked)

Locks or unlocks the type of size applied to the text of the specification
tree.
Role:Locks or unlocks the type of size applied to the text of the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL. Attributs “size” and
“SizeType” are linked together by the same lock. So there is no function
“SetSizeTypeLock”.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_type_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTypeLock(boolean iLocked)

Locks or unlocks the type of the specification tree.
Role:Locks or unlocks the type applied to the specification tree if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

property show_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ShowActivation() As boolean

Retrieves or Sets the visualization Show/NoShow’s mode applied to the
specification tree.
Returns

bool

property size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Size() As long

Retrieves or Sets the number of characters shown for the text of the
specification tree.
Returns

int

property size_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SizeType() As CatTreeSizeTypeEnum

Retrieves or Sets the type of size applied to the text of the specification
tree.
Returns

enum cat_tree_size_type_enum

property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CatTreeTypeEnum

Retrieves or Sets the type applied to the specification tree.
Returns

enum cat_tree_type_enum

viewer

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.in_interfaces.viewer.Viewer(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
TreeVizManipSettingAtt

The Interface to retrieve and set the visual information on the specification
tree.
property arc_selection_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ArcSelectionActivation() As boolean

Retrieves or Sets the arc-selection mode applied to the specification tree.
Returns

bool

property auto_expand_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutoExpandActivation() As boolean

Retrieves or Sets the automatic expand mode applied to the specification
tree.
Returns

bool

property auto_scroll_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutoScrollActivation() As boolean

Retrieves or Sets the automatic scrolling mode applied to the specification
tree.
Returns

bool

property display_geom_on_scrolling

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayGeomOnScrolling() As boolean

Retrieves or Sets the “display geometry on scrolling” mode.
Returns

bool

get_arc_selection_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetArcSelectionActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for arc-selection mode applied to the
specification tree.
Role:Retrieves the state of arc-selection mode applied to the specification
tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_auto_expand_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAutoExpandActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for automatic expand mode applied to the
specification tree.
Role:Retrieves the state of automatic expand mode applied to the
specification tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_auto_scroll_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAutoScrollActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for automatic scrolling mode applied to
the specification tree.
Role:Retrieves the state of the automatic scrolling mode applied to the
specification tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_display_geom_on_scrolling_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayGeomOnScrollingInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for “display geometry on scrolling”
mode.
Role:Retrieves the state of “display geometry on scrolling” mode in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_orientation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOrientationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the orientation applied to the
specification tree.
Role:Retrieves the state of the orientation applied to the specification
tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_show_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetShowActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the visualization Show/NoShow’s mode
applied to the specification tree.
Role:Retrieves the state of the visualization Show/NoShow’s mode applied to
the specification tree in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_size_type_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSizeTypeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the type of size applied to the text
of the specification tree.
Role:Retrieves the state of the type of size applied to the text of the
specification tree in the current environment. Attributes “size” and “SizeType”
are linked together by the same lock. So there is no function
“GetSizeInfo”.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_type_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTypeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the type applied to the
specification tree.
Role:Retrieves the state of the type applied to the specification tree in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Orientation() As CatTreeOrientationEnum

Retrieves or Sets the orientation applied to the specification tree.
Returns

enum cat_tree_orientation_enum

set_arc_selection_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetArcSelectionActivationLock(boolean iLocked)

Locks or unlocks the arc-selection mode applied to the specification
tree.
Role:Locks or unlocks the arc-selection mode applied to the specification
tree if it is possible in the current administrative context. In user mode this
method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_auto_expand_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAutoExpandActivationLock(boolean iLocked)

Locks or unlocks the automatic expand mode applied to the specification
tree.
Role:Locks or unlocks the automatic expand mode applied to the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_auto_scroll_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAutoScrollActivationLock(boolean iLocked)

Locks or unlocks the automatic scrolling mode applied to the specification
tree.
Role:Locks or unlocks the automatic scrolling mode applied to the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_display_geom_on_scrolling_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayGeomOnScrollingLock(boolean iLocked)

Locks or unlocks the “display geometry on scrolling” mode.
Role:Locks or unlocks “display geometry on scrolling” mode if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_orientation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOrientationLock(boolean iLocked)

Locks or unlocks the orientation applied to the specification
tree.
Role:Locks or unlocks the orientation applied to the specification tree if
it is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_show_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetShowActivationLock(boolean iLocked)

Locks or unlocks the visualization Show/NoShow’s mode applied to the
specification tree.
Role:Locks or unlocks the visualization Show/NoShow’s mode applied to the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_size_type_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSizeTypeLock(boolean iLocked)

Locks or unlocks the type of size applied to the text of the specification
tree.
Role:Locks or unlocks the type of size applied to the text of the
specification tree if it is possible in the current administrative context. In
user mode this method will always return E_FAIL. Attributs “size” and
“SizeType” are linked together by the same lock. So there is no function
“SetSizeTypeLock”.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_type_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTypeLock(boolean iLocked)

Locks or unlocks the type of the specification tree.
Role:Locks or unlocks the type applied to the specification tree if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

property show_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ShowActivation() As boolean

Retrieves or Sets the visualization Show/NoShow’s mode applied to the
specification tree.
Returns

bool

property size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Size() As long

Retrieves or Sets the number of characters shown for the text of the
specification tree.
Returns

int

property size_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SizeType() As CatTreeSizeTypeEnum

Retrieves or Sets the type of size applied to the text of the specification
tree.
Returns

enum cat_tree_size_type_enum

property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CatTreeTypeEnum

Retrieves or Sets the type applied to the specification tree.
Returns

enum cat_tree_type_enum

viewer2_d

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.in_interfaces.viewer2_d.Viewer2D(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Viewer
Viewer2D

Represents a 2D viewer.
The 2D viewer aggregates a 2D viewpoint to display a 2D scene.
property viewpoint2_d

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viewpoint2D() As Viewpoint2D

Returns or sets the 2D viewpoint of a 2D viewer.

Example:
This example retrieves the Nice2DViewpoint 2D viewpoint from the
My2DViewer 2D viewer.

Dim Nice2DViewpoint As Viewpoint2D
Set Nice2DViewpoint = My2DViewer.Viewpoint2D
Returns

Viewpoint2D

viewer3_d

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.in_interfaces.viewer3_d.Viewer3D(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Viewer
Viewer3D

Represents a 3D viewer.
The 3D viewer aggregates a 3D viewpoint to display a 3D scene. In addition, the
Viewer3D object manages the lighting, the depth effects, the navigation style,
and the rendering mode.

See also:
Viewpoint3D, CatLightingMode, CatNavigationStyle, CatRenderingMode
property clipping_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ClippingMode() As CatClippingMode

Returns or sets the clipping mode.

Example:
This example sets the depth effect for the My3DViewer 3D viewer to
catClippingModeNearAndFar.

My3DViewer.ClippingMode = catClippingModeNearAndFar
Returns

enum cat_clipping_mode

property far_limit

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FarLimit() As double

Returns or sets the far limit for the far clipping plane. The distance is
measured from the eye location, that is the origin of the viewpoint, and is
expressed in model unit. The far clipping plane is available with the
catClippingModeFar and catClippingModeNearAndFar values of the CatClippingMode
enumeration only.

Example:
This example sets the far limit for the far clipping plane of the
My3DViewer 3D viewer to 150 model units.

My3DViewer.FarLimit = 150
Returns

float

property foggy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Foggy() As boolean

Returns or sets the fog mode. Useful when clipping is
enabled.

Example:
This example sets the fog on for the My3DViewer 3D
viewer:

My3DViewer.Foggy = True
Returns

bool

property ground

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Ground() As boolean

Returns or sets the ground displaying mode.

Example:
This example makes the ground visible for the My3DViewer 3D
viewer:

My3DViewer.Ground = True
Returns

bool

property light_sources

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LightSources() As LightSources (Read Only)

Returns the viewer’s light source collection.

Example:
This example retrieves the light source collection for the My3DViewer
3D viewer in VPLightSources.

Set VPLightSources = My3DViewer.LightSources
Returns

LightSources

property lighting_intensity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LightingIntensity() As double

Returns or sets the lighting intensity. The lighting intensity ranges
between 0 and 1.

Example:
This example sets the lighting intensity for the My3DViewer 3D viewer
to 0.35.

My3DViewer.LightingIntensity = 0.35
Returns

float

property lighting_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LightingMode() As CatLightingMode

Returns or sets the lighting mode.

Example:
This example sets the lighting mode for the My3DViewer 3D viewer to
catInfiniteLightSource.

My3DViewer.LightingMode = catInfiniteLightSource
Returns

enum cat_lighting_mode

property navigation_style

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NavigationStyle() As CatNavigationStyle

Returns or sets the navigation style.

Example:
This example sets the navigation style for the My3DViewer 3D viewer to
catNavigationWalk.

My3DViewer.NavigationStyle = catNavigationWalk
Returns

enum cat_navigation_style

property near_limit

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NearLimit() As double

Returns or sets the near limit for the near clipping plane. The distance is
measured from the eye location, that is the origin of the viewpoint, and is
expressed in model unit. The near clipping plane is available with the
catClippingModeNear and catClippingModeNearAndFar values of the CatClippingMode
enumeration only.

Example:
This example sets the near limit for the near clipping plane of the
My3DViewer 3D viewer to 75 model units.

My3DViewer.NearLimit = 75
Returns

float

property rendering_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RenderingMode() As CatRenderingMode

Returns or sets the rendering mode.

Example:
This example sets the rendering mode for the My3DViewer 3D viewer to
catRenderShadingWithEdges.

My3DViewer.RenderingMode = catRenderShadingWithEdges
Returns

enum cat_rendering_mode

rotate(i_axis, i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Rotate(CATSafeArrayVariant iAxis,
double iAngle)

Applies a rotation. The rotation of iAngle degrees is applied to the
viewer’s contents around the axis iAxis (an array of 3 Variants), the invariant
point being the target (ie: Origin +
FocusDistance*SightDirection).

Example:
This applies a rotation of 10 degrees around the Up Direction to the
contents of the MyViewer3D viewer.

MyViewer3D.Rotate MyViewer3D.UpDirection, 10
Parameters
  • i_axis (tuple) –

  • i_angle (float) –

Returns

None

translate(i_vector)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Translate(CATSafeArrayVariant iVector)

Applies a translation. The translation vector is iVector (an array of 3
Variants).

Example:
This applies a translation along (1, 1, 1) to the contents of the
MyViewer3D viewer.

MyViewer3D.Translate Array(1, 1, 1)
Parameters

i_vector (tuple) –

Returns

None

property viewpoint3_d

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viewpoint3D() As Viewpoint3D

Returns or sets the 3D viewpoint of a 3D viewer.

Example:
This example retrieves the Nice3DViewpoint 3D viewpoint from the
My3DViewer 3D viewer.

Dim Nice3DViewpoint As Viewpoint3D
Set Nice3DViewpoint = My3DViewer.Viewpoint3D
Returns

Viewpoint3D

viewers

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.in_interfaces.viewers.Viewers(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
Viewers

A collection of all the Viewer objects currently attached to a
window.
For a SpecsAndGeomWindow object, the viewer containing the geometry is the
first viewer, and the viewer containing the specification tree is the second
viewer.
item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(long iIndex) As Viewer

Returns a viewer using its index from the Viewers collection. The first
item has the rank 1 in the collection.

Parameters:

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

AnyObject.Name property.
Returns:
The retrieved viewer

Example:
This example returns in MyViewer the second viewer in the
collection.

Dim MyViewer As Viewer
Set MyViewer = Viewer.Item(2)
Parameters

i_index (int) –

Returns

Viewer

viewpoint2_d

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.in_interfaces.viewpoint2_d.Viewpoint2D(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Viewpoint2D

Represents the 2D viewpoint.
The 2D viewpoint is the object that stores data which defines how your objects
are seen to enable their display by a 2D viewer. This data includes namely the
origin of the scene, that is the center of the displayed area, and the zoom
factor.
get_origin(o_origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Gets the coordinates of the origin of the viewpoint.

Example:
This example Gets the origin of the NiceViewpoint
viewpoint.

Dim origin(1)
NiceViewpoint.GetOrigin origin
Parameters

o_origin (tuple) –

Returns

None

put_origin(o_origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutOrigin(CATSafeArrayVariant oOrigin)

Sets the coordinates of the origin of the viewpoint.

Example:
This example sets the origin of the NiceViewpoint viewpoint to the
point with coordinates (5, 8).

NiceViewpoint.PutOrigin Array(5, 8)
Parameters

o_origin (tuple) –

Returns

None

property zoom

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Zoom() As double

Returns or sets the zoom factor associated with the
viewpoint.

Example:
This example retrieves in ZoomFactor the zoom factor associated with
the NiceViewpoint viewpoint, tests if it is less than 1, and if so, sets it to
one and applies it to the viewpoint.

ZoomFactor = NiceViewpoint.Zoom
If ZoomFactor < 1 Then
ZoomFactor = 1
NiceViewpoint.Zoom(ZoomFactor)
End If
Returns

float

viewpoint3_d

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.in_interfaces.viewpoint3_d.Viewpoint3D(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Viewpoint3D

Represents the 3D viewpoint.
The 3D viewpoint is the object that stores data which defines how your objects
are seen to enable their display by a 3D viewer. This data includes namely the
eye location, also named the origin, the distance from the eye to the target,
that is to the looked at point in the scene, the sight, up, and right
directions, defining a 3D axis system with the eye location as origin, the
projection type chosen among perspective (conic) and parallel (cylindric), and
the zoom factor. The right direction is not exposed in a property, and is
automatically computed from the sight and up directions.

See also:
CatProjectionMode
property field_of_view

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FieldOfView() As double

Returns or sets the field of view associated with the viewpoint. The field
of view is half of the vertical angle of the viewpoint, expressed in degrees.
This property exists with the perspective (conic) projection type
only.

Example:
This example retrieves in HalfAngle the field of view associated with
the NiceViewpoint viewpoint.

HalfAngle = NiceViewpoint.FieldOfView
Returns

float

property focus_distance

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FocusDistance() As double

Returns or sets the focus distance of the viewpoint. The focus distance
determines the target position, that is the point at which the eye located at
the origin and looking towards the sight direction is looking at. It is
expressed in model units.

Example:
This example sets the focus distance of the NiceViewpoint viewpoint to
10.

NiceViewpoint.FocusDistance = 10
Returns

float

get_origin(origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant origin)

Retrieves the coordinates of the origin of the viewpoint. These coordinates
are returned as an array of 3 Variants (double type).

Example:
This example retrieves the origin of the NiceViewpoint viewpoint in the
origin variable.

Dim origin(2)
NiceViewpoint.GetOrigin origin
Parameters

origin (tuple) –

Returns

None

get_sight_direction(o_sight)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSightDirection(CATSafeArrayVariant oSight)

Gets the components of the sight direction of the viewpoint. The sight
direction is the line passes both by the origin of the viewpoint and by the
target.

Example:
This example gets the sight direction of the
NiceViewpoint

Dim sight(2)
NiceViewpoint.GetSightDirection sight
Parameters

o_sight (tuple) –

Returns

None

get_up_direction(o_up)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetUpDirection(CATSafeArrayVariant oUp)

Gets the components of the up direction of the viewpoint.

Example:
This example gets the up direction of the
NiceViewpoint.

Dim up(2)
NiceViewpoint.GetUpDirection up
Parameters

o_up (tuple) –

Returns

None

property projection_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ProjectionMode() As CatProjectionMode

Returns or sets the projection mode.

Example:
This example sets the projection mode for the My3DViewer 3D viewer to
catProjectionConic.

My3DViewer.Viewpoint3D.NavigationStyle = catProjectionConic
Returns

enum cat_projection_mode

put_origin(origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutOrigin(CATSafeArrayVariant origin)

Sets the coordinates of the origin of the viewpoint. These coordinates are
set as an array of 3 Variants (double type).

Example:
This example sets the origin of the NiceViewpoint viewpoint. to the
point with coordinates (10, 25, 15).

NiceViewpoint.PutOrigin Array(10, 25, 15)
Parameters

origin (tuple) –

Returns

None

put_sight_direction(o_sight)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutSightDirection(CATSafeArrayVariant oSight)

Sets the components of the sight direction of the viewpoint. The sight
direction is the line passes both by the origin of the viewpoint and by the
target.

Example:
This example sets the sight direction of the NiceViewpoint viewpoint to
the direction with components (1.414, 1.414, 0).

NiceViewpoint.PutSightDirection Array(1.414, 1.414,
0)
Parameters

o_sight (tuple) –

Returns

None

put_up_direction(o_up)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutUpDirection(CATSafeArrayVariant oUp)

Sets the components of the up direction of the viewpoint.

Example:
This example sets the up direction of the NiceViewpoint viewpoint to
the direction with components (0, 0, 1).

NiceViewpoint.PutUpDirection Array(0, 0, 1)
Parameters

o_up (tuple) –

Returns

None

property zoom

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Zoom() As double

Returns or sets the zoom factor associated with the viewpoint. This
property exists with the parallel (cylindric) projection type
only.

Example:
This example retrieves in ZoomFactor the zoom factor associated with
the NiceViewpoint viewpoint, tests if it is greater than 2, and if so, sets it
to one and applies it.

ZoomFactor = NiceViewpoint.Zoom
If ZoomFactor > 2 Then
ZoomFactor = 1
NiceViewpoint.Zoom(ZoomFactor)
End If
Returns

float

vis_property_set

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.in_interfaces.vis_property_set.VisPropertySet(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
VisPropertySet

Represents the graphic properties for the current selection.
Role: We retrieve the graphic properties of the current selection thanks to
Selection.VisProperties

The graphic properties are:

The Color

The Color is defined by 3 components (red,green,blue). Each component
ranges from 0 to 255
The Opacity

The opacity is defined from 255 (total opacity) to 0 (total transparency).
In Material visualization mode the transparency is real, so the element is
truly more or less opaque. But in another visualization mode, the transparency
is a simulation, so if the opacity is between 0 and 254 the element is
transparent but with the same visual effect and if the opacity is 255 the
element is opaque.
The width of a line

Each index defines a width customizable in Tools/Options.
The type of a line

Solid, Dashed, …
The symbol of a point

Star, Dot, …

A partial modification of an object
A part (for example) contains faces, edges, lines, points. Interactively with
the Edit Properties command the end user can change their color, their line
type and so one. To go faster there is the Graphic Toolbar which contains a
sub-set of properties. So this interface follows the behavior of the graphic
toolbar. The color, the line type … is applicated to the sub-element of the
object defined by the application, and that you can retrieve in the graphic
toolbar.

A multiple selection
When we modify a graphic property using the Setxxx methods, we modify one by
one each element of the current selection.
When we read a graphic property using the Getxxx methods, we retrieve an
information which is valid for all elements of the current
selection.

Real versus Visible graphic properties
Elements of the current selection are inside a specification
tree:

Example :

Product0
Part1
Part3
Part2



In this sample, product0 and Part1 are nodes and Part3 and Part2 are
leaves.
Each element (node and leaf) of this tree has its own graphic properties: that
is the “Real” graphic properties.
But there is an inheritance mecanism, so each element has also “Visible”
graphic properties. An element can be displayed with an another graphic
properties that its real graphic properties.

The inheritance is the following:
From the root of the tree, the first node with an inheritance flag to 1, gives
its property to each element below it. For each graphic property there is an
independantly inheritance.

Example with the color property: ( color inheritance flag,
color)

Product0 (1,red)
Part1 (0,blue)
Part3 (1,green)
Part2 (0,Yellow)



In this sample the real colord of the product0 is red, blue for the part1,
green for the part3 and yellow for the part2. But the visible color of each
element is red, because the product0 gives the red color at all the
tree.

See also:
Selection
get_layer(o_layer_type, o_layer_value)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLayer(CatVisLayerType oLayerType,
long oLayerValue) As CatVisPropertyStatus

Returns the layer for the current selection.
Note: This property is global for the object.

Parameters:

oLayerType
the type of the layer
When the type is equal to catVisLayerNone, the layer of the current
selection is “none”.
When the type is equal to catVisLayerBasic, the layer of the
currection selection is indicated by the following
parameter.
oLayerValue
A value between 0 to 1000
This parameter is usefull only when the type of the layer is
catVisLayerBasic.

Example:

The following sample shows how to retrieve layer of current
selection.


Dim layer
layer = CLng(0)
Dim layertype As CatVisLayerType
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetLayer layertype, layer
If (layertype = catVisLayerNone) Then
MsgBox “Layer None”
End If
If (layertype = catVisLayerBasic) Then
MsgBox “layer =” & layer
End If
Parameters
  • o_layer_type (CatVisLayerType) –

  • o_layer_value (int) –

Returns

enum cat_vis_property_status

get_pick(o_pick)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPick(CatVisPropertyPick oPick) As
CatVisPropertyStatus

Returns the state pick mode for the current selection.
Note: This property is global for the object.

Example:

The following sample shows how to retrieve pick mode of current
selection.


Dim pickstate As CatVisPropertyPick
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetPick pickstate
MsgBox “pick = ” & pickstate
Parameters

o_pick (CatVisPropertyPick) –

Returns

enum cat_vis_property_status

get_real_color(o_red, o_green, o_blue)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRealColor(long oRed,
long oGreen,
long oBlue) As CatVisPropertyStatus

Retrieves the real color for the current selection.

Parameters:

oRed
A value between 0 and 255
oGreen
A value between 0 and 255
oBlue
A value between 0 and 255
oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same real color,
so oRed, oGreen and oBlue are valid
catVisPropertyUnDefined
The real color is not the same for all elements of the current
selection, so oRed, oGreen and oBlue are not valid


Example:

The following sample shows how to retrieve real colors of current
selection.


Dim r, g, b
r = CLng(0)
g = CLng(0)
b = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetRealColor r, g, b
MsgBox “r = ” & r & ” g = ” & g & ” b = ” & b
Parameters
  • o_red (int) –

  • o_green (int) –

  • o_blue (int) –

Returns

enum cat_vis_property_status

get_real_inheritance(i_property_type, o_inheritance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRealInheritance(CatVisPropertyType iPropertyType,
long oInheritance) As CatVisPropertyStatus

Retrieves the real inheritance flag for the current
selection.

Parameters:

iPropertyType
The type of property: Color, Opacity, Line Width, Line Type

oInheritance

0
No heritance
1
Heritance

oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same real
inheritance flag for the iPropertyType , so oInheritance is valid

catVisPropertyUnDefined
The real inheritance flag for iPropertyType is not the same for
all elements of the current selection, so oInheritance is not valid


Example:

The following sample shows how to retrieve inheritance of current
selection.


Dim inhLineType, inhWidth, inhColor, inhOpacity
inhLineType = CLng(0)
inhWidth = CLng(0)
inhColor = CLng(0)
inhOpacity = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetRealInheritance catVisPropertyLineType,
inhLineType
visProperties1.GetRealInheritance catVisPropertyWidth,
inhWidth
visProperties1.GetRealInheritance catVisPropertyColor,
inhColor
visProperties1.GetRealInheritance catVisPropertyOpacity,
inhOpacity
MsgBox “Inheritance : linetype = ” & inhLineType & “width =” & inhWidth & “Colour =”
& inhColor & “Opacity =” & inhOpacity
Parameters
  • i_property_type (CatVisPropertyType) –

  • o_inheritance (int) –

Returns

enum cat_vis_property_status

get_real_line_type(o_line_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRealLineType(long oLineType) As
CatVisPropertyStatus

Retrieves the real line type for the current selection.

Parameters:

oLineType
The value ranges from 1 to 63. Each indice is a line type
customizable in the page Tools/Options/General/Display/Line Type.

oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same real line
type , so oLineType is valid
catVisPropertyUnDefined
The real line type is not the same for all elements of the
current selection, so oLineType is not valid
catVisProperty?
At least one element of the current selection is not concerned
by this property, so oLineType is not valid

Example:

The following sample shows how to retrieve real line type of current
selection.


Dim linetype
linetype = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetRealLineType linetype
MsgBox “linetype = ” & linetype
Parameters

o_line_type (int) –

Returns

enum cat_vis_property_status

get_real_opacity(o_opacity)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRealOpacity(long oOpacity) As CatVisPropertyStatus

Retrieves the real opacity for the current selection.

Parameters:

oOpacity
a value between 0 (total transparency) and 255 (total opacity)

oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same real
opacity value, so oOpacity is valid
catVisPropertyUnDefined
The real opacity value is not the same for all elements of the
current selection, so oOpacity is not valid
catVisProperty?
At least one element of the current selection is not concerned
by this property, so oOpacity is not valid

Example:

The following sample shows how to retrieve real opacity of current
selection.


Dim op
op = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetRealOpacity op
MsgBox “opacity = ” & op
Parameters

o_opacity (int) –

Returns

enum cat_vis_property_status

get_real_width(o_line_width)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRealWidth(long oLineWidth) As CatVisPropertyStatus

Retrieves the real line width for the current selection.

Parameters:

oLineWidth
The value ranges from 1 to 63. Each indice is a thickness
customizable in the page Tools/Options/General/Display/thickness.

oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same real width
, so oLineWidth is valid
catVisPropertyUnDefined
The real width is not the same for all elements of the current
selection, so oLineWidth is not valid
catVisProperty?
At least one element of the current selection is not concerned
by this property, so oLineWidth is not valid

Example:

The following sample shows how to retrieve real line width of current
selection.


Dim width
width = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetRealWidth width
MsgBox “width = ” & width
Parameters

o_line_width (int) –

Returns

enum cat_vis_property_status

get_show(o_show)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetShow(CatVisPropertyShow oShow) As
CatVisPropertyStatus

Returns the state show mode for the current selection.
Note: This property is global for the object.

Example:

The following sample shows how to retrieve show mode of current
selection.


Dim showstate As CatVisPropertyShow
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetShow showstate
MsgBox “show = ” & showstate
Parameters

o_show (CatVisPropertyShow) –

Returns

enum cat_vis_property_status

get_symbol_type(o_symbol_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSymbolType(long oSymbolType) As
CatVisPropertyStatus

Retrieves the symbol type for the current selection.

Parameters:

oSymbolType
The symbol type. See

SetSymbolType to have values.
oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same symbol type ,
so oLineType is valid
catVisPropertiesUnDefined
The symbol type is not the same for all elements of the current
selection, so oLineType is not valid
catVisProperty?
At least one element of the current selection is not concerned by
this property, so oSymbolType is not valid

Example:

The following sample shows how to retrieve symbol line type of
current selection.


Dim symbol
symbol = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetSymbolType symbol
MsgBox “Symbol = ” & symbol
Parameters

o_symbol_type (int) –

Returns

enum cat_vis_property_status

get_visible_color(o_red, o_green, o_blue)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetVisibleColor(long oRed,
long oGreen,
long oBlue) As CatVisPropertyStatus

Retrieves the displayed (visible) color for the current
selection.

Parameters:

oRed
a value between 0 and 255
oGreen
a value between 0 and 255
oBlue
a value between 0 and 255
oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same visible
color, so oRed, oGreen and oBlue are valid
catVisPropertyUnDefined
The visible color is not the same for all elements of the
current selection, so oRed, oGreen and oBlue are not valid


Example:

The following sample shows how to retrieve displayed colors of
current selection.


Dim r, g, b
r = CLng(0)
g = CLng(0)
b = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetVisibleColor r, g, b
MsgBox “r = ” & r & ” g = ” & g & ” b = ” & b
Parameters
  • o_red (int) –

  • o_green (int) –

  • o_blue (int) –

Returns

enum cat_vis_property_status

get_visible_inheritance(i_property_type, o_inheritance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetVisibleInheritance(CatVisPropertyType
iPropertyType,
long oInheritance) As CatVisPropertyStatus

Checks if the real property is hidden.

Parameters:

iPropertyType
The type of property : Color, Opacity, Line Width, Line Type
oInheritance

0
No heritance: All parents of each element of the current
selection have an inheritance flag to 0.
1
Heritance: one parent of each element, perhaps the element
itself, as a inheritance flag to 1.

oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same inheritance
flag for the iPropertyType , so oInheritance is valid

catVisPropertyUnDefined
The inheritance flag for iPropertyType is not the same for all
elements of the current selection, so oInheritance is not valid
Parameters
  • i_property_type (CatVisPropertyType) –

  • o_inheritance (int) –

Returns

enum cat_vis_property_status

get_visible_line_type(o_line_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetVisibleLineType(long oLineType) As
CatVisPropertyStatus

Retrieves the displayed (visible) line type for the current
selection.

Parameters:

oLineType
A value ranges from 1 to 63.
oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same visible
line type , so oLineType is valid
catVisPropertyUnDefined
The visible line type is not the same for all elements of the
current selection, so oLineType is not valid
catVisProperty?
At least one element of the current selection is not concerned
by this property, so oLineType is not valid

Example:

The following sample shows how to retrieve displayed line type of
current selection.


Dim linetype
linetype = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetVisibleLineType linetype
MsgBox “linetype = ” & linetype
Parameters

o_line_type (int) –

Returns

enum cat_vis_property_status

get_visible_opacity(o_opacity)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetVisibleOpacity(long oOpacity) As
CatVisPropertyStatus

Retrieves the displayed (visible) opacity for the current
selection.

Parameters:

oOpacity
a value between 0 (total transparency) and 255 (total opacity)

oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same visible
opacity value, so oOpacity is valid
catVisPropertyUnDefined
The visible opacity value is not the same for all elements of
the current selection, so oOpacity is not valid

catVisProperty?
At least one element of the current selection is not concerned
by this property, so oOpacity is not valid

Example:

The following sample shows how to retrieve displayed opacity of
current selection.


Dim op
op = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetVisibleOpacity op
MsgBox “opacity = ” & op
Parameters

o_opacity (int) –

Returns

enum cat_vis_property_status

get_visible_width(o_line_width)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetVisibleWidth(long oLineWidth) As
CatVisPropertyStatus

Retrieves the displayed (visible) line width for the current
selection.

Parameters:

oLineWidth
A value ranges from 1 to 63.
oStatus
Legal value:

catVisPropertyDefined
All elements in the current selection have the same visible
width , so oLineWidth is valid
catVisPropertyUnDefined
The visible width is not the same for all elements of the
current selection, so oLineWidth is not valid
catVisProperty?
At least one element of the current selection is not concerned
by this property, so oLineWidth is not valid

Example:

The following sample shows how to retrieve displayed line width of
current selection.


Dim width
width = CLng(0)
Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.GetVisibleWidth width
MsgBox “width = ” & width
Parameters

o_line_width (int) –

Returns

enum cat_vis_property_status

set_layer(i_layer_type, i_layer_value)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLayer(CatVisLayerType iLayerType,
long iLayerValue)

Sets the layer for the current selection.
Note: This property is global for the object.

Parameters:

iLayerType
the type of the layer
iLayerValue
A value between 0 to 1000
This parameter is used only when the type of the layer is
catVisLayerBasic.

Example:

The following sample shows how to change layer of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetLayer catVisLayerBasic, 100
Parameters
  • i_layer_type (CatVisLayerType) –

  • i_layer_value (int) –

Returns

None

set_pick(i_pick)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPick(CatVisPropertyPick iPick)

Sets the state pick mode for the current selection.
Note: This property is global for the object.

Example:

The following sample shows how to change pick mode of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetPick catVisPropertyNoPickAttr
Parameters

i_pick (CatVisPropertyPick) –

Returns

None

set_real_color(i_red, i_green, i_blue, i_inheritance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRealColor(long iRed,
long iGreen,
long iBlue,
long iInheritance)

Sets the real color and the color inheritance flag for the current
selection.

Parameters:

iRed
A value between 0 and 255
iGreen
A value between 0 and 255
iBlue
A value between 0 and 255
iInheritance
Legal value:

0
No heritance
1
Heritance

Example:

The following sample shows how to change colour of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetRealColor 255,0,0,1
Parameters
  • i_red (int) –

  • i_green (int) –

  • i_blue (int) –

  • i_inheritance (int) –

Returns

None

set_real_line_type(i_line_type, i_inheritance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRealLineType(long iLineType,
long iInheritance)

Sets the real line type and the line type inheritance flag for the current
selection.

Parameters:

iLineType
The value ranges from 1 to 63. Each indice is a line type
customizable in the page Tools/Options/General/Display/Line Type.

iInheritance
Legal value:

0
No heritance
1
Heritance

Example:

The following sample shows how to change line type of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetRealLineType 4,1
Parameters
  • i_line_type (int) –

  • i_inheritance (int) –

Returns

None

set_real_opacity(i_opacity, i_inheritance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRealOpacity(long iOpacity,
long iInheritance)

Sets the opacity and the opacity inheritance flag for the current
selection.

Parameters:

iOpacity
A value between 0 (total transparency) and 255 (total opacity).

iInheritance
Legal value:

0
No heritance

Example:

The following sample shows how to change opacity of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetRealOpacity 128,1
Parameters
  • i_opacity (int) –

  • i_inheritance (int) –

Returns

None

set_real_width(i_line_width, i_inheritance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRealWidth(long iLineWidth,
long iInheritance)

Sets the real line width and the line width inheritance flag for the
current selection.

Parameters:

iLineWidth
The value ranges from 1 to 63. Each indice is a thickness
customizable in the page Tools/Options/General/Display/thickness.

iInheritance
Legal value:

0
No heritance
1
Heritance

Example:

The following sample shows how to change line width of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetRealWidth 4,1
Parameters
  • i_line_width (int) –

  • i_inheritance (int) –

Returns

None

set_show(i_show)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetShow(CatVisPropertyShow iShow)

Sets the state show mode for the current selection.
Note: This property is global for the object.

Example:

The following sample shows how to change show mode of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetShow catVisPropertyNoShowAttr
Parameters

i_show (CatVisPropertyShow) –

Returns

None

set_symbol_type(i_symbol_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSymbolType(long iSymbolType)

Sets the symbol type.
Note:There is no heritage for symbols. That is why there is only one
function “SetSymbolType” and no function “SetRealSymbolType” or
“SetVisibleSymbolType”

Parameters:

iSymbolType
The symbol type
legal values:

1 : a cross which looks like a “X”.
2 : a cross which looks like a “+”
3 : an unfilled circle
4 : two unfilled concentric circles
5 : a filled circle
6 : a filled square
7 : a star which is the union of a 2D marker CROSS ,a 2D marker PLUS and a 2D marker
DOT
8 : a dot
9 : a smalldot (one pixel)
10 : a kind of arrow which points to the bottom-left

11 : a kind of arrow which points to the top-right

FULLCIRCLE2 : a big 12
FULLSQUARE2 : a big 13

Example:

The following sample shows how to change symbol type of current
selection.


Set visProperties1 = CATIA.ActiveDocument.Selection.VisProperties
visProperties1.SetSymbolType 4
Parameters

i_symbol_type (int) –

Returns

None

visualization_setting_att

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.in_interfaces.visualization_setting_att.VisualizationSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
VisualizationSettingAtt

The interface to access a CATIAVisualizationSettingAtt.
property accurate_picking_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AccuratePickingMode() As boolean

Returns the AccuratePickingMode parameter.
Returns

bool

property accurate_picking_window_size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AccuratePickingWindowSize() As long

Returns the AccuratePickingWindowSize parameter.
Returns

int

property all_z_buffer_element_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AllZBufferElementMode() As boolean

Returns the AllZBufferElementMode parameter.
Returns

bool

property ambient_activation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AmbientActivation() As long

Returns the AmbientActivation parameter.
Returns

int

property anti_aliasing_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AntiAliasingMode() As boolean

Returns the AntiAliasingMode parameter.
Returns

bool

property anti_aliasing_offset

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AntiAliasingOffset() As double

Returns the AntiAliasingOffset parameter.
Returns

float

property auxiliary_drill_viewer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AuxiliaryDrillViewer() As boolean

Returns the AuxiliaryDrillViewer parameter.
Returns

bool

property back_face_culling_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BackFaceCullingMode() As boolean

Deprecated:
V5R16. Returns the BackFaceCullingMode parameter.
Returns

bool

property border_edges_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BorderEdgesMode() As boolean

Returns the BorderEdgesMode parameter.
Returns

bool

property border_edges_thickness

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BorderEdgesThickness() As long

Returns the BorderEdgesThickness parameter.
Returns

int

property bounding_box_selection_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BoundingBoxSelectionMode() As boolean

Returns the BoundingBoxSelectionMode parameter.
Returns

bool

property color_background_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColorBackgroundMode() As boolean

Returns the ColorBackgroundMode parameter.
Returns

bool

property default_diffuse_ambient_coefficient

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultDiffuseAmbientCoefficient() As double

Returns the AmbientActivation parameter.
Returns

float

property default_shininess

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultShininess() As double

Returns the AmbientActivation parameter.
Returns

float

property default_specular_coefficient

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultSpecularCoefficient() As double

Returns the AmbientActivation parameter.
Returns

float

property display_current_scale

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayCurrentScale() As boolean

Returns the SetStereoModeLock parameter.
Returns

bool

property display_drill_list

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayDrillList() As boolean

Returns the DisplayDrillList parameter.
Returns

bool

property display_immersive_drill_viewer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayImmersiveDrillViewer() As boolean

Returns the DisplayImmersiveDrillViewer parameter.
Returns

bool

property dynamic_cull

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DynamicCull() As long

Returns the DynamicCull parameter.
Returns

int

property dynamic_lod

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DynamicLOD() As double

Returns the DynamicLOD parameter.
Returns

float

property face_hl_drill

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FaceHLDrill() As boolean

Returns the FaceHLDrill parameter.
Returns

bool

property fly_collision_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FlyCollisionMode() As boolean

Returns the FlyCollisionMode parameter.
Returns

bool

property fly_collision_sphere_radius

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FlyCollisionSphereRadius() As double

Returns the FlyCollisionSphereRadius parameter.
Returns

float

property fly_collision_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FlyCollisionType() As long

Returns the FlyCollisionType parameter.
Returns

int

property fly_sensitivity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FlySensitivity() As long

Returns the FlySensitivity parameter.
Returns

int

property fly_speed

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FlySpeed() As long

Returns the FlySpeed parameter.
Returns

int

property fly_speed_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FlySpeedMode() As long

Returns the FlySpeedMode parameter.
Returns

int

property follow_ground_altitude

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FollowGroundAltitude() As double

Returns the FollowGroundAltitude parameter.
Returns

float

property follow_ground_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FollowGroundMode() As boolean

Returns the FollowGroundMode parameter.
Returns

bool

property full_scene_anti_aliasing_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FullSceneAntiAliasingMode() As
CATFullSceneAntiAliasingMode

Returns the AntiAliasingMode parameter.
Returns

enum cat_full_scene_anti_aliasing_mode

get_accurate_picking_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAccuratePickingModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AccuratePickingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_accurate_picking_window_size_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAccuratePickingWindowSizeInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AccuratePickingWindowSize setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_all_z_buffer_element_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAllZBufferElementModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AllZBufferElementMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_ambient_activation_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAmbientActivationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AmbientActivation setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_anti_aliasing_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAntiAliasingModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AntiAliasingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_anti_aliasing_offset_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAntiAliasingOffsetInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AntiAliasingOffset setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_auxiliary_drill_viewer_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAuxiliaryDrillViewerInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AuxiliaryDrillViewer setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_back_face_culling_mode()

Note

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

Retrieves the BackFaceCullingMode parameter.

Parameters:

oBackFaceCullingMode
Value of the back face culling mode setting option. The retrieved
value can be one of the four possible values defined by the


CATBackFaceCullingMode enumeration.
Returns:
An HRESULT.
Legal values:

S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
Returns

enum cat_back_face_culling_mode

get_back_face_culling_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBackFaceCullingModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the BackFaceCullingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_background_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetBackgroundRGB(long ioR,
long ioG,
long ioB)

Returns the BackgroundRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_background_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBackgroundRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the BackgroundRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_border_edges_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBorderEdgesModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the BorderEdgesMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_border_edges_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetBorderEdgesRGB(long ioR,
long ioG,
long ioB)

Returns the BorderEdgesRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_border_edges_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBorderEdgesRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the BorderEdgesRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_border_edges_thickness_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBorderEdgesThicknessInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the BorderEdgesThickness setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_bounding_box_selection_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBoundingBoxSelectionModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the BoundingBoxSelectionMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_color_background_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColorBackgroundModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ColorBackgroundMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_default_diffuse_ambient_coefficient_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultDiffuseAmbientCoefficientInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DefaultDiffuseAmbientCoefficient setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_default_shininess_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultShininessInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DefaultShininess setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_default_specular_coefficient_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultSpecularCoefficientInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DefaultSpecularCoefficient setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_display_current_scale_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayCurrentScaleInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the SetStereoModeLock setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_display_drill_list_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayDrillListInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DisplayDrillList setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_display_immersive_drill_viewer_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayImmersiveDrillViewerInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DisplayImmersiveDrillViewer setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_dynamic_cull_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDynamicCullInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DynamicCull setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_dynamic_lod_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDynamicLODInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the DynamicLOD setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_face_hl_drill_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFaceHLDrillInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FaceHLDrill setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_fly_collision_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFlyCollisionModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FlyCollisionMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_fly_collision_sphere_radius_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFlyCollisionSphereRadiusInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FlyCollisionSphereRadius setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_fly_collision_type_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFlyCollisionTypeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FlyCollisionType setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_fly_sensitivity_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFlySensitivityInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FlySensitivity setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_fly_speed_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFlySpeedInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FlySpeed setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_fly_speed_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFlySpeedModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FlySpeedMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_follow_ground_altitude_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFollowGroundAltitudeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FollowGroundAltitude setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_follow_ground_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFollowGroundModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the FollowGroundMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_full_scene_anti_aliasing_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFullSceneAntiAliasingModeInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the AntiAliasingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_gravity_axis_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetGravityAxisInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the GravityAxis setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_gravity_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetGravityInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the Gravity setting parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_halo_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetHaloModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the HaloMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_handles_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetHandlesRGB(long ioR,
long ioG,
long ioB)

Returns the HandlesRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_handles_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetHandlesRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the HandlesRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_isopar_generation_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetIsoparGenerationModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the IsoparGenerationMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_keyboard_rotation_angle_value_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetKeyboardRotationAngleValueInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the KeyboardRotationAngleValue setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_light_viewer_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLightViewerModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the LightViewerMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_lineic_cgr_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLineicCgrModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the LineicCgrMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_max_selection_move_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMaxSelectionMoveInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the MaxSelectionMove setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_minimum_fps_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMinimumFPSModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the MinimumFPSMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_minimum_space_fps_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMinimumSpaceFPSModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the MinimumSpaceFPSMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_mouse_double_clic_delay_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMouseDoubleClicDelayInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the MouseDoubleClicDelay setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_mouse_speed_value_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetMouseSpeedValueInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the MouseSpeedValue setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_nb_isopars_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbIsoparsInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the NbIsopars setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_no_show_background_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNoShowBackgroundRGB(long ioR,
long ioG,
long ioB)

Retrieves the No Show Background Color setting attribute
value.
Role: The No Show Background Color setting attribute manages the
backgraound color of no show space

Parameters:

ioR,
ioG, ioB [inout] The Red, Green, Blue components of the No Show
Background Color setting attribute value

Returns:
S_OK if the No Show Background Color setting attribute value is
successfully retrieved, and E_FAIL otherwise
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_no_show_background_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNoShowBackgroundRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves the No Show Background Color setting attribute
information.

Parameters:

ioAdminLevel,
ioLocked [inout] and oModified [out] The No Show Background Color
setting attribute information

Returns:
S_OK if the No Show Background Color setting attribute information is
successfully retrieved, and E_FAIL otherwise
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_no_z_buffer_selection_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNoZBufferSelectionModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the NoZBufferSelectionMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_number_of_minimum_fps_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNumberOfMinimumFPSInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the NumberOfMinimumFPS setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_number_of_minimum_space_fps_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNumberOfMinimumSpaceFPSInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the NumberOfMinimumSpaceFPS setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_occlusion_culling_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOcclusionCullingModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the OcclusionCullingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_opaque_faces_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOpaqueFacesInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the SetStereoModeLock setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_other_selection_timeout_activity_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOtherSelectionTimeoutActivityInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the OtherSelectionTimeoutActivity setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_other_selection_timeout_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOtherSelectionTimeoutInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the OtherSelectionTimeout setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_picking_window_size_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPickingWindowSizeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the PickingWindowSize setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_pre_selection_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPreSelectionModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the PreSelectionMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_preselected_element_linetype_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPreselectedElementLinetypeInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the PreselectedElementLinetype setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_preselected_element_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPreselectedElementRGB(long ioR,
long ioG,
long ioB)

Returns the PreselectedElementRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_preselected_element_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPreselectedElementRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the PreselectedElementRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_rotation_sphere_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRotationSphereModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the RotationSphereMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_selected_edge_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSelectedEdgeRGB(long ioR,
long ioG,
long ioB)

Returns the SelectedEdgeRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_selected_edge_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSelectedEdgeRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the SelectedEdgeRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_selected_element_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSelectedElementRGB(long ioR,
long ioG,
long ioB)

Returns the SelectedElementRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_selected_element_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSelectedElementRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the SelectedElementRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_shader_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetShaderModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ShaderMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_static_cull_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetStaticCullInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the StaticCull setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_static_lod_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetStaticLODInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the StaticLOD setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_stereo_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetStereoModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the StereoMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_transparency_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTransparencyModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the TransparencyMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_two_side_lighting_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTwoSideLightingModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the TwoSideLightingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_under_intensified_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetUnderIntensifiedRGB(long ioR,
long ioG,
long ioB)

Returns the UnderIntensifiedRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_under_intensified_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUnderIntensifiedRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the UnderIntensifiedRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_update_needed_rgb(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetUpdateNeededRGB(long ioR,
long ioG,
long ioB)

Returns the UpdateNeededRGB parameter.
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_update_needed_rgb_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUpdateNeededRGBInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the UpdateNeededRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viewpoint_animation_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViewpointAnimationModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ViewpointAnimationMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz2_d_accuracy_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz2DAccuracyModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the 2DAccuracyMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz2_d_fixed_accuracy_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz2DFixedAccuracyInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the 2DFixedAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz2_d_proportional_accuracy_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz2DproportionalAccuracyInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the 2DproportionalAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz3_d_accuracy_mode_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz3DAccuracyModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the Viz3DAccuracyMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz3_d_curve_accuracy_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz3DCurveAccuracyInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the 3DCurveAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz3_d_fixed_accuracy_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz3DFixedAccuracyInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the 3DFixedAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_viz3_d_proportional_accuracy_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetViz3DproportionalAccuracyInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the Viz3DproportionalAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property gravity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Gravity() As boolean

Returns the Gravity parameter.
Returns

bool

property gravity_axis

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GravityAxis() As long

Returns the GravityAxis parameter.
Returns

int

property halo_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HaloMode() As boolean

Returns the HaloMode parameter.
Returns

bool

property isopar_generation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property IsoparGenerationMode() As boolean

Returns the IsoparGenerationMode parameter.
Returns

bool

property keyboard_rotation_angle_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property KeyboardRotationAngleValue() As long

Retrieves the angle value for rotations operated through key combinations.
Returns

int

property light_viewer_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LightViewerMode() As boolean

Returns the LightViewerMode parameter.
Returns

bool

property lineic_cgr_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LineicCgrMode() As boolean

Returns the LineicCgrMode parameter.
Returns

bool

property max_selection_move

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MaxSelectionMove() As long

Returns the MaxSelectionMove parameter.
Returns

int

property minimum_fps_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MinimumFPSMode() As boolean

Returns the MinimumFPSMode parameter.
Returns

bool

property minimum_space_fps_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MinimumSpaceFPSMode() As boolean

Returns the MinimumSpaceFPSMode parameter.
Returns

bool

property mouse_double_clic_delay

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MouseDoubleClicDelay() As long

Returns the MouseDoubleClicDelay parameter.
Returns

int

property mouse_speed_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MouseSpeedValue() As long

Returns the MouseSpeedValue parameter.
Returns

int

property nb_isopars

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NbIsopars() As long

Returns the NbIsopars parameter.
Returns

int

property no_z_buffer_selection_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NoZBufferSelectionMode() As boolean

Returns the NoZBufferSelectionMode parameter.
Returns

bool

property number_of_minimum_fps

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NumberOfMinimumFPS() As long

Returns the NumberOfMinimumFPS parameter.
Returns

int

property number_of_minimum_space_fps

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NumberOfMinimumSpaceFPS() As long

Returns the NumberOfMinimumSpaceFPS parameter.
Returns

int

property occlusion_culling_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OcclusionCullingMode() As boolean

Returns the OcclusionCullingMode parameter.
Returns

bool

property opaque_faces

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OpaqueFaces() As boolean

Returns the SetStereoModeLock parameter.
Returns

bool

property other_selection_timeout

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OtherSelectionTimeout() As double

Returns the OtherSelectionTimeout parameter.
Returns

float

property other_selection_timeout_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OtherSelectionTimeoutActivity() As boolean

Returns the OtherSelectionTimeoutActivity parameter.
Returns

bool

property picking_window_size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PickingWindowSize() As long

Returns the PickingWindowSize parameter.
Returns

int

property pre_selection_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PreSelectionMode() As boolean

Returns the PreSelectionMode parameter.
Returns

bool

property preselected_element_linetype

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PreselectedElementLinetype() As long

Returns the PreselectedElementLinetype parameter.
Returns

int

put_back_face_culling_mode(i_back_face_culling_mode)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutBackFaceCullingMode(CATBackFaceCullingMode
iBackFaceCullingMode)

Sets the BackFaceCullingMode attribute.

Parameters:

iBackFaceCullingMode
Value of the back face culling mode setting option. The value to
set can be one of the four possible values defined by the


CATBackFaceCullingMode enumeration.
Returns:
An HRESULT.
Legal values:

S_OK
if the operation succeeded.
E_FAIL
if the operation failed.
Parameters

i_back_face_culling_mode (CATBackFaceCullingMode) –

Returns

None

property rotation_sphere_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RotationSphereMode() As boolean

Returns the RotationSphereMode parameter.
Returns

bool

set_accurate_picking_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAccuratePickingModeLock(boolean iLocked)

Locks or unlocks the AccuratePickingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_accurate_picking_window_size_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAccuratePickingWindowSizeLock(boolean iLocked)

Locks or unlocks the AccuratePickingWindowSize setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_all_z_buffer_element_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAllZBufferElementModeLock(boolean iLocked)

Locks or unlocks the AllZBufferElementMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_ambient_activation_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAmbientActivationLock(boolean iLocked)

Locks or unlocks the AmbientActivation setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_anti_aliasing_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAntiAliasingModeLock(boolean iLocked)

Locks or unlocks the AntiAliasingMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_anti_aliasing_offset_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAntiAliasingOffsetLock(boolean iLocked)

Locks or unlocks the AntiAliasingOffset setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_auxiliary_drill_viewer_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAuxiliaryDrillViewerLock(boolean iLocked)

Locks or unlocks the AuxiliaryDrillViewer setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_back_face_culling_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBackFaceCullingModeLock(boolean iLocked)

Locks or unlocks the BackFaceCullingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_background_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBackgroundRGB(long iR,
long iG,
long iB)

Sets the BackgroundRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_background_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBackgroundRGBLock(boolean iLocked)

Locks or unlocks the BackgroundRGB setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_border_edges_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBorderEdgesModeLock(boolean iLocked)

Locks or unlocks the BorderEdgesMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_border_edges_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBorderEdgesRGB(long iR,
long iG,
long iB)

Sets the BorderEdgesRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_border_edges_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBorderEdgesRGBLock(boolean iLocked)

Locks or unlocks the BorderEdgesRGB setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_border_edges_thickness_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBorderEdgesThicknessLock(boolean iLocked)

Locks or unlocks the BorderEdgesThickness setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_bounding_box_selection_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBoundingBoxSelectionModeLock(boolean iLocked)

Locks or unlocks the BoundingBoxSelectionMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_color_background_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColorBackgroundModeLock(boolean iLocked)

Locks or unlocks the ColorBackgroundMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_default_diffuse_ambient_coefficient_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultDiffuseAmbientCoefficientLock(boolean
iLocked)

Locks or unlocks the DefaultDiffuseAmbientCoefficient setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_default_shininess_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultShininessLock(boolean iLocked)

Locks or unlocks the DefaultShininess setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_default_specular_coefficient_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultSpecularCoefficientLock(boolean iLocked)

Locks or unlocks the DefaultSpecularCoefficient setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_display_current_scale_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayCurrentScaleLock(boolean iLocked)

Locks or unlocks the SetStereoModeLock setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_display_drill_list_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayDrillListLock(boolean iLocked)

Locks or unlocks the DisplayDrillList setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_display_immersive_drill_viewer_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayImmersiveDrillViewerLock(boolean iLocked)

Locks or unlocks the DisplayImmersiveDrillViewer setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_dynamic_cull_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDynamicCullLock(boolean iLocked)

Locks or unlocks the DynamicCull setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_dynamic_lod_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDynamicLODLock(boolean iLocked)

Locks or unlocks the DynamicLOD setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_face_hl_drill_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFaceHLDrillLock(boolean iLocked)

Locks or unlocks the FaceHLDrill setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_fly_collision_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFlyCollisionModeLock(boolean iLocked)

Locks or unlocks the FlyCollisionMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_fly_collision_sphere_radius_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFlyCollisionSphereRadiusLock(boolean iLocked)

Locks or unlocks the FlyCollisionSphereRadius setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_fly_collision_type_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFlyCollisionTypeLock(boolean iLocked)

Locks or unlocks the FlyCollisionType setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_fly_sensitivity_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFlySensitivityLock(boolean iLocked)

Locks or unlocks the FlySensitivity setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_fly_speed_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFlySpeedLock(boolean iLocked)

Locks or unlocks the FlySpeed setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_fly_speed_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFlySpeedModeLock(boolean iLocked)

Locks or unlocks the FlySpeedMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_follow_ground_altitude_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFollowGroundAltitudeLock(boolean iLocked)

Locks or unlocks the FollowGroundAltitude setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_follow_ground_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFollowGroundModeLock(boolean iLocked)

Locks or unlocks the FollowGroundMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_full_scene_anti_aliasing_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFullSceneAntiAliasingModeLock(boolean iLocked)

Locks or unlocks the AntiAliasingMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_gravity_axis_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetGravityAxisLock(boolean iLocked)

Locks or unlocks the GravityAxis setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_gravity_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetGravityLock(boolean iLocked)

Locks or unlocks the Gravity setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_halo_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetHaloModeLock(boolean iLocked)

Locks or unlocks the HaloMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_handles_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetHandlesRGB(long iR,
long iG,
long iB)

Sets the HandlesRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_handles_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetHandlesRGBLock(boolean iLocked)

Locks or unlocks the HandlesRGB setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_isopar_generation_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetIsoparGenerationModeLock(boolean iLocked)

Locks or unlocks the IsoparGenerationMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_keyboard_rotation_angle_value_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetKeyboardRotationAngleValueLock(boolean iLocked)

Locks or unlocks the KeyboardRotationAngleValue setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_light_viewer_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLightViewerModeLock(boolean iLocked)

Locks or unlocks the LightViewerMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_lineic_cgr_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLineicCgrModeLock(boolean iLocked)

Locks or unlocks the v setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_max_selection_move_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMaxSelectionMoveLock(boolean iLocked)

Locks or unlocks the MaxSelectionMove setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_minimum_fps_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMinimumFPSModeLock(boolean iLocked)

Locks or unlocks the MinimumFPSMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_minimum_space_fps_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMinimumSpaceFPSModeLock(boolean iLocked)

Locks or unlocks the MinimumSpaceFPSMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_mouse_double_clic_delay_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMouseDoubleClicDelayLock(boolean iLocked)

Locks or unlocks the MouseDoubleClicDelay setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_mouse_speed_value_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetMouseSpeedValueLock(boolean iLocked)

Locks or unlocks the MouseSpeedValue setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_nb_isopars_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNbIsoparsLock(boolean iLocked)

Locks or unlocks the NbIsopars setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_no_show_background_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNoShowBackgroundRGB(long iR,
long iG,
long iB)

Sets the No Show Background Color setting attribute value.
Role: The No Show Background Color setting attribute manages the
backgraound color of no show space

Parameters:

iR,
iG, iB [in] The Red, Green, Blue components of the No Show
Background Color setting attribute value
Legal values: between 0 and 255

Returns:
S_OK if the No Show Background Color setting attribute value is
successfully set, and E_FAIL otherwise
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_no_show_background_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNoShowBackgroundRGBLock(boolean iLocked)

Locks or unlocks the No Show Background Color setting
attribute.
Role: Locks or unlocks the No Show Background Color setting attribute if
the operation is allowed in the current administrated environment. In user mode
this method will always return E_FAIL.

Parameters:

iLocked
[in] A flag to indicate whether the No Show Background Color
setting attribute should be locked.
Legal values:
TRUE to lock
FALSE to unlock

Returns:
S_OK if the No Show Background Color setting attribute is successfully
locked or unlocked, and E_FAIL otherwise
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_no_z_buffer_selection_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNoZBufferSelectionModeLock(boolean iLocked)

Locks or unlocks the NoZBufferSelectionMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_number_of_minimum_fps_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNumberOfMinimumFPSLock(boolean iLocked)

Locks or unlocks the NumberOfMinimumFPS setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_number_of_minimum_space_fps_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNumberOfMinimumSpaceFPSLock(boolean iLocked)

Locks or unlocks the NumberOfMinimumSpaceFPS setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_occlusion_culling_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOcclusionCullingModeLock(boolean iLocked)

Locks or unlocks the OcclusionCullingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_opaque_faces_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOpaqueFacesLock(boolean iLocked)

Locks or unlocks the SetStereoModeLock setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_other_selection_timeout_activity_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOtherSelectionTimeoutActivityLock(boolean iLocked)

Locks or unlocks the OtherSelectionTimeoutActivity setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_other_selection_timeout_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOtherSelectionTimeoutLock(boolean iLocked)

Locks or unlocks the OtherSelectionTimeout setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_picking_window_size_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPickingWindowSizeLock(boolean iLocked)

Locks or unlocks the PickingWindowSize setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_pre_selection_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPreSelectionModeLock(boolean iLocked)

Locks or unlocks the PreSelectionMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_preselected_element_linetype_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPreselectedElementLinetypeLock(boolean iLocked)

Locks or unlocks the PreselectedElementLinetype setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_preselected_element_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPreselectedElementRGB(long iR,
long iG,
long iB)

Sets the PreselectedElementRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_preselected_element_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPreselectedElementRGBLock(boolean iLocked)

Locks or unlocks the PreselectedElementRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_rotation_sphere_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRotationSphereModeLock(boolean iLocked)

Locks or unlocks the RotationSphereMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_selected_edge_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSelectedEdgeRGB(long iR,
long iG,
long iB)

Sets the SelectedEdgeRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_selected_edge_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSelectedEdgeRGBLock(boolean iLocked)

Locks or unlocks the SelectedEdgeRGB setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_selected_element_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSelectedElementRGB(long iR,
long iG,
long iB)

Sets the SelectedElementRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_selected_element_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSelectedElementRGBLock(boolean iLocked)

Locks or unlocks the SelectedElementRGB setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_shader_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetShaderModeLock(boolean iLocked)

Locks or unlocks the ShaderMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_static_cull_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetStaticCullLock(boolean iLocked)

Locks or unlocks the StaticCull setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_static_lod_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetStaticLODLock(boolean iLocked)

Locks or unlocks the StaticLOD setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_stereo_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetStereoModeLock(boolean iLocked)

Locks or unlocks the StereoMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_transparency_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTransparencyModeLock(boolean iLocked)

Locks or unlocks the TransparencyMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_two_side_lighting_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTwoSideLightingModeLock(boolean iLocked)

Locks or unlocks the TwoSideLightingMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_under_intensified_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUnderIntensifiedRGB(long iR,
long iG,
long iB)

Sets the UnderIntensifiedRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_under_intensified_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUnderIntensifiedRGBLock(boolean iLocked)

Locks or unlocks the UnderIntensifiedRGB setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_update_needed_rgb(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUpdateNeededRGB(long iR,
long iG,
long iB)

Sets the UpdateNeededRGB parameter.
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_update_needed_rgb_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUpdateNeededRGBLock(boolean iLocked)

Locks or unlocks the UpdateNeededRGB setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viewpoint_animation_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViewpointAnimationModeLock(boolean iLocked)

Locks or unlocks the ViewpointAnimationMode setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz2_d_accuracy_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz2DAccuracyModeLock(boolean iLocked)

Locks or unlocks the 2DAccuracyMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz2_d_fixed_accuracy_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz2DFixedAccuracyLock(boolean iLocked)

Locks or unlocks the 2DFixedAccuracy setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz2_d_proportional_accuracy_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz2DproportionalAccuracyLock(boolean iLocked)

Locks or unlocks the 2DproportionalAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz3_d_accuracy_mode_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz3DAccuracyModeLock(boolean iLocked)

Locks or unlocks the Viz3DAccuracyMode setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz3_d_curve_accuracy_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz3DCurveAccuracyLock(boolean iLocked)

Locks or unlocks the 3DCurveAccuracy setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz3_d_fixed_accuracy_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz3DFixedAccuracyLock(boolean iLocked)

Locks or unlocks the 3DFixedAccuracy setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_viz3_d_proportional_accuracy_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetViz3DproportionalAccuracyLock(boolean iLocked)

Locks or unlocks the Viz3DproportionalAccuracy setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

property shader_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ShaderMode() As boolean

Returns the ShaderMode parameter.
Returns

bool

property static_cull

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property StaticCull() As long

Returns the StaticCull parameter.
Returns

int

property static_lod

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property StaticLOD() As double

Returns the StaticLOD parameter.
Returns

float

property stereo_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property StereoMode() As boolean

Returns the StereoMode parameter.
Returns

bool

property transparency_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TransparencyMode() As boolean

Returns the TransparencyMode parameter.
Returns

bool

property two_side_lighting_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TwoSideLightingMode() As boolean

Returns the TwoSideLightingMode parameter.
Returns

bool

property viewpoint_animation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ViewpointAnimationMode() As boolean

Returns the ViewpointAnimationMode parameter.
Returns

bool

property viz2_d_accuracy_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz2DAccuracyMode() As boolean

Returns the 2DAccuracyMode parameter.
Returns

bool

property viz2_d_fixed_accuracy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz2DFixedAccuracy() As double

Returns the 2DFixedAccuracy parameter.
Returns

float

property viz2_d_proportional_accuracy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz2DproportionalAccuracy() As double

Returns the 2DproportionalAccuracy parameter.
Returns

float

property viz3_d_accuracy_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz3DAccuracyMode() As boolean

Returns the Viz3DAccuracyMode parameter.
Returns

bool

property viz3_d_curve_accuracy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz3DCurveAccuracy() As double

Returns the 3DCurveAccuracy parameter.
Returns

float

property viz3_d_fixed_accuracy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz3DFixedAccuracy() As double

Returns the 3DFixedAccuracy parameter.
Returns

float

property viz3_d_proportional_accuracy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viz3DproportionalAccuracy() As double

Returns the Viz3DproportionalAccuracy parameter.
Returns

float

vrml_setting_att

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.in_interfaces.vrml_setting_att.VrmlSettingAtt(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
VrmlSettingAtt

The interface to access a CATIAVrmlSettingAtt.
This interface may be used to read or modify in the
CATIA/Tools/Option/General/Compatibility…. the settings values of the VRML
sheet.
property export_edges

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExportEdges() As boolean

Returns or sets the ExportEdges parameter (exported Vrml files will or will
not contains edge informations).

Parameters:

oExportEdges
- iExportEdges Value of ExportEdges parameter. Legal
values:
TRUE : exported Vrml files will contain edge informations.
FALSE : exported Vrml files will not contain edge informations.
Returns

bool

property export_normals

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExportNormals() As boolean

Returns or sets the ExportNormals parameter (exported Vrml files will or
will not contains normal informations).

Parameters:

oExportNormals
- iExportNormals Value of ExportNormals parameter. Legal
values:
TRUE : exported Vrml files will contain normal informations.
FALSE : exported Vrml files will not contain normal informations.
Returns

bool

property export_texture

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExportTexture() As boolean

Returns or sets the ExportTexture parameter (exported Vrml files will or
will not contains texture informations).

Parameters:

oExportTexture
- iExportTexture Value of ExportTexture parameter. Legal
values:
TRUE : exported Vrml files will contain texture informations.
FALSE : exported Vrml files will not contain texture informations.
Returns

bool

property export_texture_file

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExportTextureFile() As long

Returns or sets the ExportTextureFile parameter (Textures will be exported
in the vrml file containing the geometry or in external
files).

Parameters:

oExportTextureFile
- iExportTextureFile Value of ExportTextureFile parameter. Legal
values:
0 : Textures are exported in the Vrml file containing the geometry.
1 : Texture are exported in external files.
Returns

int

property export_texture_format

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExportTextureFormat() As long

Returns or sets the ExportTextureFormat parameter.

Parameters:

oExportTextureFormat
- iExportTextureFormat Value of ExportTextureFormat parameter.
Legal values:
NOT APPLICABLE
Returns

int

property export_version

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExportVersion() As long

Returns or sets the ExportVersion parameter (version of exported Vrml
files).

Parameters:

oExportVersion
- iExportVersion Value of Import Unit parameter. Legal
values:
1 : VRML 1.0.
2 : VRML 97 (VRML 2.0).
Returns

int

get_export_background_color(io_r, io_g, io_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetExportBackgroundColor(long ioR,
long ioG,
long ioB)

Returns the ExportBackgroundColor parameter (Background color of exported
Vrml files). Value of ExportBackgroundColor parameter. Legal
values:
R [0,255] G [0,255] B [0,255]
Parameters
  • io_r (int) –

  • io_g (int) –

  • io_b (int) –

Returns

None

get_export_background_color_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportBackgroundColorInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportBackgroundColor setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_export_edges_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportEdgesInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportEdges setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_export_normals_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportNormalsInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportNormals setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_export_texture_file_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportTextureFileInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportTextureFile setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_export_texture_format_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportTextureFormatInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportTextureFormat setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_export_texture_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportTextureInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportTexture setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_export_version_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExportVersionInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ExportVersion setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_import_crease_angle_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetImportCreaseAngleInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ImportCreaseAngle setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_import_unit_info(io_admin_level, io_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetImportUnitInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves information about the ImportUnit setting
parameter.
Refer to SettingController for a detailed description.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property import_crease_angle

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ImportCreaseAngle() As double

Returns or sets the ImportCreaseAngle parameter. The crease angle affects
how DEFAULT normals are generated. If the angle between the geometric normals
of two adjacent faces is less than the crease angle, normals will be calculated
so that the faces are smooth-shaded across the edge. Otherwise, normals will be
calculated so that a lighting discontinuity across the edge is
produce.

Parameters:

oImportCreaseAngle
- iImportCreaseAngle Value of ImportCreaseAngle parameter. Legal
values:
[0,inf]
Returns

float

property import_unit

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ImportUnit() As long

Returns or sets the ImportUnit parameter (unit of imported Vrml
files).

Parameters:

oImportUnit
- iImportUnit Value of Import Unit parameter. Legal
values:
0 : Millimeter.
1 : Centimeter.
2 : Meter.
Returns

int

set_export_background_color(i_r, i_g, i_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportBackgroundColor(long iR,
long iG,
long iB)

Sets the ExportBackgroundColor parameter (Background color of exported Vrml
files). Value of ExportBackgroundColor parameter. Legal
values:
R [0,255] G [0,255] B [0,255]
Parameters
  • i_r (int) –

  • i_g (int) –

  • i_b (int) –

Returns

None

set_export_background_color_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportBackgroundColorLock(boolean iLocked)

Locks or unlocks the ExportBackgroundColor setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_export_edges_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportEdgesLock(boolean iLocked)

Locks or unlocks the ExportEdges setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_export_normals_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportNormalsLock(boolean iLocked)

Locks or unlocks the ExportNormals setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_export_texture_file_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportTextureFileLock(boolean iLocked)

Locks or unlocks the ExportTextureFile setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_export_texture_format_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportTextureFormatLock(boolean iLocked)

Locks or unlocks the ExportTextureFormat setting
parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_export_texture_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportTextureLock(boolean iLocked)

Locks or unlocks the ExportTexture setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_export_version_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExportVersionLock(boolean iLocked)

Locks or unlocks the ExportVersion setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_import_crease_angle_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetImportCreaseAngleLock(boolean iLocked)

Locks or unlocks the ImportCreaseAngle setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

set_import_unit_lock(i_locked)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetImportUnitLock(boolean iLocked)

Locks or unlocks the ImportLock setting parameter.
Refer to SettingController for a detailed description.
Parameters

i_locked (bool) –

Returns

None

window

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.in_interfaces.window.Window(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Window

Represents the window.
The window is the object that accommodates one or several viewers to display
your objects, and which makes the link with the windowing
system.
activate()

Note

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

Activates a window. The active window is deactivated and the window to
which the method applies is activated instead.

Example:
This example activates the CADWindow window.

CADWindow.Activate()
Returns

None

activate_next()

Note

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

Activates the window following the current active one in the window
collection.

Example:
This example activates the window following the current CADWindow
window in the window collection.

CADWindow.ActivateNext()
Returns

None

activate_previous()

Note

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

Activates the window preceding the current active one in the window
collection.

Example:
This example activates the window preceding the current CADWindow
window in the window collection.

CADWindow.ActivatePrevious()
Returns

None

property active_viewer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ActiveViewer() As Viewer (Read Only)

Returns the active viewer in the window.

Example:
This example retrieves the active viewer in the CADWindow window in
ViewerToWorkIn.

Dim ViewerToWorkIn As Viewer
Set ViewerToWorkIn = CADWindow.ActiveViewer
Returns

Viewer

property caption

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Caption() As CATBSTR

Returns or sets the window caption. The window caption is displayed in the
title bar.

Example:
This example sets the window caption for the CADWindow window to: CAD
3D Window.

CADWindow.Caption = “CAD 3D Window”
Returns

str

close()

Note

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

Closes the window. This method displays the dialog box requesting whether
to save the file if the document was modified, except if the
Application.DisplayFileAlerts property was previously set to
False.

Example:
This example closes the CADWindow window.

CADWindow.Close()
Returns

None

property height

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Height() As long

Returns or sets the window height. The window height is expressed in
pixels.

Example:
This example sets the window height for the CADWindow window to 300
pixels.

CADWindow.Width = 300
Returns

int

property left

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Left() As long

Returns or sets the distance of the window with respect to the inner left
side of the frame. This distance is expressed in pixels.

Example:
This example sets the distance of the window with respect to the inner
left side of the frame for the CADWindow window to 150
pixels.

CADWindow.Left = 150
Returns

int

new_window()

Note

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

Creates a new window. The new window displays the same document with the
same viewers and viewpoints than the window to which the method applies, and
becomes the active one.

Example:
This example creates a new window named CADNewWindow from the CADWindow
window.

Dim CADNewWindow As Window
Set CADNewWindow = CADWindow.NewWindow()
Returns

Window

property page_setup

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PageSetup() As PageSetup

Returns or sets the page setup of the window. The page setup includes all
parameters to print the window.

Example:
This example sets the page setup for the CADWindow window to an
existing page setup for the A4 paper size A4PageSetup.

CADWindow.PageSetup = A4PageSetup
Returns

PageSetup

print_out()

Note

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

Prints the active viewer of the window according to the window’s page setup
on the default printer.

Example:
This example prints the CADWindow window’s active viewer on the default
printer.

CADWindow.PrintOut()
Returns

None

print_to_file(file_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PrintToFile(CATBSTR fileName)

Prints the active viewer of the window according to the window’s page setup
in a file instead of being sent to a printer.

Parameters:

fileName
The full pathname of the file receiving the data.

Example:
This example prints the CADWindow window’s active viewer in a
file.

CADWindow.PrintToFile(“e:/temp/cadwin.prn”)
Parameters

file_name (str) –

Returns

None

property top

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Top() As long

Returns or sets the distance of the window with respect to the inner top
side of the frame. This distance is expressed in pixels.

Example:
This example sets the distance of the window with respect to the inner
top side of the frame for the CADWindow window to 50
pixels.

CADWindow.Top = 50
Returns

int

property viewers

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Viewers() As Viewers (Read Only)

Returns the collection of viewers attached to the window.

Example:
This example retrieves the collection of viewers attached to the
CADWindow window in ViewerCollection.

Dim ViewerCollection As Viewers
Set ViewerCollection = CADWindow.Viewers
Returns

Viewers

property width

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Width() As long

Returns or sets the window width. The window width is expressed in
pixels.

Example:
This example sets the window width for the CADWindow window to 450
pixels.

CADWindow.Width = 450
Returns

int

property window_state

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property WindowState() As CatWindowState

Returns or sets the window state.

Example:
This example sets the window state for the CADWindow window to
catWindowStateMaximized.

CADWindow.WindowState = catWindowStateMaximized
Returns

enum cat_window_state

windows

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.in_interfaces.windows.Windows(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
Windows

A collection of all the Window objects currently managed by the
application.
arrange(i_style)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Arrange(CatArrangeStyle iStyle)

Arranges all the windows of the collection.

Parameters:

iStyle
The arrangement style to take into account to arrange the windows


Example:
The following example arranges all the windows in the Windows
collection, according to the catArrangeCascade style.

CATIA.Windows.Arrange(catArrangeCascade)
Parameters

i_style (CatArrangeStyle) –

Returns

None

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Window

Returns a window using its index or its name from the Windows
collection.

Parameters:

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

AnyObject.Name property.
Returns:
The retrieved window
Example:
This example returns in ThisWindow the third window in the collection,
and in ThatWindow the window named MyWindow.

Dim ThisWindow As Window
Set ThisWindow = CATIA.Windows.Item(3)
Dim ThatWindow As Window
Set ThatWindow = CATIA.Windows.Item(“MyWindow”)
Parameters

i_index (CATVariant) –

Returns

Window

workbench

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.in_interfaces.workbench.Workbench(com_object)

Note

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

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Workbench

Represents a workbench on a document.
Role:A workbench is a set of commands that can be used to create, modify and
edit the objects making up the document.

See also:
Document

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.