pycatia.manufacturing_interfaces.manufacturing_setup¶
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.manufacturing_interfaces.manufacturing_setup.ManufacturingSetup(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityManufacturingInterfaces.ManufacturingActivityManufacturingSetupA ManufacturingSetup for a Manufacturing Document.- property comment: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Comment() As CATBSTRReturn the Default Comment of a Manufacturing Setup.Example:The following example return the comment SetupComment of to themanufacturing setup CurrentSetupSet CurrentSetup.Comment
- Return type:
str
- create_machine(i_type_machine: str) ManufacturingMachine ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateMachine(CATBSTR iTypeMachine) AsManufacturingMachineInitialise the Manufacturing Machine linked to a ManufacturingSetup.Example:The following example initialise the machineMfg3AxisWithTableRotationMachine as Manufacturing Machine in the manufacturingsetup CurrentSetupcall CurrentSetup.CreateMachine(Mfg3AxisWithTableRotationMachine)
- Parameters:
i_type_machine (str) –
- Return type:
- design_geometries_count() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func DesignGeometriesCount() As longReturns the number of design geometries from a ManufacturingSetup.Parameters:oDesignGeometriesListSizeThe number of design geometries of this setupExample:The following example retrieves the number of design geometries of thesetup CurrentSetup in DesignGeometriesListSize.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim DesignGeometriesListSize As LongDesignGeometriesListSize = CurrentSetup.DesignGeometriesCount
- Return type:
int
- export_cat_setting(dir_path: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ExportCATSetting(CATBSTR dirPath)ExportCATSetting. Export All Machining CATSetting file to a location in xml format.dirPath = Absolute path to the location where all settings should be exported.eg, “D:/dir/” Call on Current Manufacturngsetup
- Parameters:
dir_path (str) –
- Return type:
None
- fixture_geometries_count() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func FixtureGeometriesCount() As longReturns the number of fixture geometries from a ManufacturingSetup.Parameters:oFixtureGeometriesListSizeThe number of fixture geometries of this setupExample:The following example retrieves the number of fixture geometries of thesetup CurrentSetup in FixtureGeometriesListSize.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim FixtureGeometriesListSize As LongFixtureGeometriesListSize = CurrentSetup.FixtureGeometriesCount
- Return type:
int
- get_machining_axis_system_name() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetMachiningAxisSystemName() As CATBSTRRetrieves the Name of the Machining Axis system from a ManufacturingSetup.Example:The following example retrieves the Name of the Machining AxissystemoMachiningAxisSystemName from the manufacturing setupCurrentSetupSet oMachiningAxisSystemName = CurrentSetup.GetMachiningAxisSystemName
- Return type:
str
- get_manufacturing_view() ManufacturingView ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetManufacturingView() As ManufacturingViewRetrieves the Manufacturing View from a ManufacturingSetup.Example:The following example retrievec the Manufacturing View MfgView from themanufacturing setup CurrentSetupSet MfgView = CurrentSetup.GetManufacturingView
- Return type:
- get_part_name() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetPartName() As CATBSTRRetrieves the Name of the Design Part from a ManufacturingSetup.Example:The following example retrieves the Name of the Design PartoPartNamefrom the manufacturing setup CurrentSetupSet oPartName = CurrentSetup.GetPartName
- Return type:
str
- get_product_instance() Product ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetProductInstance() As ProductGive the Product of the ProductList linked to a ManufacturingSetup.Example:The following example returns the Product linked to the manufacturingsetup CurrentSetupSet Product = CurrentSetup.GetProductInstance
- Return type:
- get_safety_plane() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetSafetyPlane() As CATSafeArrayVariantRetrieves the Safety Plane from a Manufacturing Setup.Example:The following example retrieves the Safety Plane oMathPLane from themanufacturing setup CurrentSetup The size of oMathPlane is 9 (origin, firstdirection, second direction)Set oMathPlane= CurrentSetup.GetSafetyPlane
- Return type:
tuple
- get_stock_from_setup() str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetStockFromSetup(CATBSTR oStockPath)Retrieves the path of the Stock file from a ManufacturingSetup.Example:The following example retrieves the the path of the StockfileoStockPath from the manufacturing setupCurrentSetupcall CurrentSetup.GetStockFromSetup(oStockPath)
- Return type:
str
- get_tool_change_point() tuple ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetToolChangePoint(double oX,double oY,double oZ)Get the ToolChange point of the machine linked to a ManufacturingSetup.Example:The following example gets the point with coordinates X,Y,Z asToolChangePoint in the manufacturing setupCurrentSetupcall CurrentSetup.GetToolChangePoint(X,Y,Z)
- Return type:
tuple
- import_cat_setting(xml_file_path: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ImportCATSetting(CATBSTR XMLFilePath)ImportCATSetting. Import the CATSetting in xml format from a specified location.XMLFilePath = Path to the xml file.eg, “D:/dirs/settings.xml” Call on Current Manufacturngsetup
- Parameters:
xml_file_path (str) –
- Return type:
None
- in_process_model_bodies_count() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func InProcessModelBodiesCount() As longReturns the number of In Process Model Bodies from a ManufacturingSetup.Parameters:oIPMBodiesListSizeThe number of In Process Model Bodies of this setupExample:The following example retrieves the number of In Process Model Bodiesof the setup CurrentSetup in IPMBodiesListSize.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim IPMBodiesListSize As LongIPMBodiesListSize = CurrentSetup.InProcessModelBodiesCount
- Return type:
int
- list_design_geometries(o_list_of_design_geometries: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListDesignGeometries(CATSafeArrayVariantoListOfDesignGeometries)Retrieves the design geometries list from a Manufacturing Setup. Each ofthese geometries may be either a Product or a Body.Parameters:oListOfDesignGeometriesThe retrieved list.The array must be previously initialized using theDesignGeometriesCount method.Example:The following example retrieves the design geometries list of themanufacturing setup CurrentSetup inListOfDesignGeometries.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim DesignGeometriesListSize As LongDesignGeometriesListSize = CurrentSetup.DesignGeometriesCountIf DesignGeometriesListSize > 0 ThenDim ListOfDesignGeometries() As VariantRedimListOfDesignGeometries(DesignGeometriesListSize-1)CurrentSetup.ListDesignGeometries(ListOfDesignGeometries)End If
- Parameters:
o_list_of_design_geometries (tuple) –
- Return type:
cat_variant
- list_design_geometries_products(o_list_of_design_geometries_products: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListDesignGeometriesProducts(CATSafeArrayVariantoListOfDesignGeometriesProducts)Retrieves the design geometries products list from a Manufacturing Setup.Each of these geometries may be either a Product or aBody.Parameters:oListOfDesignGeometriesProductsThe retrieved list.The array must be previously initialized using theDesignGeometriesCount method.Example:The following example retrieves the design geometries list of themanufacturing setup CurrentSetup inListOfDesignGeometriesProducts.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim DesignGeometriesListSize As LongDesignGeometriesListSize = CurrentSetup.DesignGeometriesCountIf DesignGeometriesListSize > 0 ThenDim ListOfDesignGeometries() As VariantRedimListOfDesignGeometries(DesignGeometriesListSize-1)CurrentSetup.ListDesignGeometriesProducts(ListOfDesignGeometriesProducts)End If
- Parameters:
o_list_of_design_geometries_products (tuple) –
- Return type:
cat_variant
- list_fixture_geometries(o_list_of_fixture_geometries: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListFixtureGeometries(CATSafeArrayVariantoListOfFixtureGeometries)Retrieves the fixture geometries list from a Manufacturing Setup. Each ofthese geometries may be either a Product or a Body.Parameters:oListOfFixtureGeometriesThe retrieved list.The array must be previously initialized using theFixtureGeometriesCount method.Example:The following example retrieves the fixture geometries list of themanufacturing setup CurrentSetup inListOfFixtureGeometries.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim FixtureGeometriesListSize As LongFixtureGeometriesListSize = CurrentSetup.FixtureGeometriesCountIf FixtureGeometriesListSize > 0 ThenDim ListOfFixtureGeometries() As VariantRedimListOfFixtureGeometries(FixtureGeometriesListSize-1)CurrentSetup.ListFixtureGeometries(ListOfFixtureGeometries)End If
- Parameters:
o_list_of_fixture_geometries (tuple) –
- Return type:
cat_variant
- list_fixture_geometries_products(o_list_of_fixture_geometries_products: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListFixtureGeometriesProducts(CATSafeArrayVariantoListOfFixtureGeometriesProducts)Retrieves the Fixture geometries products list from a Manufacturing Setup.Each of these geometries may be either a Product or aBody.Parameters:oListOfFixtureGeometriesProductsThe retrieved list.The array must be previously initialized using theFixtureGeometriesCount method.Example:The following example retrieves the Fixture geometries list of themanufacturing setup CurrentSetup inListOfFixtureGeometriesProducts.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim FixtureGeometriesListSize As LongFixtureGeometriesListSize = CurrentSetup.FixtureGeometriesCountIf FixtureGeometriesListSize > 0 ThenDim ListOfFixtureGeometries() As VariantRedimListOfFixtureGeometries(FixtureGeometriesListSize-1)CurrentSetup.ListFixtureGeometriesProducts(ListOfFixtureGeometriesProducts)End If
- Parameters:
o_list_of_fixture_geometries_products (tuple) –
- Return type:
cat_variant
- list_in_process_model_bodies(o_list_of_ipm_bodies: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListInProcessModelBodies(CATSafeArrayVariantoListOfIPMBodies)Retrieves the In Process Model Bodies list from a ManufacturingSetup.Parameters:oListOfIPMBodiesThe retrieved list.The array must be previously initialized using theInProcessModelBodiesCount method.Example:The following example retrieves the In Process Model Bodies list of themanufacturing setup CurrentSetup in ListOfIPMBodies.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim IPMBodiesListSize As LongIPMBodiesListSize = CurrentSetup.InProcessModelBodiesCountIf IPMBodiesListSize > 0 ThenDim ListOfIPMBodies() As VariantRedim ListOfIPMBodies(IPMBodiesListSize-1)CurrentSetup.ListInProcessModelBodies(ListOfIPMBodies)End If
- Parameters:
o_list_of_ipm_bodies (tuple) –
- Return type:
cat_variant
- list_stock_geometries(o_list_of_stock_geometries: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListStockGeometries(CATSafeArrayVariantoListOfStockGeometries)Retrieves the stock geometries list from a Manufacturing Setup. Each ofthese geometries may be either a Product or a Body.Parameters:oListOfStockGeometriesThe retrieved list.The array must be previously initialized using theStockGeometriesCount method.Example:The following example retrieves the stock geometries list of themanufacturing setup CurrentSetup in ListOfStockGeometries.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim StockGeometriesListSize As LongStockGeometriesListSize = CurrentSetup.StockGeometriesCountIf StockGeometriesListSize > 0 ThenDim ListOfStockGeometries() As VariantRedim ListOfStockGeometries(StockGeometriesListSize-1)CurrentSetup.ListStockGeometries(ListOfStockGeometries)End If
- Parameters:
o_list_of_stock_geometries (tuple) –
- Return type:
cat_variant
- list_stock_geometries_products(o_list_of_stock_geometries_products: tuple) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ListStockGeometriesProducts(CATSafeArrayVariantoListOfStockGeometriesProducts)Retrieves the Stock geometries products list from a Manufacturing Setup.Each of these geometries may be either a Product or aBody.Parameters:oListOfStockGeometriesProductsThe retrieved list.The array must be previously initialized using theStockGeometriesCount method.Example:The following example retrieves the Stock geometries list of themanufacturing setup CurrentSetup inListOfStockGeometriesProducts.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim StockGeometriesListSize As LongStockGeometriesListSize = CurrentSetup.StockGeometriesCountIf StockGeometriesListSize > 0 ThenDim ListOfStockGeometries() As VariantRedim ListOfStockGeometries(StockGeometriesListSize-1)CurrentSetup.ListStockGeometriesProducts(ListOfStockGeometriesProducts)End If
- Parameters:
o_list_of_stock_geometries_products (tuple) –
- Return type:
cat_variant
- property machine: ManufacturingMachine¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Machine() As ManufacturingMachineGive the Machine linked to a Manufacturing Setup.Example:The following example returns the Machine linked to the manufacturingsetup CurrentSetupSet Machine = CurrentSetup.Machine
- Return type:
- property machining_axis_system: ManufacturingMachiningAxis¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property MachiningAxisSystem() AsManufacturingMachiningAxisRetrieves the Machining Axis system from a ManufacturingSetup.Example:The following example retrieves the Machining Axis systemoMachiningAxis from the manufacturing setupCurrentSetupSet oMachiningAxis = CurrentSetup.MachiningAxisSystem
- Return type:
- property product: None¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Product(Product iProduct)Associate the Product to a Manufacturing Setup.Example:The following example associates the Product iProduct to themanufacturing setup CurrentSetupCurrentSetup.Product = iProduct
- Return type:
None
- property programs: ManufacturingActivities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Programs() As MfgActivities (Read Only)Give the List of Programs linked to a Manufacturing Setup.Example:The following example returns the list of Programs ProgramsList linkedto the manufacturing Setup CurrentSetupSet ProgramsList = CurrentSetup.Programs
- Return type:
- read_mfg_data(i_file_name: str, i_ncmillset: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ReadMfgData(CATBSTR iFileName,CATSafeArrayVariant iNCMILLSET)ReadMfgData. Read Manufacturing V4 data.iFileName = Path for V4 productiNCMILLSET = NC sets Acts Same as command “Read Manufacturing data from V4 model” | in NC Manufacturing Review workbench Call on Current Manufacturngsetup
- Parameters:
i_file_name (str) –
i_ncmillset (tuple) –
- Return type:
None
- set_design_part(i_part: AnyObject, i_product: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetDesignPart(AnyObject iPart,Product iProduct)Associates the design part to a Manufacturing Setup.The part must be a Body feature (Geometrical Set, Ordered Geometrical Set,PartBody, Body.n)Example:The following example associates the part iPart belonging to theProduct iProduct to the manufacturing setupCurrentSetupcall CurrentSetup.SetPart(iPart,iProduct)
- set_product_and_reconciliate(i_product: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetProductAndReconciliate(Product iProduct)Associate the Product to a Manufacturing Setup and reconciliatelinks.Example:The following example associates the Product iProduct to themanufacturing setup CurrentSetupcall CurrentSetup.SetProductAndReconciliate(iProduct)
- Parameters:
i_product (Product) –
- Return type:
None
- set_safety_plane(i_safety_plane: AnyObject, i_product: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetSafetyPlane(AnyObject iSafetyPlane,Product iProduct)Associates a Safety Plane to a Manufacturing Setup.Example:The following example associates the Safety Plane iSafetyPlanebelonging to the Product iProduct to the manufacturing setupCurrentSetupcallCurrentSetup.SetSafetyPlane(iSafetyPlane,iProduct)
- set_stock(i_stock: AnyObject, i_product: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetStock(AnyObject iStock,Product iProduct)Associates a stock to a Manufacturing Setup.The stock must be either a Body feature (Geometrical Set, OrderedGeometrical Set, PartBody, Body.n) either a CGR product.Example:The following example associates the stock iStock belonging to theProduct iProduct to the manufacturing setupCurrentSetupcall CurrentSetup.SetStock(iStock,iProduct)
- set_tool_change_point(i_x: float, i_y: float, i_z: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetToolChangePoint(double iX,double iY,double iZ)Initialise the ToolChange point of the machine linked to a ManufacturingSetup.Example:The following example initialise the point with coordinates X,Y,Z asToolChangePoint in the manufacturing setupCurrentSetupcall CurrentSetup.SetToolChangePoint(X,Y,Z)
- Parameters:
i_x (float) –
i_y (float) –
i_z (float) –
- Return type:
None
- set_tool_change_point_by_name(i_point_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetToolChangePointByName(CATBSTR iPointName)Initialise the ToolChange point of the machine linked to a ManufacturingSetup.Example:The following example initialise the point PT23 as ToolChangePoint inthe manufacturing setup CurrentSetupcall CurrentSetup.SetToolChangePointByName(PT23)
- Parameters:
i_point_name (str) –
- Return type:
None
- stock_geometries_count() int ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func StockGeometriesCount() As longReturns the number of stock geometries from a ManufacturingSetup.Parameters:oStockGeometriesListSizeThe number of stock geometries of this setupExample:The following example retrieves the number of stock geometries of thesetup CurrentSetup in StockGeometriesListSize.Dim CurrentSetup As ManufacturingSetupSet CurrentSetup = …Dim StockGeometriesListSize As LongStockGeometriesListSize = CurrentSetup.StockGeometriesCount
- Return type:
int