Properties
- Property Comment() As
-
Return the Default Comment of a Manufacturing Setup.
- Example:
- The following example return the comment SetupComment of to the manufacturing setup CurrentSetup
Set CurrentSetup.Comment= "SetupComment"
- Property Machine() As
-
Give the Machine linked to a Manufacturing Setup.
- Example:
- The following example returns the Machine linked to the manufacturing setup CurrentSetup
Set Machine = CurrentSetup.Machine
- Property MachiningAxisSystem() As
-
Retrieves the Machining Axis system from a Manufacturing Setup.
- Example:
- The following example retrieves the Machining Axis system oMachiningAxis from the manufacturing setup CurrentSetup
Set oMachiningAxis = CurrentSetup.MachiningAxisSystem
- Property Product( iProduct)
-
Associate the Product to a Manufacturing Setup.
- Example:
- The following example associates the Product iProduct to the manufacturing setup CurrentSetup
CurrentSetup.Product = iProduct
- Property Programs() As (Read Only)
-
Give the List of Programs linked to a Manufacturing Setup.
- Example:
- The following example returns the list of Programs ProgramsList linked to the manufacturing Setup CurrentSetup
Set ProgramsList = CurrentSetup.Programs
Methods
- Func CreateMachine( iTypeMachine) As
-
Initialise the Manufacturing Machine linked to a Manufacturing Setup.
- Example:
- The following example initialise the machine Mfg3AxisWithTableRotationMachine as Manufacturing Machine in the manufacturing setup CurrentSetup
call CurrentSetup.CreateMachine(Mfg3AxisWithTableRotationMachine)
- Func DesignGeometriesCount() As
-
Returns the number of design geometries from a Manufacturing Setup.
- Parameters:
-
- oDesignGeometriesListSize
- The number of design geometries of this setup
- Example:
- The following example retrieves the number of design geometries of
the setup CurrentSetup in DesignGeometriesListSize.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim DesignGeometriesListSize As Long DesignGeometriesListSize = CurrentSetup.DesignGeometriesCount
- Parameters:
-
- oFixtureGeometriesListSize
- The number of fixture geometries of this setup
- Example:
- The following example retrieves the number of fixture geometries of
the setup CurrentSetup in FixtureGeometriesListSize.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim FixtureGeometriesListSize As Long FixtureGeometriesListSize = CurrentSetup.FixtureGeometriesCount
- Example:
- The following example retrieves the Name of the Machining Axis systemoMachiningAxisSystemName from the manufacturing setup CurrentSetup
Set oMachiningAxisSystemName = CurrentSetup.GetMachiningAxisSystemName
- Example:
- The following example retrievec the Manufacturing View MfgView from the manufacturing setup CurrentSetup
Set MfgView = CurrentSetup.GetManufacturingView
- Example:
- The following example retrieves the Name of the Design PartoPartName from the manufacturing setup CurrentSetup
Set oPartName = CurrentSetup.GetPartName
- Example:
- The following example returns the Product linked to the manufacturing setup CurrentSetup
Set Product = CurrentSetup.GetProductInstance
- Example:
- The following example retrieves the Safety Plane oMathPLane from the manufacturing setup CurrentSetup
The size of oMathPlane is 9 (origin, first direction, second direction)
Set oMathPlane= CurrentSetup.GetSafetyPlane
- Example:
- The following example retrieves the the path of the Stock fileoStockPath from the manufacturing setup CurrentSetup
call CurrentSetup.GetStockFromSetup(oStockPath)
- Example:
- The following example gets the point with coordinates X,Y,Z as ToolChangePoint in the manufacturing setup CurrentSetup
call CurrentSetup.GetToolChangePoint(X,Y,Z)
- Parameters:
-
- oIPMBodiesListSize
- The number of In Process Model Bodies of this setup
- Example:
- The following example retrieves the number of In Process Model Bodies of
the setup CurrentSetup in IPMBodiesListSize.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim IPMBodiesListSize As Long IPMBodiesListSize = CurrentSetup.InProcessModelBodiesCount
- Parameters:
-
- oListOfDesignGeometries
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the design geometries list of
the manufacturing setup CurrentSetup in ListOfDesignGeometries.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim DesignGeometriesListSize As Long DesignGeometriesListSize = CurrentSetup.DesignGeometriesCount If DesignGeometriesListSize > 0 Then Dim ListOfDesignGeometries() As Variant Redim ListOfDesignGeometries(DesignGeometriesListSize-1) CurrentSetup.ListDesignGeometries(ListOfDesignGeometries) End If
- Parameters:
-
- oListOfDesignGeometriesProducts
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the design geometries list of
the manufacturing setup CurrentSetup in ListOfDesignGeometriesProducts.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim DesignGeometriesListSize As Long DesignGeometriesListSize = CurrentSetup.DesignGeometriesCount If DesignGeometriesListSize > 0 Then Dim ListOfDesignGeometries() As Variant Redim ListOfDesignGeometries(DesignGeometriesListSize-1) CurrentSetup.ListDesignGeometriesProducts(ListOfDesignGeometriesProducts) End If
- Parameters:
-
- oListOfFixtureGeometries
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the fixture geometries list of
the manufacturing setup CurrentSetup in ListOfFixtureGeometries.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim FixtureGeometriesListSize As Long FixtureGeometriesListSize = CurrentSetup.FixtureGeometriesCount If FixtureGeometriesListSize > 0 Then Dim ListOfFixtureGeometries() As Variant Redim ListOfFixtureGeometries(FixtureGeometriesListSize-1) CurrentSetup.ListFixtureGeometries(ListOfFixtureGeometries) End If
- Parameters:
-
- oListOfFixtureGeometriesProducts
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the Fixture geometries list of
the manufacturing setup CurrentSetup in ListOfFixtureGeometriesProducts.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim FixtureGeometriesListSize As Long FixtureGeometriesListSize = CurrentSetup.FixtureGeometriesCount If FixtureGeometriesListSize > 0 Then Dim ListOfFixtureGeometries() As Variant Redim ListOfFixtureGeometries(FixtureGeometriesListSize-1) CurrentSetup.ListFixtureGeometriesProducts(ListOfFixtureGeometriesProducts) End If
- Parameters:
-
- oListOfIPMBodies
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the In Process Model Bodies list of
the manufacturing setup CurrentSetup in ListOfIPMBodies.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim IPMBodiesListSize As Long IPMBodiesListSize = CurrentSetup.InProcessModelBodiesCount If IPMBodiesListSize > 0 Then Dim ListOfIPMBodies() As Variant Redim ListOfIPMBodies(IPMBodiesListSize-1) CurrentSetup.ListInProcessModelBodies(ListOfIPMBodies) End If
- Parameters:
-
- oListOfStockGeometries
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the stock geometries list of
the manufacturing setup CurrentSetup in ListOfStockGeometries.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim StockGeometriesListSize As Long StockGeometriesListSize = CurrentSetup.StockGeometriesCount If StockGeometriesListSize > 0 Then Dim ListOfStockGeometries() As Variant Redim ListOfStockGeometries(StockGeometriesListSize-1) CurrentSetup.ListStockGeometries(ListOfStockGeometries) End If
- Parameters:
-
- oListOfStockGeometriesProducts
- The retrieved list.
The array must be previously initialized using the method.
- Example:
- The following example retrieves the Stock geometries list of
the manufacturing setup CurrentSetup in ListOfStockGeometriesProducts.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim StockGeometriesListSize As Long StockGeometriesListSize = CurrentSetup.StockGeometriesCount If StockGeometriesListSize > 0 Then Dim ListOfStockGeometries() As Variant Redim ListOfStockGeometries(StockGeometriesListSize-1) CurrentSetup.ListStockGeometriesProducts(ListOfStockGeometriesProducts) End If
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 the Product iProduct to the manufacturing setup CurrentSetup
call CurrentSetup.SetPart(iPart,iProduct)
- Example:
- The following example associates the Product iProduct to the manufacturing setup CurrentSetup
call CurrentSetup.SetProductAndReconciliate(iProduct)
- Example:
- The following example associates the Safety Plane iSafetyPlane belonging to the Product iProduct to the manufacturing setup CurrentSetup
call CurrentSetup.SetSafetyPlane(iSafetyPlane,iProduct)
The stock must be either a Body feature (Geometrical Set, Ordered Geometrical Set, PartBody, Body.n) either a CGR product.
- Example:
- The following example associates the stock iStock belonging to the Product iProduct to the manufacturing setup CurrentSetup
call CurrentSetup.SetStock(iStock,iProduct)
- Example:
- The following example initialise the point with coordinates X,Y,Z as ToolChangePoint in the manufacturing setup CurrentSetup
call CurrentSetup.SetToolChangePoint(X,Y,Z)
- Example:
- The following example initialise the point PT23 as ToolChangePoint in the manufacturing setup CurrentSetup
call CurrentSetup.SetToolChangePointByName(PT23)
- Parameters:
-
- oStockGeometriesListSize
- The number of stock geometries of this setup
- Example:
- The following example retrieves the number of stock geometries of
the setup CurrentSetup in StockGeometriesListSize.
Dim CurrentSetup As ManufacturingSetup Set CurrentSetup = ... Dim StockGeometriesListSize As Long StockGeometriesListSize = CurrentSetup.StockGeometriesCount