NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Types | Public Member Functions | Properties | List of all members
NXOpen.Motion.MechanismImport Class Reference

Represents a Mechanism Import object used to import a Motion model from a text file. More...

Inheritance diagram for NXOpen.Motion.MechanismImport:
NXOpen.Utilities.NXRemotableObject IMessageSink

Public Types

enum  NamingRule { None, AddPrefix, AddSuffix }
 Naming Rule type to modify imported object's name More...
 

Public Member Functions

unsafe void ImportFromSubassembly (NXOpen.Assemblies.Component compOcc, NXOpen.Part motionPart, NXOpen.Part workPart, NXOpen.Motion.MechanismImport.NamingRule namingRule, string appendixString, bool reportToInfoWindow, bool abortOnFailure)
 Imports a Motion Definition (. More...
 
unsafe void ImportMdef (NXOpen.NXObject workPart, string fileName, NXOpen.Motion.MechanismImport.NamingRule namingRule, string addString, bool reportToInfoWindow, bool replaceExistingElements)
 Imports a Motion Definition (. More...
 
unsafe void ImportXML (NXOpen.Part workPart, string fileName, NXOpen.Motion.MechanismImport.NamingRule namingRule, string appendixString, bool reportToInfoWindow)
 Imports a Motion Definition (. More...
 
- Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject
IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
 Asynchronously processes the given message. More...
 
IMessage SyncProcessMessage (IMessage msg)
 Synchronously processes the given message. More...
 

Properties

Tag Tag [get]
 Returns the tag of this object. More...
 
- Properties inherited from NXOpen.Utilities.NXRemotableObject
IMessageSink NextSink [get]
 Gets the next message sink in the sink chain. More...
 

Additional Inherited Members

- Protected Member Functions inherited from NXOpen.Utilities.NXRemotableObject
void initialize ()
 <exclude> More...
 

Detailed Description

Represents a Mechanism Import object used to import a Motion model from a text file.

To obtain an instance of this class, refer to NXOpen.Motion.MotionSession

Created in NX12.0.0

Member Enumeration Documentation

Naming Rule type to modify imported object's name

Enumerator
None 

Keeps imported object's name as is

AddPrefix 

Adds a prefix string to imported object's name

AddSuffix 

Adds a suffix string to imported object's name

Member Function Documentation

unsafe void NXOpen.Motion.MechanismImport.ImportFromSubassembly ( NXOpen.Assemblies.Component  compOcc,
NXOpen.Part  motionPart,
NXOpen.Part  workPart,
NXOpen.Motion.MechanismImport.NamingRule  namingRule,
string  appendixString,
bool  reportToInfoWindow,
bool  abortOnFailure 
)
inline

Imports a Motion Definition (.

sim) Part.

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
compOccthe selected component part occ
motionPartthe motion part which the mechanism objects are imported from
workPartthe current work part
namingRuleenum to rule the naming behavior of the imported objects
appendixStringstring to add when NamingRule is AddPrefix or AddSuffix
reportToInfoWindowFlag to report import status in the information window
abortOnFailureFlag to rule whether to abort the process when there is error occurrs
unsafe void NXOpen.Motion.MechanismImport.ImportMdef ( NXOpen.NXObject  workPart,
string  fileName,
NXOpen.Motion.MechanismImport.NamingRule  namingRule,
string  addString,
bool  reportToInfoWindow,
bool  replaceExistingElements 
)
inline

Imports a Motion Definition (.

mdef) file.

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
workPart
fileNameFull path to the .mdef file
namingRule
addStringstring to add when NamingRule is AddPrefix or AddSuffix
reportToInfoWindowFlag to report import status in the information window
replaceExistingElementsFlag to replace elements with same names
unsafe void NXOpen.Motion.MechanismImport.ImportXML ( NXOpen.Part  workPart,
string  fileName,
NXOpen.Motion.MechanismImport.NamingRule  namingRule,
string  appendixString,
bool  reportToInfoWindow 
)
inline

Imports a Motion Definition (.

XML) file.

Created in NX12.0.0

License requirements: mechanisms ("MECHANISMS")

Parameters
workPart
fileNameFull path to the .xml file
namingRule
appendixStringstring to add when NamingRule is AddPrefix or AddSuffix
reportToInfoWindowFlag to report import status in the information window

Property Documentation

Tag NXOpen.Motion.MechanismImport.Tag
get

Returns the tag of this object.


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