pycatia.dmaps_interfaces.activity¶
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.dmaps_interfaces.activity.Activity(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectActivityThe object that represents an activity.It groups the most important methods related to an activity and enables to getthe management interfaces (hierarchy management, control flow management, *…).- add_activity_constraint(i_activity: Activity, i_constraint_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddActivityConstraint(Activity iActivity,SPPProcessConstraintType iConstraintType)Create a constraint between current activity and inputactivityParameters:iActivityActivity with which the constraint to be created.iConstraintTypeType of the Constraint. It may be one of the following:Precedence_Constraint, Start_Constraint, End_Constraint,Returns:S_OKOn SuccessS_FALSEIf a constraint already exists.E_FAILIf the constraint is NOT created.
- Parameters:
i_activity (Activity) –
i_constraint_type (str) –
- Return type:
None
- add_attr(i_attribute_name: str, attr_type: str, i_attribute_prompt_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddAttr(CATBSTR iAttributeName,SPPProcessAttributeType AttrType,CATBSTR iAttributePromptName)Adds attribute to an Activity.Parameters:iAttributeNameName of the attribute to addAttrTypeType of the attribute to add. It may be one of the following:Integer_Attribute or 0 for integer, Double_Attribute or 1 for double, orString_Attribute or 2 for stringiAttributePromptNamePrompt Name of the attribute to add
- Parameters:
i_attribute_name (str) –
attr_type (str) –
i_attribute_prompt_name (str) –
- Return type:
None
- property attr_count: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AttrCount() As long (Read Only)This property returns the number of attributes of the currentactivity.Returns:oNbAttr The number of attributes
- Return type:
int
- attr_name(i_index: int) str ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AttrName(long iIndex) As CATBSTRThis method returns the name for the specified attribute.Parameters:iIndexThe attribute indexoNameThe attribute name
- Parameters:
i_index (int) –
- Return type:
str
- attr_value(i_index: cat_variant) cat_variant ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func AttrValue(CATVariant iIndex) As CATVariantThis method returns the value for the specified attribute.Parameters:iIndexThe attribute identifierReturns:oAttVal The attribute value
- Parameters:
i_index (cat_variant) –
- Return type:
cat_variant
- property beginning_date: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property BeginningDate() As doubleThis property returns the beginning date of the currentactivity.Returns:oBegin The beginning date of the current activity
- Return type:
float
- property calculated_begin_time: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CalculatedBeginTime() As double (Read Only)This property returns and calculated time cyle on the currentactivity.Returns:oCBT The calculated begin time of the current activity
- Return type:
float
- property calculated_cycle_time: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CalculatedCycleTime() As double (Read Only)This property returns and sets the calculated time cyle on the currentactivity.Returns:oCCT The calculated time cycle of the current activity
- Return type:
float
- property children_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ChildrenActivities() As Activities (Read Only)This property returns the interface which manages the children hierarchy onthe activity. Please note that it used to return all children, but from R20SP4it returns only exposed children, which could be different from all children.
- Return type:
- create_child(i_type_of_child: str) Activity ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func CreateChild(CATBSTR iTypeOfChild) As ActivityThis method creates a new child activity of the requestedtype.Parameters:iTypeOfChildThe type of the child activity to create.oCreatedChildThe new created child activity.
- Parameters:
i_type_of_child (str) –
- Return type:
- create_link(i_second_activity: Activity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateLink(Activity iSecondActivity)This method creates a link from the current activity to anotheractivity.Parameters:iSecondActivityThe activity that will be linked to the currentactivity.
- Parameters:
i_second_activity (Activity) –
- Return type:
None
- property cycle_time: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CycleTime() As doubleThis property returns and set the time cyle on the currentactivity.Returns:oCT The time cycle of the current activityParameters:iCTThe specified time cycle of the current activity
- Return type:
float
- property description: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Description() As CATBSTRThis property returns and set the description on the currentactivity.Returns:oDescriptionBSTR The description of the current activityParameters:iDescriptionBSTRThe specified description of the current activity
- Return type:
str
- property end_date: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property EndDate() As double (Read Only)This property returns the end date of the currentactivity.Returns:oEnd The end date of the current activity. Till V5R13, this method isreturning S_OK even if there is no good implementation. Starting from V5R14this method will return E_NOIMPL. Hence all the scripts that use this methodwould have to be updated to accomodate this change.
- Return type:
float
- get_activity_constraints(i_constraint_type: str, o_constrt_list: Activities) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetActivityConstraints(SPPProcessConstraintTypeiConstraintType,Activities oConstrtList)Get List of constraint activities that exists on the currentActivityParameters:iConstraintTypeType of the Constraints to be returned. It may be one of thefollowing: Precedence_Constraint, Start_Constraint, End_Constraint,All_ConstraintsReturns:oConstrtList ( Allocate the memory.If not, it allocates internally andyou need to clean it after usage)List of Activities with which the current activity hasconstraintsReturns:oConstraintTypeList (It is an optional output used only if userinterested) ( Allocate the memory.If not, it allocates internally and you needto clean it after usage)List of constraint types for each actvity that exists inoConstrtListCurrent activity has a constraint with first activity in oConstrtList andits constraint type is mentioned in first field ofoConstraintTypeList
- Parameters:
i_constraint_type (str) –
o_constrt_list (Activities) –
- Return type:
None
- get_technological_object(i_application_type: str) AnyObject ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetTechnologicalObject(CATBSTR iApplicationType) AsCATBaseDispatchReturns the process’s applicative data which type is the given parameter.The data returned can be either a collection or a simpleobject.Parameters:iApplicationTypeThe type of applicative data searched.Example:This example retrieves the GraphEditor position fortheLoading1 activity.Dim GEPositionSet GEPosition = Loading1.GetTechnologicalObject(“GEPosition”)
- Parameters:
i_application_type (str) –
- Return type:
- is_sub_type_of(i_name: str) bool ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func IsSubTypeOf(CATBSTR iName) As booleanThis method allows to test the type of a specificactivity.Parameters:iNameThe name of the type to testReturns:oVal The logical value returned by the test
- Parameters:
i_name (str) –
- Return type:
bool
- property items: Items¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Items() As Items (Read Only)This property returns the interface which manages the items or inputproducts/components assigned to the current activity
- Return type:
- property next_cf_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NextCFActivities() As Activities (Read Only)This property returns the interface which manages the downstream controlflow hierarchy on the activity.
- Return type:
- property next_prf_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NextPRFActivities() As Activities (Read Only)This property returns the interface which manages the downstream productflow hierarchy on the activity.
- Return type:
- property outputs: Outputs¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Outputs() As Outputs (Read Only)This property returns the interface which manages the outputproducts/components of the current activity
- Return type:
- property parameters: Parameters¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Parameters() As Parameters (Read Only)This property returns the interface which manages the knowlegde parametersof the activity.
- Return type:
- property possible_precedence_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PossiblePrecedenceActivities() As Activities (ReadOnly)This property returns list of Possible Precedence Activities defined onCurrent Activity.Parameters:oActivitiesList of Activities that must precede the CurrentActivity
- Return type:
- property precedence_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PrecedenceActivities() As Activities (Read Only)This property returns list of Precedence Activities defined on CurrentActivity.Parameters:oActivitiesList of Activities that must precede the CurrentActivity
- Return type:
- property previous_cf_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PreviousCFActivities() As Activities (Read Only)This property returns the interface which manages the upstream control flowhierarchy on the activity.
- Return type:
- property previous_prf_activities: Activities¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PreviousPRFActivities() As Activities (Read Only)This property returns the interface which manages the upstream product flowhierarchy on the activity.
- Return type:
- property process_id: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ProcessID() As CATBSTR (Read Only)This property returns process identifier on the currentactivity.Parameters:oProcessIDThe process ID of the current activity
- Return type:
str
- property relations: Relations¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Relations() As Relations (Read Only)This property returns the interface which manages the knowlegde relationsof the activity.
- Return type:
- remove_activity_constraint(i_activity: Activity, i_constraint_type: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveActivityConstraint(Activity iActivity,SPPProcessConstraintType iConstraintType)Remove a constraint between current activity and inputactivityParameters:iActivityActivity with which the constraint to be removed.iConstraintTypeType of the Constraint to be removed. It may be one of thefollowing: Precedence_Constraint, Start_Constraint, End_Constraint,All_ConstraintsReturns:S_OKOn SuccessS_FALSEIf a constraint does not exists.E_FAILIf the constraint can not be removed or the Function fails becauseof any reason.
- Parameters:
i_activity (Activity) –
i_constraint_type (str) –
- Return type:
None
- remove_attr(i_attribute_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveAttr(CATBSTR iAttributeName)Removes attributes to an Activity type.Parameters:iAttributeNameName of the attribute to remove
- Parameters:
i_attribute_name (str) –
- Return type:
None
- remove_link(i_second_activity: Activity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub RemoveLink(Activity iSecondActivity)This method removes a link existing on the currentactivity.Parameters:iSecondActivityThe activity on which the link will be removed.
- Parameters:
i_second_activity (Activity) –
- Return type:
None
- property resources: Resources¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Resources() As Resources (Read Only)This property returns the interface which manages the resources hierarchyon the activity.
- Return type:
- set_process_id(i_process_id: str, i_check_unique: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetProcessID(CATBSTR iProcessID,boolean iCheckUnique)Sets the process ID of the current activityParameters:iProcessIDInput Process ID stringiCheckUniqueOption to enable uniqueness check
- Parameters:
i_process_id (str) –
i_check_unique (bool) –
- Return type:
None
- property type: str¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Type() As CATBSTR (Read Only)This method returns the type of the current activity.Parameters:oTypeThe type of the current activity
- Return type:
str