NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::Mechatronics::RuntimeNCBuilder Class Reference

Represents a NXOpen::Mechatronics::RuntimeNCBuilder . More...

Inheritance diagram for NXOpen::Mechatronics::RuntimeNCBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Member Functions

void ExportNCCode (const NXString &ncFile)
 This method is used to export current loaded NC Code to disk file. More...
 
void ExportNCCode (const char *ncFile)
 This method is used to export current loaded NC Code to disk file. More...
 
bool FlagOfUsingContainer ()
 Returns the flag which indicates whether to put the MCD connected objects to the specific 'Runtime NC' container or not. More...
 
bool FlagOfUsingSpecifiedMCF ()
 Returns the flag which indicates whether use the specified MCF or not. More...
 
void GetAxesAndMachineEvents (std::vector< NXString > &axisNames, std::vector< NXString > &machineEventNames)
 This method is used to get the axes that involved the motion of CSE output event, and the machine event (e.g. More...
 
NXOpen::TaggedObjectGetMCDConnection (bool isAxis, const NXString &axisOrEventName)
 This method is used to get the MCD connected object to the specified axis or machine event. More...
 
NXOpen::TaggedObjectGetMCDConnection (bool isAxis, const char *axisOrEventName)
 This method is used to get the MCD connected object to the specified axis or machine event. More...
 
void LoadNCFile (const NXString &ncFile)
 This method is used to load NC file. More...
 
void LoadNCFile (const char *ncFile)
 This method is used to load NC file. More...
 
NXString Name ()
 Returns the name. More...
 
void RunCSE (bool *isRunningOK, NXString *errMsg, int *lineNum, NXString *ncLine)
 This method is used to run NC Code via CSE in order to get output events
Created in NX9.0.0. More...
 
void SetFlagOfUsingContainer (bool flagOfUsingContainer)
 Sets the flag which indicates whether to put the MCD connected objects to the specific 'Runtime NC' container or not. More...
 
void SetFlagOfUsingSpecifiedMCF (bool flagOfUsingSpecifiedMCF)
 Sets the flag which indicates whether use the specified MCF or not. More...
 
void SetMCDConnection (bool isAxis, const NXString &axisOrEventName, NXOpen::TaggedObject *mcdConnectedTag)
 This method is used to set the MCD connected object to the specified axis or machine event
Created in NX9.0.0. More...
 
void SetMCDConnection (bool isAxis, const char *axisOrEventName, NXOpen::TaggedObject *mcdConnectedTag)
 This method is used to set the MCD connected object to the specified axis or machine event
Created in NX9.0.0. More...
 
void SetName (const NXString &name)
 Sets the name. More...
 
void SetName (const char *name)
 Sets the name. More...
 
void SetSpecifiedMCF (const NXString &specifiedMCF)
 Sets the user specified MCF File. More...
 
void SetSpecifiedMCF (const char *specifiedMCF)
 Sets the user specified MCF File. More...
 
NXString SpecifiedMCF ()
 Returns the user specified MCF File. More...
 
void UpdateNCCode (std::vector< NXString > &ncCodeLines)
 This method is used to update NC code. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a NXOpen::Mechatronics::RuntimeNCBuilder .


To create a new instance of this class, use NXOpen::Mechatronics::RuntimeNCCollection::CreateRuntimeNcBuilder

Created in NX9.0.0.

Member Function Documentation

void NXOpen::Mechatronics::RuntimeNCBuilder::ExportNCCode ( const NXString ncFile)

This method is used to export current loaded NC Code to disk file.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
ncFilencfile
void NXOpen::Mechatronics::RuntimeNCBuilder::ExportNCCode ( const char *  ncFile)

This method is used to export current loaded NC Code to disk file.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
ncFilencfile
bool NXOpen::Mechatronics::RuntimeNCBuilder::FlagOfUsingContainer ( )

Returns the flag which indicates whether to put the MCD connected objects to the specific 'Runtime NC' container or not.

true means put the MCD connected objects to the specific container (creates the container if it is not exist); false means restore the MCD connected objects to the original default folder, and remove the 'Runtime NC' container.


Created in NX9.0.0.

License requirements : None

bool NXOpen::Mechatronics::RuntimeNCBuilder::FlagOfUsingSpecifiedMCF ( )

Returns the flag which indicates whether use the specified MCF or not.

True means use user specified MCF file for running CSE, or use the Standard MCF file in MCD kits.


Created in NX9.0.0.

License requirements : None

void NXOpen::Mechatronics::RuntimeNCBuilder::GetAxesAndMachineEvents ( std::vector< NXString > &  axisNames,
std::vector< NXString > &  machineEventNames 
)

This method is used to get the axes that involved the motion of CSE output event, and the machine event (e.g.

ToolChange) that fired by CSE. These axes and machine events are used to connect with MCD objects, so in the MCD simulation stage, the CSE will know which MCD runtime object will be driven.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
axisNamesThe axis names which involved in CSE motion.
machineEventNamesThe name of events fired by CSE.
NXOpen::TaggedObject* NXOpen::Mechatronics::RuntimeNCBuilder::GetMCDConnection ( bool  isAxis,
const NXString axisOrEventName 
)

This method is used to get the MCD connected object to the specified axis or machine event.

Returns
MCD connected object. The object type can be Mechatronics.PositionControl for the motion axis; or Mechatronics.SpeedControl for the spinde axis; or Mechatronics.GanttOperationObject for the machine event.
Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
Parameters
isAxisFlag indicates whether the MCD object is set to connect with axis or machine event.
axisOrEventNameAxis or machine event name.
NXOpen::TaggedObject* NXOpen::Mechatronics::RuntimeNCBuilder::GetMCDConnection ( bool  isAxis,
const char *  axisOrEventName 
)

This method is used to get the MCD connected object to the specified axis or machine event.

Returns
MCD connected object. The object type can be Mechatronics.PositionControl for the motion axis; or Mechatronics.SpeedControl for the spinde axis; or Mechatronics.GanttOperationObject for the machine event.
Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")
Parameters
isAxisFlag indicates whether the MCD object is set to connect with axis or machine event.
axisOrEventNameAxis or machine event name.
void NXOpen::Mechatronics::RuntimeNCBuilder::LoadNCFile ( const NXString ncFile)

This method is used to load NC file.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
ncFilencfile
void NXOpen::Mechatronics::RuntimeNCBuilder::LoadNCFile ( const char *  ncFile)

This method is used to load NC file.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
ncFilencfile
NXString NXOpen::Mechatronics::RuntimeNCBuilder::Name ( )

Returns the name.


Created in NX9.0.0.

License requirements : None

void NXOpen::Mechatronics::RuntimeNCBuilder::RunCSE ( bool *  isRunningOK,
NXString errMsg,
int *  lineNum,
NXString ncLine 
)

This method is used to run NC Code via CSE in order to get output events
Created in NX9.0.0.



License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
isRunningOKTrue means CSE returns succeed result, or failure.
errMsgError message if CSE return false.
lineNumThe NC line number at which CSE failed.
ncLineThe NC Code for which CSE failed.
void NXOpen::Mechatronics::RuntimeNCBuilder::SetFlagOfUsingContainer ( bool  flagOfUsingContainer)

Sets the flag which indicates whether to put the MCD connected objects to the specific 'Runtime NC' container or not.

true means put the MCD connected objects to the specific container (creates the container if it is not exist); false means restore the MCD connected objects to the original default folder, and remove the 'Runtime NC' container.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
flagOfUsingContainerflagofusingcontainer
void NXOpen::Mechatronics::RuntimeNCBuilder::SetFlagOfUsingSpecifiedMCF ( bool  flagOfUsingSpecifiedMCF)

Sets the flag which indicates whether use the specified MCF or not.

True means use user specified MCF file for running CSE, or use the Standard MCF file in MCD kits.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
flagOfUsingSpecifiedMCFflagofusingspecifiedmcf
void NXOpen::Mechatronics::RuntimeNCBuilder::SetMCDConnection ( bool  isAxis,
const NXString axisOrEventName,
NXOpen::TaggedObject mcdConnectedTag 
)

This method is used to set the MCD connected object to the specified axis or machine event
Created in NX9.0.0.



License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
isAxisFlag indicates whether the MCD object is set to connect with axis or machine event.
axisOrEventNameAxis or machine event name.
mcdConnectedTagMCD connected object. The object type can be Mechatronics.PositionControl for the motion axis; or Mechatronics.SpeedControl for the spinde axis; or Mechatronics.GanttOperationObject for the machine event.
void NXOpen::Mechatronics::RuntimeNCBuilder::SetMCDConnection ( bool  isAxis,
const char *  axisOrEventName,
NXOpen::TaggedObject mcdConnectedTag 
)

This method is used to set the MCD connected object to the specified axis or machine event
Created in NX9.0.0.



License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
isAxisFlag indicates whether the MCD object is set to connect with axis or machine event.
axisOrEventNameAxis or machine event name.
mcdConnectedTagMCD connected object. The object type can be Mechatronics.PositionControl for the motion axis; or Mechatronics.SpeedControl for the spinde axis; or Mechatronics.GanttOperationObject for the machine event.
void NXOpen::Mechatronics::RuntimeNCBuilder::SetName ( const NXString name)

Sets the name.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
namename
void NXOpen::Mechatronics::RuntimeNCBuilder::SetName ( const char *  name)

Sets the name.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
namename
void NXOpen::Mechatronics::RuntimeNCBuilder::SetSpecifiedMCF ( const NXString specifiedMCF)

Sets the user specified MCF File.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
specifiedMCFspecifiedmcf
void NXOpen::Mechatronics::RuntimeNCBuilder::SetSpecifiedMCF ( const char *  specifiedMCF)

Sets the user specified MCF File.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
specifiedMCFspecifiedmcf
NXString NXOpen::Mechatronics::RuntimeNCBuilder::SpecifiedMCF ( )

Returns the user specified MCF File.


Created in NX9.0.0.

License requirements : None

void NXOpen::Mechatronics::RuntimeNCBuilder::UpdateNCCode ( std::vector< NXString > &  ncCodeLines)

This method is used to update NC code.


Created in NX9.0.0.

License requirements : nx_mcd_core ("MECHATRONICS CONCEPT DESIGNER")

Parameters
ncCodeLinesnccodelines

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.