OPCClientBuilder Class¶
-
class
NXOpen.Mechatronics.OPCClientBuilder¶ Bases:
NXOpen.BuilderRepresents a
NXOpen.Mechatronics.OPCClientBuilderThis class is sub-object of another builder, and cannot be directly instantiated.
New in version NX8.0.0.
Properties¶
| Property | Description |
|---|---|
| HostName | Returns or sets the host name. |
| OpcFileBrowser | Returns or sets the opc file browser. |
| SelectedConfigurationName | Returns or sets the selected configuration name |
| SelectedConfigurationPart | Returns or sets the selected configuration part |
| ServerProgID | Returns or sets the server prog ID. |
| ServerType | Returns or sets the server type. |
| Tag | Returns the Tag for this object. |
| UpdateTime | Returns the update time. |
Methods¶
| Method | Description |
|---|---|
| AddTags | Add item to the list. |
| Commit | Commits any edits that have been applied to the builder. |
| DeleteTags | Delete item from the list. |
| Destroy | Deletes the builder, and cleans up any objects created by the builder. |
| GetAvailableItems | Get the available OPC items. |
| GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
| GetItemAttributes | Get the attribute of OPC items |
| GetObject | Returns the object currently being edited by this builder. |
| GetServerNames | Gets OPC instance names |
| GetServerTags | Gets OPC instance Tags |
| SetAvailableItems | Set the available OPC items. |
| SetItemAttributes | Set the attribute of OPC items |
| 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¶
| OPCClientBuilderServerOption Enumeration | the server option. |
| OPCClientBuilderTagAccess Enumeration | the access right of OPC item. |
| OPCClientBuilderTagDataType Enumeration | the data type of OPC item. |
Structs¶
| OPCClientBuilderTagAttribute_Struct Struct | the attribute of OPC item. |
| OPCClientBuilderTagInfo_Struct Struct |
|
Property Detail¶
HostName¶
-
OPCClientBuilder.HostName¶ Returns or sets the host name.
-------------------------------------Getter Method
Signature
HostNameReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
HostNameParameters: hostName (str) – New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
OpcFileBrowser¶
-
OPCClientBuilder.OpcFileBrowser¶ Returns or sets the opc file browser.
-------------------------------------Getter Method
Signature
OpcFileBrowserReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
OpcFileBrowserParameters: filename (str) – New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
SelectedConfigurationName¶
-
OPCClientBuilder.SelectedConfigurationName¶ Returns or sets the selected configuration name
-------------------------------------Getter Method
Signature
SelectedConfigurationNameReturns: Return type: str New in version NX12.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SelectedConfigurationNameParameters: configurationName (str) – New in version NX12.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
SelectedConfigurationPart¶
-
OPCClientBuilder.SelectedConfigurationPart¶ Returns or sets the selected configuration part
-------------------------------------Getter Method
Signature
SelectedConfigurationPartReturns: Return type: NXOpen.PartNew in version NX12.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
SelectedConfigurationPartParameters: ownerPart ( NXOpen.Part) –New in version NX12.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
ServerProgID¶
-
OPCClientBuilder.ServerProgID¶ Returns or sets the server prog ID.
-------------------------------------Getter Method
Signature
ServerProgIDReturns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ServerProgIDParameters: serverProgID (str) – New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
ServerType¶
-
OPCClientBuilder.ServerType¶ Returns or sets the server type.
-------------------------------------Getter Method
Signature
ServerTypeReturns: Return type: NXOpen.Mechatronics.OPCClientBuilderServerOptionNew in version NX8.0.0.
License requirements: None.
-------------------------------------Setter Method
Signature
ServerTypeParameters: serverType ( NXOpen.Mechatronics.OPCClientBuilderServerOption) –New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
UpdateTime¶
-
OPCClientBuilder.UpdateTime¶ Returns the update time.
-------------------------------------Getter Method
Signature
UpdateTimeReturns: Return type: NXOpen.ExpressionNew in version NX8.0.0.
License requirements: None.
Method Detail¶
AddTags¶
-
OPCClientBuilder.AddTags¶ Add item to the list.
Signature
AddTags()New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
DeleteTags¶
-
OPCClientBuilder.DeleteTags¶ Delete item from the list.
Signature
DeleteTags()New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
GetAvailableItems¶
-
OPCClientBuilder.GetAvailableItems¶ Get the available OPC items.
Signature
GetAvailableItems()Returns: a tuple Return type: A tuple consisting of (tagName, tagType). tagName is a list of str. tagType is a list of NXOpen.Mechatronics.OPCClientBuilderTagDataType.New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
GetItemAttributes¶
-
OPCClientBuilder.GetItemAttributes¶ Get the attribute of OPC items
Signature
GetItemAttributes()Returns: Return type: list of NXOpen.Mechatronics.OPCClientBuilderTagAttribute_StructNew in version NX8.5.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
GetServerNames¶
-
OPCClientBuilder.GetServerNames¶ Gets OPC instance names
Signature
GetServerNames()Returns: Return type: list of str New in version NX12.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
GetServerTags¶
-
OPCClientBuilder.GetServerTags¶ Gets OPC instance Tags
Signature
GetServerTags(serverName)Parameters: serverName (str) – Returns: Array of TagInfos Return type: list of NXOpen.Mechatronics.OPCClientBuilderTagInfo_StructNew in version NX12.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
SetAvailableItems¶
-
OPCClientBuilder.SetAvailableItems¶ Set the available OPC items.
Signature
SetAvailableItems(tagName, tagType)Parameters: - tagName (list of str) –
- tagType (list of
NXOpen.Mechatronics.OPCClientBuilderTagDataType) –
New in version NX8.0.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
SetItemAttributes¶
-
OPCClientBuilder.SetItemAttributes¶ Set the attribute of OPC items
Signature
SetItemAttributes(attr)Parameters: attr (list of NXOpen.Mechatronics.OPCClientBuilderTagAttribute_Struct) –New in version NX8.5.0.
License requirements: nx_mcd_core (“MECHATRONICS CONCEPT DESIGNER”)
Validate¶
-
OPCClientBuilder.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.