All Frameworks  Object Hierarchy  This Framework  Indexes   

ManufacturingSetup (Object)

A ManufacturingSetup for a Manufacturing Document.

Property Index

Comment
Return the Default Comment of a Manufacturing Setup.
Machine
Give the Machine linked to a Manufacturing Setup.
MachiningAxisSystem
Retrieves the Machining Axis system from a Manufacturing Setup.
Product
Associate the Product to a Manufacturing Setup.
Programs
Give the List of Programs linked to a Manufacturing Setup.

Method Index

CreateMachine
Initialise the Manufacturing Machine linked to a Manufacturing Setup.
DesignGeometriesCount
Returns the number of design geometries from a Manufacturing Setup.
FixtureGeometriesCount
Returns the number of fixture geometries from a Manufacturing Setup.
GetMachiningAxisSystemName
Retrieves the Name of the Machining Axis system from a Manufacturing Setup.
GetManufacturingView
Retrieves the Manufacturing View from a Manufacturing Setup.
GetPartName
Retrieves the Name of the Design Part from a Manufacturing Setup.
GetProductInstance
Give the Product of the ProductList linked to a Manufacturing Setup.
GetSafetyPlane
Retrieves the Safety Plane from a Manufacturing Setup.
GetStockFromSetup
Retrieves the path of the Stock file from a Manufacturing Setup.
GetToolChangePoint
Get the ToolChange point of the machine linked to a Manufacturing Setup.
InProcessModelBodiesCount
Returns the number of In Process Model Bodies from a Manufacturing Setup.
ListDesignGeometriesProducts
Retrieves the design geometries products list from a Manufacturing Setup.
ListDesignGeometries
Retrieves the design geometries list from a Manufacturing Setup.
ListFixtureGeometriesProducts
Retrieves the Fixture geometries products list from a Manufacturing Setup.
ListFixtureGeometries
Retrieves the fixture geometries list from a Manufacturing Setup.
ListInProcessModelBodies
Retrieves the In Process Model Bodies list from a Manufacturing Setup.
ListStockGeometriesProducts
Retrieves the Stock geometries products list from a Manufacturing Setup.
ListStockGeometries
Retrieves the stock geometries list from a Manufacturing Setup.
ReadMfgData
ReadMfgData.
SetProductAndReconciliate
Associate the Product to a Manufacturing Setup and reconciliate links.
SetSafetyPlane
Associates a Safety Plane to a Manufacturing Setup.
SetStock
Associates a stock to a Manufacturing Setup.
SetToolChangePointByName
Initialise the ToolChange point of the machine linked to a Manufacturing Setup.
SetToolChangePoint
Initialise the ToolChange point of the machine linked to a Manufacturing Setup.
StockGeometriesCount
Returns the number of stock geometries from a Manufacturing Setup.

Properties


o 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"
o 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
o 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
o 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
o 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


o 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)
o 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
 
o Func FixtureGeometriesCount() As
Returns the number of fixture geometries from a Manufacturing Setup.
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
 
o Func GetMachiningAxisSystemName() As
Retrieves the Name of the Machining Axis system from a Manufacturing Setup.
Example:
The following example retrieves the Name of the Machining Axis systemoMachiningAxisSystemName from the manufacturing setup CurrentSetup
 Set oMachiningAxisSystemName = CurrentSetup.GetMachiningAxisSystemName
o Func GetManufacturingView() As
Retrieves the Manufacturing View from a Manufacturing Setup.
Example:
The following example retrievec the Manufacturing View MfgView from the manufacturing setup CurrentSetup
 Set MfgView = CurrentSetup.GetManufacturingView
o Func GetPartName() As
Retrieves the Name of the Design Part from a Manufacturing Setup.
Example:
The following example retrieves the Name of the Design PartoPartName from the manufacturing setup CurrentSetup
 Set oPartName = CurrentSetup.GetPartName
o Func GetProductInstance() As
Give the Product of the ProductList linked to a Manufacturing Setup.
Example:
The following example returns the Product linked to the manufacturing setup CurrentSetup
 Set Product = CurrentSetup.GetProductInstance
o Func GetSafetyPlane() As
Retrieves the Safety Plane from a Manufacturing Setup.
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 
o Sub GetStockFromSetup( oStockPath)
Retrieves the path of the Stock file from a Manufacturing Setup.
Example:
The following example retrieves the the path of the Stock fileoStockPath from the manufacturing setup CurrentSetup
 call CurrentSetup.GetStockFromSetup(oStockPath)
