pycatia.in_interfaces.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.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectSystem.SettingControllerPrintersSettingAttRepresents a setting controller for the printer settings.Role: This interface is implemented by a component which represents thecontroller of the printer settings.- add_printer_directory(i_printer_dir: str, i_printer_dir_state: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddPrinterDirectory(CATBSTR iPrinterDir,CatPrinterDirState iPrinterDirState)Add a printer file directory to printer directories list and define itsstate.Parameters:iPrinterDirdirectory where some 3DPLM printers are defined.The printers defined in this directory will be available for eachuser.iPrinterDirStateprinter directory state.Each directory can be protected to prevent user access to theprinters it contains.The state could be protect or free.If the state is CatPrinterDirProtect, the parameters of eachprinter included in the directory cannot bechanged.If the state is CatPrinterDirFree, the parameters of each printerincluded in the directory can be changed, and the printers can beremoved.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 (int) – enum cat_printer_dir_state
- Return type:
None
- add_printer_group(i_printer_group_name: str, i_printer_names: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddPrinterGroup(CATBSTR iPrinterGroupName,CATSafeArrayVariant iPrinterNames)Add a printer group and define the printers included in thisgroup.Parameters:iPrinterGroupNameprinter group nameiPrinterNamesarray of printers included in the group.
- Parameters:
i_printer_group_name (str) –
i_printer_names (tuple) –
- Return type:
None
- get_driver_configuration_path(o_driver_cfg_path: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetDriverConfigurationPath(CATBSTR oDriverCfgPath)Returns the driver configuration file.Parameters:oDriverCfgPathpath of the driver configuration file
- Parameters:
o_driver_cfg_path (str) –
- Return type:
None
- get_driver_configuration_path_info(o_admin_level: str, o_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetDriverConfigurationPathInfo(CATBSTR oAdminLevel,CATBSTR oLocked) As booleanRetrieves environment informations for the driver configurationfile.Role: Retrieves the state of the driver configuration file in the currentenvironment.Parameters:oAdminLevelIf the parameter is locked, oAdminLevel gives the administrationlevel that imposes the value of the parameter.If the parameter is not locked, oAdminLevel gives theadministration level that will give the value of the parameter after a reset.oLockedIndicates if the parameter has been locked.Returns:Indicates if the parameter has been explicitly modified or remain tothe administrated value.
- Parameters:
o_admin_level (str) –
o_locked (str) –
- Return type:
bool
- get_new_printer_directory(o_new_printer_dir: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub GetNewPrinterDirectory(CATBSTR oNewPrinterDir)Returns the directory where new printers will be added.Parameters:oNewPrinterDirdirectory to add new printersRole: Each new printer created by an user is added in thisdirectory.
- Parameters:
o_new_printer_dir (str) –
- Return type:
None
- get_new_printer_directory_info(o_admin_level: str, o_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetNewPrinterDirectoryInfo(CATBSTR oAdminLevel,CATBSTR oLocked) As booleanRetrieves environment informations for the directory where printers will beadded.Role: Retrieves the state of the directory where printers will be added inthe current environment.Parameters:oAdminLevelIf the parameter is locked, oAdminLevel gives the administrationlevel that imposes the value of the parameter.If the parameter is not locked, oAdminLevel gives theadministration level that will give the value of the parameter after a reset.oLockedIndicates if the parameter has been locked.Returns:Indicates if the parameter has been explicitly modified or remain tothe administrated value.
- Parameters:
o_admin_level (str) –
o_locked (str) –
- Return type:
bool
- get_printer_array_for_group(i_printer_group_name: str) tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPrinterArrayForGroup(CATBSTR iPrinterGroupName) AsCATSafeArrayVariantReturns the definition of the printer group.Parameters:iPrinterGroupNameprinter group nameReturns:array of printers included in the group.
- Parameters:
i_printer_group_name (str) –
- Return type:
tuple
- get_printer_directories() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPrinterDirectories() As CATSafeArrayVariantReturns the directories of printer files.Returns:array of directories where 3DPLM printers are defined.
- Return type:
tuple
- get_printer_directories_info(o_admin_level: str, o_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPrinterDirectoriesInfo(CATBSTR oAdminLevel,CATBSTR oLocked) As booleanRetrieves environment informations for the directories of printer files andtheir states.Role: Retrieves the state of the directories of printer files and theirstates in the current environment.Parameters:oAdminLevelIf the parameter is locked, oAdminLevel gives the administrationlevel that imposes the value of the parameter.If the parameter is not locked, oAdminLevel gives theadministration level that will give the value of the parameter after a reset.oLockedIndicates if the parameter has been locked.Returns:Indicates if the parameter has been explicitly modified or remain tothe administrated value.
- Parameters:
o_admin_level (str) –
o_locked (str) –
- Return type:
bool
- get_printer_directory_state(i_printer_dir: str) int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPrinterDirectoryState(CATBSTR iPrinterDir) AsCatPrinterDirStateReturns the state of the directory of printer files.Parameters:iPrinterDirdirectory where some 3DPLM printers are defined.Returns:printer directory state.Each directory can be protected to prevent user access to the printersit contains.The state could be protect or free.If the state is CatPrinterDirProtect, the parameters of each printerincluded in the directory cannot be changed.If the state is CatPrinterDirFree, the parameters of each printerincluded in the directory can be changed, and the printers can beremoved.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
- Return type:
int
- get_printer_groups() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPrinterGroups() As CATSafeArrayVariantReturns the printer groups.Returns:array of printer group names
- Return type:
tuple
- get_printer_groups_info(o_admin_level: str, o_locked: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetPrinterGroupsInfo(CATBSTR oAdminLevel,CATBSTR oLocked) As booleanRetrieves environment informations for the definition of each printergroup.Role: Retrieves the state of the definition of each printer group in thecurrent environment.Parameters:oAdminLevelIf the parameter is locked, oAdminLevel gives the administrationlevel that imposes the value of the parameter.If the parameter is not locked, oAdminLevel gives theadministration level that will give the value of the parameter after a reset.oLockedIndicates if the parameter has been locked.Returns:Indicates if the parameter has been explicitly modified or remain tothe administrated value.
- Parameters:
o_admin_level (str) –
o_locked (str) –
- Return type:
bool
- modify_printer_array_for_group(i_printer_group_name: str, i_printer_names: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ModifyPrinterArrayForGroup(CATBSTR iPrinterGroupName,CATSafeArrayVariant iPrinterNames)Modify a printer group: redefine the array of printers included in thisgroup.Parameters:iPrinterGroupNameprinter group nameiPrinterNamesarray of printers included in the group.
- Parameters:
i_printer_group_name (str) –
i_printer_names (tuple) –
- Return type:
None
- modify_printer_directory_state(i_printer_dir: str, i_printer_dir_state: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub ModifyPrinterDirectoryState(CATBSTR iPrinterDir,CatPrinterDirState iPrinterDirState)Modify a printer file directory state.Parameters:iPrinterDirdirectory where some 3DPLM printers are defined.iPrinterDirStateprinter directory state.Each directory can be protected to prevent user access to theprinters it contains.The state could be protect or free.If the state is CatPrinterDirProtect, the parameters of eachprinter included in the directory cannot bechanged.If the state is CatPrinterDirFree, the parameters of each printerincluded in the directory can be changed, and the printers can beremoved.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 (int) – enum cat_printer_dir_state
- Return type:
None
- remove_all_printer_directories() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveAllPrinterDirectories()Remove all the directories including printer files.
- Return type:
None
- remove_all_printer_groups() None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveAllPrinterGroups()Remove all the groups of printers.
- Return type:
None
- remove_printer_directory(i_printer_dir: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemovePrinterDirectory(CATBSTR iPrinterDir)Remove a directory of printer files from the directorieslist.Parameters:iPrinterDirdirectory where some 3DPLM printers are defined.
- Parameters:
i_printer_dir (str) –
- Return type:
None
- remove_printer_group(i_printer_group_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemovePrinterGroup(CATBSTR iPrinterGroupName)Remove a group of printers.Parameters:iPrinterGroupNamename of the group to remove.
- Parameters:
i_printer_group_name (str) –
- Return type:
None
- set_driver_configuration_path(i_driver_cfg_path: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetDriverConfigurationPath(CATBSTR iDriverCfgPath)Sets the driver configuration file.Parameters:iDriverCfgPathpath of the driver configuration file
- Parameters:
i_driver_cfg_path (str) –
- Return type:
None
- set_driver_configuration_path_lock(i_lock: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetDriverConfigurationPathLock(boolean iLock)Locks or unlocks the driver configuration file.Role: Locks or unlocks the driver configuration file if it is possible inthe current administrative context. In user mode this method will always returnE_FAIL.Parameters:iLockedthe locking operation to be performedLegal values:TRUE : to lock the parameter.FALSE: to unlock the parameter.
- Parameters:
i_lock (bool) –
- Return type:
None
- set_new_printer_directory(i_new_printer_dir: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetNewPrinterDirectory(CATBSTR iNewPrinterDir)Sets the directory where new printers will be added.Parameters:iNewPrinterDirdirectory to add new printersRole: Each new printer created by an user is added in thisdirectory.
- Parameters:
i_new_printer_dir (str) –
- Return type:
None
- set_new_printer_directory_lock(i_lock: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetNewPrinterDirectoryLock(boolean iLock)Locks or unlocks the directory where printers will beadded.Role: Locks or unlocks the directory where printers will be added if it ispossible in the current administrative context. In user mode this method willalways return E_FAIL.Parameters:iLockedthe locking operation to be performedLegal values:TRUE : to lock the parameter.FALSE: to unlock the parameter.
- Parameters:
i_lock (bool) –
- Return type:
None
- set_printer_directories_lock(i_lock: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub SetPrinterDirectoriesLock(boolean iLock)Locks or unlocks the directories of printer files and theirstates.Role: Locks or unlocks the directories of printer files and their states ifit is possible in the current administrative context. In user mode this methodwill always return E_FAIL.Parameters:iLockedthe locking operation to be performedLegal values:TRUE : to lock the parameter.FALSE: to unlock the parameter.
- Parameters:
i_lock (bool) –
- Return type:
None
- set_printer_groups_lock(i_lock: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- 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 ispossible in the current administrative context. In user mode this method willalways return E_FAIL.Parameters:iLockedthe locking operation to be performedLegal values:TRUE : to lock the parameter.FALSE: to unlock the parameter.
- Parameters:
i_lock (bool) –
- Return type:
None