pycatia.eno_cd5_interfaces.cd5_template¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.eno_cd5_interfaces.cd5_template.CD5Template(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectCD5TemplateRepresents a Template.Various properties on the object helps to perform operations on thetemplate.Example:The following example indicates how to retrieve thetemplate.Dim oTemplate As ENOIACD5TemplateSet oTemplate = oTemplates.Item(1)See also:CD5Templates- download_file(i_target_folder: str) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func DownloadFile(CATBSTR iTargetFolder) As CATBSTRDownloads the template file to local disk.Parameters:iiTargetFolderThe Folder Path on local disk where the template file will bedownloaded.Returns:Full path of the downloaded file.Throws:-1782306828 : Template object is assigned more than one file.-1774688310 : Template object is not assigned any file.-1866082326 : File of same name as that of file assigned to Template objectis present on download directory.Example:The following example downloads the template file to local diskoTemplate:iTargetFolder : “E:/New folder”.Dim DownloadedFilePath As CATBSTRDownloadedFilePath = oTemplate.DownloadFile(“E:/New folder”)
- Parameters:
i_target_folder (str) –
- Return type:
str
- property template_name: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TemplateName() As CATBSTR (Read Only)Returns (gets) the name of the Template.Example:The following example gets the name of the Template.Dim oName As CATBSTRoName = oTemplate.TemplateName
- Return type:
str
- property template_type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property TemplateType() As CATBSTR (Read Only)Returns (gets) the type of the Template.Example:The following example gets the type of the Template.Dim oType As CATBSTRoType = oTemplate.TemplateType
- Return type:
str