All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

ManufacturingActivity (Object)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---AnyObject
          |
          +---Activity
            |
            +---ManufacturingActivity
 


ManufacturingActivity defines a set of methods and mainly adds some specific methods and services in Manufacturing on ProcessPlan Activities.
Some methods have to be used carefully, they can have no meanly on a specific Activity. This methods allows to support operation from other domain either then Manufacturing.

Property Index

Active
Returns the activation state of the activity.
MachinableFeature
Retrieve the machinable area of a Manufacturing Activity.
MachiningTime
Retreive the milling time of a Manufacturing Activity.
NumberOfFeedrateAttributes
This property returns the number of Feedrate attributes of a Manufacturing Activity.
NumberOfGeomAttributes
This property returns the number of Geometry attributes of a Manufacturing Activity.
NumberOfStrategyAttributes
This property returns the number of Strategy attributes of a Manufacturing Activity.
Precedences
This property returns the interface which manages the precedences on the operation.
Representation
This property returns the path of the representation file for a manufacturing Activity.
Tool
Retreive the Tool of a Manufacturing Activity.
ToolAssembly
Retreive the ToolAssembly of a Manufacturing Activity.
TotalTime
Retreive the total Time of a Manufacturing Activity.
VideoResult
Retreive the video result path of a Manufacturing Activity.

Method Index

GetAttribute
Retreive the Attribute of a Manufacturing Activity.
GetAttributeNLSName
Retrieve the NLS name from the attribute name of a Manufacturing Activity.
GetListOfFeedrateAttributes
Retrieve the list of Feedrate attributes of a Manufacturing Activity.
GetListOfGeomAttributes
Retrieve the list of Geometry attributes of a Manufacturing Activity.
GetListOfStrategyAttributes
Retrieve the list of Strategy attributes of a Manufacturing Activity.
GetMachiningDirection
Retreives the Machining Direction coordinates of a Manufacturing Operation.
GetToolAxis
Retreives the ToolAxis coordinates of a Manufacturing Activity.
SetMachiningDirection
Defines the Machining Direction coordinates of a Manufacturing Operation.
SetToolAxis
Defines the ToolAxis coordinates of a Manufacturing Activity.

Properties


o Property Active() As boolean
Returns the activation state of the activity.
Returns:
oActive The activation state of the activity
Example:
The following example returns in bActive the activation state of the activity firstActivity:
 Dim firstActivity As ManufacturingActivity
 Set firstActivity = ...
 Dim bActive As boolean
 Set bActive = firstActivity.Active
 
o Property MachinableFeature() As CATIAManufacturingMachinableArea
Retrieve the machinable area of a Manufacturing Activity.
Example:
The following example retrieves in theMAF the machinable area of the activity firstActivity.
 Dim firstActivity As ManufacturingActivity
 Set firstActivity = ...
 Dim theMAF As ManufacturingMachinableArea
 Set theMAF = firstActivity.MachinableArea
o Property MachiningTime() As double (Read Only)
Retreive the milling time of a Manufacturing Activity.
Example:
The following example retreives in theMachiningTime the time when the tool meets the workpiece (in minutes).
 theMachiningTime = firstActivity.MachiningTime
o Property NumberOfFeedrateAttributes() As short (Read Only)
This property returns the number of Feedrate attributes of a Manufacturing Activity.
o Property NumberOfGeomAttributes() As short (Read Only)
This property returns the number of Geometry attributes of a Manufacturing Activity.
o Property NumberOfStrategyAttributes() As short (Read Only)
This property returns the number of Strategy attributes of a Manufacturing Activity.
o Property Precedences() As CATIAManufacturingPrecedences (Read Only)
This property returns the interface which manages the precedences on the operation. These collection defines the list of precedences for a manufacturing Activity.
Example:
The following example returns in precedences the interface that manage the precedences for the myActivity Activity :
 ...
 Set myActivity  = ... 
 Set precedences = myActivity.Precedences
o Property Representation() As CATBSTR
This property returns the path of the representation file for a manufacturing Activity.
o Property Tool() As CATIAManufacturingTool (Read Only)
Retreive the Tool of a Manufacturing Activity.
Example:
The following example retreives in CurTool the manufacturing tool of Manufacturing Activity firstActivity
 Set CurTool = firstActivity.GetTool
o Property ToolAssembly() As CATIAManufacturingToolAssembly (Read Only)
Retreive the ToolAssembly of a Manufacturing Activity.
Example:
The following example retrieves in CurrAssembly the manufacturing tool assembly of the manufacturing activity CurrActivity
 Set CurrAssembly = CurrActivity.ToolAssembly
o Property TotalTime() As double (Read Only)
Retreive the total Time of a Manufacturing Activity.
Example:
The following example retreives in theTotalTime the total time of the activity firstActivity (in minutes).
 theTotalTime = firstActivity.TotalTime
o Property VideoResult() As CATBSTR (Read Only)
Retreive the video result path of a Manufacturing Activity. The path is empty if no video result.
Example:
The following example retreives in theVideoResult the video result of the activity firstActivity (in minutes).
 theVideoResult = firstActivity.VideoResult

Methods


o Func GetAttribute(CATBSTR iAttribut) As CATIAParameter
Retreive the Attribute of a Manufacturing Activity.
Example:
The following example retreives in RapidFeed the attribute MfgRapidFeed of Manufacturing Activity firstActivity
 Set RapidFeed = firstActivity.GetAttribute(MfgRapidFeed)
o Func GetAttributeNLSName(CATBSTR iAttributName) As CATBSTR
Retrieve the NLS name from the attribute name of a Manufacturing Activity.
o Sub GetListOfFeedrateAttributes(CATSafeArrayVariant oListOfAttributes)
Retrieve the list of Feedrate attributes of a Manufacturing Activity.
Each attribute is returned as the name of a CKE object.
Example:
The following example retrieves in oListOfAttributes the list of feedrate attributes of the Manufacturing Activity myActivity
 call myActivity.GetListOfFeedrateAttributes(oListOfAttributes)
o Sub GetListOfGeomAttributes(CATSafeArrayVariant oListOfAttributes)
Retrieve the list of Geometry attributes of a Manufacturing Activity.
Each attribute is returned as the name of a CKE object.
Example:
The following example retrieves in oListOfAttributes the list of Geometry attributes of the Manufacturing Activity myActivity
 call myActivity.GetListOfGeomAttributes(oListOfAttributes)
o Sub GetListOfStrategyAttributes(CATSafeArrayVariant oListOfAttributes)
Retrieve the list of Strategy attributes of a Manufacturing Activity.
Each attribute is returned as the name of a CKE object.
Example:
The following example retrieves in oListOfAttributes the list of Strategy attributes of the Manufacturing Activity myActivity
 call myActivity.GetListOfStrategyAttributes(oListOfAttributes)
o Sub GetMachiningDirection(double oXAxis,
double oYAxis,
double oZAxis)
Retreives the Machining Direction coordinates of a Manufacturing Operation.
o Sub GetToolAxis(double oXAxis,
double oYAxis,
double oZAxis)
Retreives the ToolAxis coordinates of a Manufacturing Activity.
o Sub SetMachiningDirection(double iXAxis,
double iYAxis,
double iZAxis)
Defines the Machining Direction coordinates of a Manufacturing Operation.
o Sub SetToolAxis(double iXAxis,
double iYAxis,
double iZAxis)
Defines the ToolAxis coordinates of a Manufacturing Activity.

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