GanttOperationBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# GanttOperationBuilder Class

class `NXOpen.Mechatronics.``GanttOperationBuilder`

  Bases: `NXOpen.Builder`

  Represents a `NXOpen.Mechatronics.GanttOperationBuilder` builder

  To create a new instance of this class, use `NXOpen.Mechatronics.GanttCollection.CreateGanttOperationBuilder()`

  New in version NX7.5.1.

# Properties

Property | Description
--- | ---
ActiveStatus | Returns or sets the active status
ConditionList | Returns the condition data
Context | Returns or sets the owner part of operation
Duration | Returns or sets the operation duration
ExpressionDuration | Returns the operation duration expression
OperationID | Returns or sets the operation id
OperationName | Returns or sets the operation name
OperationTypes | Returns or sets the operation type
ParameterList | Returns the parameter data
ParentID | Returns or sets the parent operation id in sequence editor tree
Physics | Returns or sets the input of the operation : it can be a physics object(Rigid Body, Collision, Constraints, Joints etc.
StartTime | Returns or sets the start time of operation
Tag | Returns the Tag for this object.
Type | Returns or sets the type of simple operation.

# Methods

Method | Description
--- | ---
AddConditionList | Sets the condition data
AddParameterList | Sets the parameter data
Commit | Commits any edits that have been applied to the builder.
Destroy | Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit.
GetObject | Returns the object currently being edited by this builder.
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Enumerations

GanttOperationBuilderOperationType Enumeration | the operation Type enum
GanttOperationBuilderSimpleOperationType Enumeration | the pause operation Type enum

# Property Detail

## ActiveStatus

`GanttOperationBuilder.``ActiveStatus`

  Returns or sets the active status

  `-------------------------------------`

  Getter Method

  Signature `ActiveStatus`

  Returns: |
  Return type: | bool

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `ActiveStatus`

  Parameters: | status (bool) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## ConditionList

`GanttOperationBuilder.``ConditionList`

  Returns the condition data

  `-------------------------------------`

  Getter Method

  Signature `ConditionList`

  Returns: |
  Return type: | `NXOpen.Mechatronics.GanttOperationConditionBuilderList`

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## Context

`GanttOperationBuilder.``Context`

  Returns or sets the owner part of operation

  `-------------------------------------`

  Getter Method

  Signature `Context`

  Returns: |
  Return type: | `NXOpen.BasePart`

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `Context`

  Parameters: | context (`NXOpen.BasePart`) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## Duration

`GanttOperationBuilder.``Duration`

  Returns or sets the operation duration

  `-------------------------------------`

  Getter Method

  Signature `Duration`

  Returns: |
  Return type: | float

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `Duration`

  Parameters: | duration (float) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## ExpressionDuration

`GanttOperationBuilder.``ExpressionDuration`

  Returns the operation duration expression

  `-------------------------------------`

  Getter Method

  Signature `ExpressionDuration`

  Returns: |
  Return type: | `NXOpen.Expression`

  New in version NX9.0.0.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## OperationID

`GanttOperationBuilder.``OperationID`

  Returns or sets the operation id

  `-------------------------------------`

  Getter Method

  Signature `OperationID`

  Returns: |
  Return type: | str

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `OperationID`

  Parameters: | id (str) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## OperationName

`GanttOperationBuilder.``OperationName`

  Returns or sets the operation name

  `-------------------------------------`

  Getter Method

  Signature `OperationName`

  Returns: |
  Return type: | str

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `OperationName`

  Parameters: | name (str) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## OperationTypes

`GanttOperationBuilder.``OperationTypes`

  Returns or sets the operation type

  `-------------------------------------`

  Getter Method

  Signature `OperationTypes`

  Returns: |
  Return type: | `NXOpen.Mechatronics.GanttOperationBuilderOperationType`

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `OperationTypes`

  Parameters: | type (`NXOpen.Mechatronics.GanttOperationBuilderOperationType`) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## ParameterList

`GanttOperationBuilder.``ParameterList`

  Returns the parameter data

  `-------------------------------------`

  Getter Method

  Signature `ParameterList`

  Returns: |
  Return type: | `NXOpen.Mechatronics.GanttOperationParameterBuilderList`

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## ParentID

`GanttOperationBuilder.``ParentID`

  Returns or sets the parent operation id in sequence editor tree

  `-------------------------------------`

  Getter Method

  Signature `ParentID`

  Returns: |
  Return type: | str

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `ParentID`

  Parameters: | parent (str) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## Physics

`GanttOperationBuilder.``Physics`

  Returns or sets the input of the operation : it can be a physics object(Rigid Body, Collision, Constraints, Joints etc.

  ), FunctionTable, part occurrence.

  `-------------------------------------`

  Getter Method

  Signature `Physics`

  Returns: |
  Return type: | `NXOpen.NXObject`

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `Physics`

  Parameters: | physics (`NXOpen.NXObject`) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## StartTime

`GanttOperationBuilder.``StartTime`

  Returns or sets the start time of operation

  `-------------------------------------`

  Getter Method

  Signature `StartTime`

  Returns: |
  Return type: | float

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

  `-------------------------------------`

  Setter Method

  Signature `StartTime`

  Parameters: | start (float) –

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## Type

`GanttOperationBuilder.``Type`

  Returns or sets the type of simple operation.

  `-------------------------------------`

  Getter Method

  Signature `Type`

  Returns: | Indicates the current type value of the dialog’s types block
  Return type: | `NXOpen.Mechatronics.GanttOperationBuilderSimpleOperationType`

  New in version NX9.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Type`

  Parameters: | type (`NXOpen.Mechatronics.GanttOperationBuilderSimpleOperationType`) – Indicates the type value of the dialog’s types block to be set to

  New in version NX9.0.0.

  License requirements: None.

# Method Detail

## AddConditionList

`GanttOperationBuilder.``AddConditionList`

  Sets the condition data

  Signature `AddConditionList(conditions)`

  Parameters: | conditions (list of `NXOpen.Mechatronics.GanttOperationConditionBuilder`) – Input conditions

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## AddParameterList

`GanttOperationBuilder.``AddParameterList`

  Sets the parameter data

  Signature `AddParameterList(parameters)`

  Parameters: | parameters (list of `NXOpen.Mechatronics.GanttOperationParameterBuilder`) – Input parameters

  New in version NX7.5.1.

  License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)

## Validate

`GanttOperationBuilder.``Validate`

  Validate whether the inputs to the component are sufficient for commit to be called.

  If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

  Signature `Validate()`

  Returns: | Was self validation successful
  Return type: | bool

  New in version NX3.0.1.

  License requirements: None.