o Sub GetToolChangePoint( oX,
oY,
oZ)
Get the ToolChange point of the machine linked to a Manufacturing Setup.
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)
o Func InProcessModelBodiesCount() As
Returns the number of In Process Model Bodies from a Manufacturing Setup.
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
 
o Sub ListDesignGeometriesProducts( oListOfDesignGeometriesProducts)
Retrieves the design geometries products list from a Manufacturing Setup. Each of these geometries may be either a Product or a Body.
Parameters:
oListOfDesignGeometriesProducts
The retrieved list.
The array must be previously initialized using the
DesignGeometriesCount 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
 
o Sub ListDesignGeometries( oListOfDesignGeometries)
Retrieves the design geometries list from a Manufacturing Setup. Each of these geometries may be either a Product or a Body.
Parameters:
oListOfDesignGeometries
The retrieved list.
The array must be previously initialized using the
DesignGeometriesCount 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
 
o Sub ListFixtureGeometriesProducts( oListOfFixtureGeometriesProducts)
Retrieves the Fixture geometries products list from a Manufacturing Setup. Each of these geometries may be either a Product or a Body.
Parameters:
oListOfFixtureGeometriesProducts
The retrieved list.
The array must be previously initialized using the
FixtureGeometriesCount 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
 
o Sub ListFixtureGeometries( oListOfFixtureGeometries)
Retrieves the fixture geometries list from a Manufacturing Setup. Each of these geometries may be either a Product or a Body.
Parameters:
oListOfFixtureGeometries
The retrieved list.
The array must be previously initialized using the
FixtureGeometriesCount 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
 
o Sub ListInProcessModelBodies( oListOfIPMBodies)
Retrieves the In Process Model Bodies list from a Manufacturing Setup.
Parameters:
oListOfIPMBodies
The retrieved list.
The array must be previously initialized using the
InProcessModelBodiesCount 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
 
o Sub ListStockGeometriesProducts( oListOfStockGeometriesProducts)
Retrieves the Stock geometries products list from a Manufacturing Setup. Each of these geometries may be either a Product or a Body.
Parameters:
oListOfStockGeometriesProducts
The retrieved list.
The array must be previously initialized using the
StockGeometriesCount 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
 
o Sub ListStockGeometries( oListOfStockGeometries)
Retrieves the stock geometries list from a Manufacturing Setup. Each of these geometries may be either a Product or a Body.
Parameters:
oListOfStockGeometries
The retrieved list.
The array must be previously initialized using the
StockGeometriesCount 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
 
o Sub ReadMfgData( iFileName,
iNCMILLSET)
ReadMfgData. Read Manufacturing V4 data. iFileName = Path for V4 product iNCMILLSET = NC sets Acts Same as command "Read Manufacturing data from V4 model" in NC Manufacturing Review workbench Call on Current Manufacturngsetup
o Sub SetProductAndReconciliate( iProduct)
Associate the Product to a Manufacturing Setup and reconciliate links.
Example:
The following example associates the Product iProduct to the manufacturing setup CurrentSetup
 call CurrentSetup.SetProductAndReconciliate(iProduct)
o Sub SetSafetyPlane( iSafetyPlane,
iProduct)
Associates a Safety Plane to a Manufacturing Setup.
Example:
The following example associates the Safety Plane iSafetyPlane belonging to the Product iProduct to the manufacturing setup CurrentSetup
 call CurrentSetup.SetSafetyPlane(iSafetyPlane,iProduct)
o Sub SetStock( iStock,
iProduct)
Associates a stock to a Manufacturing Setup.
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)
o Sub SetToolChangePointByName( iPointName)
Initialise the ToolChange point of the machine linked to a Manufacturing Setup.
Example:
The following example initialise the point PT23 as ToolChangePoint in the manufacturing setup CurrentSetup
 call CurrentSetup.SetToolChangePointByName(PT23)
o Sub SetToolChangePoint( iX,
iY,
iZ)
Initialise the ToolChange point of the machine linked to a Manufacturing Setup.
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)
o Func StockGeometriesCount() As
Returns the number of stock geometries from a Manufacturing Setup.
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
 

Copyright © 2003, Dassault Systèmes. All rights reserved.