NX Open C++ Reference Guide
|
Represents a Mechatronics::OPCClientBuilder
To create a new instance of this class, use Mechatronics::PhysicsManager::CreateOpcclientBuilder
Created in NX8.0.0.
More...
Classes | |
struct | TagAttribute |
the attribute of OPC item. More... | |
Public Types | |
enum | ServerOption { ServerOptionLocal, ServerOptionRemote, ServerOptionInProc } |
the server option. More... | |
enum | TagAccess { TagAccessReadOnly = 1, TagAccessWriteOnly, TagAccessReadWrite } |
the access right of OPC item. More... | |
enum | TagDataType { TagDataTypeUnknown, TagDataTypeInteger, TagDataTypeFloat, TagDataTypeBoolean } |
the data type of OPC item. More... | |
Public Member Functions | |
void | AddTags () |
Add item to the list. | |
void | DeleteTags () |
Delete item from the list. | |
void | GetAvailableItems (std::vector< NXString > &tagName, std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagDataType > &tagType) |
Get the available OPC items. | |
void | GetItemAttributes (std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagAttribute > &attr) |
Get the attribute of OPC items Created in NX8.5.0. | |
NXString | HostName () |
Returns the host name. | |
NXString | OpcFileBrowser () |
Returns the opc file browser. | |
NXString | ServerProgID () |
Returns the server prog ID. | |
NXOpen::Mechatronics::OPCClientBuilder::ServerOption | ServerType () |
Returns the server type. | |
void | SetAvailableItems (const std::vector< NXString > &tagName, const std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagDataType > &tagType) |
Set the available OPC items. | |
void | SetHostName (const NXString &hostName) |
Sets the host name. | |
void | SetHostName (const char *hostName) |
Sets the host name. | |
void | SetItemAttributes (const std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagAttribute > &attr) |
Set the attribute of OPC items Created in NX8.5.0. | |
void | SetOpcFileBrowser (const NXString &filename) |
Sets the opc file browser. | |
void | SetOpcFileBrowser (const char *filename) |
Sets the opc file browser. | |
void | SetServerProgID (const NXString &serverProgID) |
Sets the server prog ID. | |
void | SetServerProgID (const char *serverProgID) |
Sets the server prog ID. | |
void | SetServerType (NXOpen::Mechatronics::OPCClientBuilder::ServerOption serverType) |
Sets the server type. | |
NXOpen::Expression * | UpdateTime () |
Returns the update time. | |
![]() | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a Mechatronics::OPCClientBuilder
To create a new instance of this class, use Mechatronics::PhysicsManager::CreateOpcclientBuilder
Created in NX8.0.0.
void NXOpen::Mechatronics::OPCClientBuilder::AddTags | ( | ) |
Add item to the list.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
void NXOpen::Mechatronics::OPCClientBuilder::DeleteTags | ( | ) |
Delete item from the list.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
void NXOpen::Mechatronics::OPCClientBuilder::GetAvailableItems | ( | std::vector< NXString > & | tagName, |
std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagDataType > & | tagType | ||
) |
Get the available OPC items.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
tagName | tagname |
tagType | tagtype |
void NXOpen::Mechatronics::OPCClientBuilder::GetItemAttributes | ( | std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagAttribute > & | attr | ) |
Get the attribute of OPC items
Created in NX8.5.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
attr | attr |
NXString NXOpen::Mechatronics::OPCClientBuilder::HostName | ( | ) |
Returns the host name.
Created in NX8.0.0.
License requirements : None
NXString NXOpen::Mechatronics::OPCClientBuilder::OpcFileBrowser | ( | ) |
Returns the opc file browser.
Created in NX8.0.0.
License requirements : None
NXString NXOpen::Mechatronics::OPCClientBuilder::ServerProgID | ( | ) |
Returns the server prog ID.
Created in NX8.0.0.
License requirements : None
NXOpen::Mechatronics::OPCClientBuilder::ServerOption NXOpen::Mechatronics::OPCClientBuilder::ServerType | ( | ) |
Returns the server type.
Created in NX8.0.0.
License requirements : None
void NXOpen::Mechatronics::OPCClientBuilder::SetAvailableItems | ( | const std::vector< NXString > & | tagName, |
const std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagDataType > & | tagType | ||
) |
Set the available OPC items.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
tagName | tagname |
tagType | tagtype |
void NXOpen::Mechatronics::OPCClientBuilder::SetHostName | ( | const NXString & | hostName | ) |
Sets the host name.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
hostName | hostname |
void NXOpen::Mechatronics::OPCClientBuilder::SetHostName | ( | const char * | hostName | ) |
Sets the host name.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
hostName | hostname |
void NXOpen::Mechatronics::OPCClientBuilder::SetItemAttributes | ( | const std::vector< NXOpen::Mechatronics::OPCClientBuilder::TagAttribute > & | attr | ) |
Set the attribute of OPC items
Created in NX8.5.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
attr | attr |
void NXOpen::Mechatronics::OPCClientBuilder::SetOpcFileBrowser | ( | const NXString & | filename | ) |
Sets the opc file browser.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
filename | filename |
void NXOpen::Mechatronics::OPCClientBuilder::SetOpcFileBrowser | ( | const char * | filename | ) |
Sets the opc file browser.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
filename | filename |
void NXOpen::Mechatronics::OPCClientBuilder::SetServerProgID | ( | const NXString & | serverProgID | ) |
Sets the server prog ID.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
serverProgID | serverprogid |
void NXOpen::Mechatronics::OPCClientBuilder::SetServerProgID | ( | const char * | serverProgID | ) |
Sets the server prog ID.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
serverProgID | serverprogid |
void NXOpen::Mechatronics::OPCClientBuilder::SetServerType | ( | NXOpen::Mechatronics::OPCClientBuilder::ServerOption | serverType | ) |
Sets the server type.
Created in NX8.0.0.
License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
serverType | servertype |
NXOpen::Expression* NXOpen::Mechatronics::OPCClientBuilder::UpdateTime | ( | ) |
Returns the update time.
Created in NX8.0.0.
License requirements : None