pycatia.product_structure_interfaces.assembly_convertor

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.product_structure_interfaces.assembly_convertor.AssemblyConvertor(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
AssemblyConvertor

Product conversion object.
The AssemblyConvertor is the object that allows saving an
assembly to a specified format. Two objects exist from now on
: BillOfMaterial, which creates a bill of material (every
sub-assembly is represented, with all the one level depth
components), and ListingReport, which creates a listing report
(shows the product structure as it appears in the graph)
print(i_file_type: str, i_file: Path, i_product: Product) None

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Print(CATBSTR iFileType,
CATBSTR iFile,
Product iProduct)

Extracts the product’s contents as a specified format. Saves it in a txt,
html or xls file (depends of the object).

Parameters:

iFileType
Type of the resulting file : TXT (for text file),
HTML (for html file), XLS (for xls file) or MOTIF
(do not use).
iFile
Path of the resulting file
iProduct
Product that will be converted
Parameters:
  • i_file_type (str) –

  • i_file (Path) –

  • i_product (Product) –

Return type:

None

set_current_format(ilist_props: tuple) None

Note

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

Defines the properties that will be used in the print
method.

Parameters:

ilistProps
list of properties to display
Parameters:

ilist_props (tuple) –

Return type:

None

set_secondary_format(ilist_props: tuple) None

Note

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

Defines the secondary properties that will be used in the print
method.

Parameters:

ilistProps
secondary list of properties to display
Parameters:

ilist_props (tuple) –

Return type:

None