pycatia.components_catalogs_interfaces.catalog_document¶
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.components_catalogs_interfaces.catalog_document.CatalogDocument(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectInfInterfaces.DocumentCatalogDocumentRepresents the Document object for catalog.Role: A catalog document references data (documents: CATPart…, features, etc)organized as a tree: the nodes are called chapters and the leaves are calleddescriptions. Each description may reference a document (CATPart…) andcouples of keyword + value. The keywords are defined at the parent chapterlevel.A catalog may reference parametric Parts. In that case, the Part is associatedwith a Design Table. A Design Table is a file (text file, Excel document) thatcontains named columns and rows. Each row corresponds to a description, andeach column may correspond to a keyword.Refer to CATIA V5 Documentation, Component Catalog Editor and to CAA V5Encyclopedia, Document, Catalog.- create_catalog_from_csv(i_init_data: str, i_new_catalog: str) CatalogDocument ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateCatalogFromcsv(CATBSTR iInitData,CATBSTR iNewCatalog)Creates a catalog from a csv file.Refer to CATIA V5 Documentation, Component Catalog Editor, Creating aCatalog in Batch Mode.Parameters:iInitDataThe csv (Comma Separated Values) file path.iNewCatalogThe new catalog path.Example:This example creates a catalog from a csvfile.InputFile = “E:usersCatalogsBatchCatalog.csv”OutputFile = “E:usersCatalogsCatalog_Result.catalog”Dim Catalog As DocumentSet Catalog=CATIA.Documents.Add(“CatalogDocument”)Catalog.CreateCatalogFromcsv InputFile,OutputFile
- Parameters:
i_init_data (str) –
i_new_catalog (str) –
- Returns:
None
- Return type:
- create_catalog_from_library(i_library_path: str, i_project_path: str, i_catalog_path: str, i_table_path: str, i_conv_format: int, i_batch_mode: int) CatalogDocument ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateCatalogFromLibrary(CATBSTR iLibraryPath,CATBSTR iProjectPath,CATBSTR iCatalogPath,CATBSTR iTablePath,short iConvFormat,short iBatchMode)Creates a catalog from a V4 library.Parameters:iLibraryPathThe V4 library path.iProjectPathThe V4 project path.iCatalogPathThe new catalog path.iTablePathThe mapping table path.iConvFormat0: As Specification1: As ResultiBatchMode0: As Specification1: As ResultiBatchMode0: Create the V5 documents1: Simulate: the V5 documents are not created2: If the previous migration has failed, continue since thispoint.
- Parameters:
i_library_path (str) –
i_project_path (str) –
i_catalog_path (str) –
i_table_path (str) –
i_conv_format (int) –
i_batch_mode (int) –
- Return type:
None
- create_chapter_from_design_table(i_chapter_name: str, i_document_containing_dt: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateChapterFromDesignTable(CATBSTR iChapterName,CATBSTR iDocumentContainingDT)Creates a chapter in the current catalog document where keywords correspondto parameters of the Design Table and add the descriptions corresponding towhole configurations of the Design Table.Refer to CATIA V5 Documentation, Component Catalog Editor, Creating aCatalog in Batch Mode.Parameters:iChapterNameThe name of the new chapter.iDocumentContainingDTThe path of the Design Table.Example:This example creates a catalog and a chapter is added from aDesign Table.Chapter = “NewChapter”DTFile = “E:usersCatalogsDesignTable.xls”Dim Catalog As DocumentSet Catalog=CATIA.Documents.Add(“CatalogDocument”)Catalog.CreateChapterFromDesignTable Chapter,DTFile
- Parameters:
i_chapter_name (str) –
i_document_containing_dt (str) –
- Return type:
None