NXOpen .NET Reference
12.0.0
|
Represents a builder class that performs Create operations More...
Public Types | |
enum | ExistingPartAction { Overwrite, UseExisting, NewRevision, Default } |
This enum is used to specify the default action for import. More... | |
enum | NumberingSourceOption { PartIDGenerator, OSFilename, Attribute } |
This enum is used to specify the default behavior for auto assign. More... | |
enum | ConversionRule { AsID, AsIDandRevision, WithPrefix, WithSuffix, WithReplaceString } |
This enum is used to specify the conversion rule for NXOpen.PDM.PartOperationImportBuilder.NumberingSourceOption.OSFilename . More... | |
enum | Validation { Off, ImportFromPart, RunValidation, RunValidationHybrid, Default } |
This enum is used to specify the validation mode. More... | |
enum | ValidationRuleSetFileBrowseOption { Native, Teamcenter } |
This enum is used to specify the option to browse the validation rule set file from. More... | |
Public Types inherited from NXOpen.PDM.PartOperationBuilder | |
enum | OperationType { SaveAs, Revise, Create, Import } |
Represents an operation type that can be performed on a part More... | |
enum | NonMasterSaveAs { All, None } |
This enum is used to specify which non-master parts should be saved during the save as operation. More... | |
enum | DependentFileSaveAs { All, None } |
This enum is used to specify which dependent files should be saved during the save as operation. More... | |
Public Member Functions | |
unsafe void | AddParts (string[] parts, out string[] errorMsgs) |
Add parts to import More... | |
unsafe void | AddPartsUsingLogFile (string logFilePath, out string[] errorMsgs) |
Add parts using log file either clone log file or import log file More... | |
unsafe void | AddPartsFromFolder (string folderPath, out string[] errorMsgs) |
Add parts to import from selected folder More... | |
unsafe void | GetUpdatedLogicalObjects (out NXOpen.PDM.LogicalObject[] logicalObjects) |
Gets the updated logical object objects for the parts after item type, relation type or master part for nonmaster is set or changed. More... | |
unsafe NXOpen.PDM.LogicalObject | GetLogicalObjectForPart (string partFilename) |
Gets the known logical object for the given part filename. More... | |
unsafe void | ResetAttributes (NXOpen.PDM.LogicalObject[] logicalObjects) |
Clear all attributes from the selected logical objects More... | |
unsafe void | ExecuteDryRun () |
Execute the dry run More... | |
unsafe void | GetDefaultProjectInformation (out string[] projectNames, out NXOpen.Session.ProjectAssignmentState[] assignmentStates) |
Get default projects information More... | |
unsafe void | SetDefaultProjectInformation (string[] projectNames, NXOpen.Session.ProjectAssignmentState[] assignmentStates) |
Set default projects information More... | |
unsafe void | GetDfaFiles (out string[] dfaFiles) |
Get the dfa files More... | |
unsafe void | SetDfaFiles (string[] dfaFiles) |
Set the dfa files More... | |
unsafe void | RemoveDfaFile (string filename) |
Remove the dfa file More... | |
unsafe void | SetExistingPartAttributes (NXOpen.PDM.LogicalObject logicalObject, string existingPartCliSpec) |
Set attributes of existing part on the given logical object so that the part gets imported into specified existing item based on action. More... | |
unsafe void | ValidateLogicalObjects () |
Validate the user inputs for following things: More... | |
unsafe void | UpdateTeamcenterInformation (NXOpen.PDM.LogicalObject[] logicalObjects) |
Update the Teamcenter information string attribute TCIN_IMPORT_TEAMCENTER_INFORMATION on given logical objects More... | |
Public Member Functions inherited from NXOpen.PDM.PartOperationBuilder | |
unsafe void | CreateLogicalObjects (out NXOpen.PDM.LogicalObject[] logicalObjects) |
Creates the pre-creation objects for the parts More... | |
unsafe NXOpen.PDM.PartOperationBuilder.OperationType | GetDialogOperation () |
Returns the dialog operation Applicable only for operation types PartOperationBuilder.OperationType.SaveAs and PartOperationBuilder.OperationType.Revise More... | |
unsafe void | SetDialogOperation (NXOpen.PDM.PartOperationBuilder.OperationType dialogOperation) |
Sets the dialog operation. More... | |
unsafe NXOpen.ErrorList | GetOperationFailures () |
Returns part operation failures More... | |
unsafe NXOpen.PDM.AlternateIdManager | GetAlternateIDManager (NXOpen.PDM.LogicalObject logicalObject) |
Create an instance of a NXOpen.PDM.AlternateIdManager class that will be used to create alternate ID information while creating the new part. More... | |
unsafe void | CreateSpecificationsForLogicalObjects (NXOpen.PDM.LogicalObject[] logicalObjects) |
Create new specifications for Logical Objects More... | |
unsafe void | ValidateLogicalObjectsToCommit () |
Validates NXOpen.PDM.LogicalObject objects with this builder and udpates the operation failuers. More... | |
unsafe void | SetSelectedParts (NXOpen.BasePart[] selectedParts, out NXOpen.BasePart[] failedParts) |
Sets the selected parts. More... | |
unsafe void | AddRelatedPartToOperate (NXOpen.BasePart basePart, NXOpen.BasePart[] relatedParts, string[] relatedPartsReasons, NXOpen.PDM.PartOperationBuilder.OperationType operation) |
Add related part to the part undergoing an operation. More... | |
unsafe void | CreateNonMasterListForLogicalObject (NXOpen.PDM.LogicalObject logicalObject) |
Create NonMaster list for the selected logical Object More... | |
unsafe void | SetNonMasterSaveAsOption (NXOpen.PDM.LogicalObject logicalObject, NXOpen.PDM.PartOperationBuilder.NonMasterSaveAs saveOption) |
Set the nonmasters saveAs option for given logical object More... | |
unsafe void | SetSelectedNonMasterToSaveAs (NXOpen.PDM.LogicalObject logicalObject, string partName) |
Sets whether or not the non-master part specified will actually get saved during the save as operation. More... | |
unsafe string[] | GetNonMasterList (NXOpen.PDM.LogicalObject logicalObject) |
Gets NonMaster list for the given logical Object More... | |
unsafe bool | IsNonMasterBeingCopied (NXOpen.PDM.LogicalObject logicalObject, string partName) |
Returns whether or not the non master part specified for the given NXOpen.PDM.LogicalObject will actually get saved during the save as operation. More... | |
unsafe NXOpen.PDM.PartOperationBuilder.NonMasterSaveAs | GetNonMasterCopyOption (NXOpen.PDM.LogicalObject logicalObject) |
Get the nonmasters saveAs option for given logical object. More... | |
unsafe bool | EditNonMasterName (NXOpen.PDM.LogicalObject logicalObject, string oldName, string newName) |
Sets the name the non-master part will get saved as. More... | |
unsafe void | ClearWarnings () |
Executes method ClearWarningCodeToLogicalObjectsSetMap() which clears m_warningCodeToLogicalObjectsSetMap More... | |
unsafe NXOpen.PDM.ErrorMessageHandler | GetErrorMessageHandler (bool refresh) |
Returns ErrorMessageHandler More... | |
unsafe NXOpen.ErrorList | AutoAssignAttributes (NXOpen.NXObject[] objects) |
Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign. More... | |
unsafe NXOpen.ErrorList | AutoAssignAttributesWithNamingPattern (NXOpen.NXObject[] objects, NXOpen.NXObject[] properties) |
Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign. More... | |
unsafe NXOpen.NXObject | CreateAttributeTitleToNamingPatternMap (string[] attributeTitles, string[] titlePatterns) |
Creates a map object of attribute titles to their corresponding naming pattern More... | |
Public Member Functions inherited from NXOpen.Builder | |
unsafe NXOpen.NXObject | Commit () |
Commits any edits that have been applied to the builder. More... | |
unsafe void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. More... | |
unsafe NXOpen.NXObject[] | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. More... | |
unsafe NXOpen.NXObject | GetObject () |
Returns the object currently being edited by this builder. More... | |
unsafe void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. More... | |
unsafe bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Properties | |
unsafe bool | AddCAENonMastersToImport [get, set] |
Returns or sets the add non master to import More... | |
unsafe bool | AddDfaMixins [get, set] |
Returns or sets the add dfa mixins More... | |
unsafe bool | AssignAlternateIds [get, set] |
Returns or sets the method returns the value indicating whether alternate IDs should be created during import More... | |
unsafe string | AssociatedFilesRootDirectory [get, set] |
Returns or sets the associated files root directory More... | |
unsafe NXOpen.PDM.PartOperationImportBuilder.ConversionRule | ConversionType [get, set] |
Returns or sets the conversion type More... | |
unsafe NXOpen.PDM.PartOperationImportBuilder.ExistingPartAction | DefaultAction [get, set] |
Returns or sets the default action More... | |
unsafe string | DefaultAlternateIdContext [get, set] |
Returns or sets the method returns the IdContext to be used while assigning alternate IDs during import More... | |
unsafe string | DefaultAlternateIdType [get, set] |
Returns or sets the method returns the IdType to be used while assigning alternate IDs during import More... | |
unsafe string | DefaultDescription [get, set] |
Returns or sets the default description More... | |
unsafe string | DefaultItemType [get, set] |
Returns or sets the default item type More... | |
unsafe string | DefaultName [get, set] |
Returns or sets the default name More... | |
unsafe string | DefaultOwningGroup [get, set] |
Returns or sets the default owning group More... | |
unsafe string | DefaultOwningUser [get, set] |
Returns or sets the default owning user More... | |
unsafe bool | IncludeComponentParts [get, set] |
Returns or sets the include component parts More... | |
unsafe bool | IncludeDependentParts [get, set] |
Returns or sets the include dependent parts More... | |
unsafe string | NumberAttr [get, set] |
Returns or sets the number attr More... | |
unsafe NXOpen.PDM.PartOperationImportBuilder.NumberingSourceOption | NumberingSource [get, set] |
Returns or sets the numbering source More... | |
unsafe string | OutputLogFile [get, set] |
Returns or sets the output log file More... | |
unsafe string | PrefixStr [get, set] |
Returns or sets the prefix str More... | |
unsafe bool | ProductInterfaces [get, set] |
Returns or sets the product interfaces More... | |
unsafe bool | PublishOptionalInfo [get, set] |
Returns or sets the optional information publishing More... | |
unsafe string | ReplaceWithStr [get, set] |
Returns or sets the replace with str More... | |
unsafe string | RevisionAttr [get, set] |
Returns or sets the revision attr More... | |
unsafe string | StringToReplace [get, set] |
Returns or sets the string to replace More... | |
unsafe string | SuffixStr [get, set] |
Returns or sets the suffix str More... | |
unsafe bool | SyncArrangements [get, set] |
Returns or sets the sync arrangements More... | |
unsafe bool | UseItemTypeFromPartFile [get, set] |
Returns or sets the flag to specify if Import can use the Item Type already present in the part during import More... | |
unsafe bool | ValidationAbortImportOnFail [get, set] |
Returns or sets the validation abort import on fail More... | |
unsafe NXOpen.PDM.PartOperationImportBuilder.Validation | ValidationMode [get, set] |
Returns or sets the validation mode More... | |
unsafe NXOpen.PDM.PartOperationImportBuilder.ValidationRuleSetFileBrowseOption | ValidationRuleSetBrowseOption [get, set] |
Returns or sets the validation rule set browse option More... | |
unsafe string | ValidationRuleSetFile [get, set] |
Returns or sets the validation rule set file More... | |
unsafe bool | ValidationTreatOutdatedAsPass [get, set] |
Returns or sets the validation treat outdated as pass More... | |
unsafe bool | ValidationTreatWarningAsPass [get, set] |
Returns or sets the validation treat warning as pass More... | |
Properties inherited from NXOpen.PDM.PartOperationBuilder | |
unsafe string | DefaultDestinationFolder [get, set] |
Returns or sets the default destination folder string for the part being created . More... | |
unsafe NXOpen.PDM.PartOperationBuilder.DependentFileSaveAs | DependentFileSaveAsOption [get, set] |
Returns or sets the Dependent files Save As option. More... | |
unsafe bool | ReplaceAllComponents [get, set] |
Returns or sets the replace all components. More... | |
Represents a builder class that performs Create operations
To create a new instance of this class, use NXOpen.PDM.PdmSession.CreateImportOperationBuilder
Default values.
Property | Value |
---|---|
ConversionType |
AsID |
DefaultAction |
Overwrite |
IncludeComponentParts |
1 |
IncludeDependentParts |
0 |
NumberingSource |
PartIDGenerator |
UseItemTypeFromPartFile |
0 |
ValidationAbortImportOnFail |
0 |
ValidationMode |
Off |
ValidationRuleSetBrowseOption |
Native |
ValidationTreatOutdatedAsPass |
0 |
ValidationTreatWarningAsPass |
1 |
Created in NX10.0.0
This enum is used to specify the conversion rule for NXOpen.PDM.PartOperationImportBuilder.NumberingSourceOption.OSFilename .
Enumerator | |
---|---|
AsID | |
AsIDandRevision | |
WithPrefix | |
WithSuffix | |
WithReplaceString |
unsafe void NXOpen.PDM.PartOperationImportBuilder.AddParts | ( | string[] | parts, |
out string[] | errorMsgs | ||
) |
Add parts to import
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
parts | |
errorMsgs |
unsafe void NXOpen.PDM.PartOperationImportBuilder.AddPartsFromFolder | ( | string | folderPath, |
out string[] | errorMsgs | ||
) |
Add parts to import from selected folder
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
folderPath | |
errorMsgs |
unsafe void NXOpen.PDM.PartOperationImportBuilder.AddPartsUsingLogFile | ( | string | logFilePath, |
out string[] | errorMsgs | ||
) |
Add parts using log file either clone log file or import log file
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
logFilePath | |
errorMsgs |
unsafe void NXOpen.PDM.PartOperationImportBuilder.ExecuteDryRun | ( | ) |
Execute the dry run
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
unsafe void NXOpen.PDM.PartOperationImportBuilder.GetDefaultProjectInformation | ( | out string[] | projectNames, |
out NXOpen.Session.ProjectAssignmentState[] | assignmentStates | ||
) |
Get default projects information
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
projectNames | names of the projects |
assignmentStates | assignment states |
unsafe void NXOpen.PDM.PartOperationImportBuilder.GetDfaFiles | ( | out string[] | dfaFiles | ) |
Get the dfa files
Created in NX10.0.0
License requirements: None.
dfaFiles |
unsafe NXOpen.PDM.LogicalObject NXOpen.PDM.PartOperationImportBuilder.GetLogicalObjectForPart | ( | string | partFilename | ) |
Gets the known logical object for the given part filename.
Created in NX10.0.0
License requirements: None.
partFilename |
unsafe void NXOpen.PDM.PartOperationImportBuilder.GetUpdatedLogicalObjects | ( | out NXOpen.PDM.LogicalObject[] | logicalObjects | ) |
Gets the updated logical object objects for the parts after item type, relation type or master part for nonmaster is set or changed.
Created in NX10.0.0
License requirements: None.
logicalObjects |
unsafe void NXOpen.PDM.PartOperationImportBuilder.RemoveDfaFile | ( | string | filename | ) |
Remove the dfa file
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
filename |
unsafe void NXOpen.PDM.PartOperationImportBuilder.ResetAttributes | ( | NXOpen.PDM.LogicalObject[] | logicalObjects | ) |
Clear all attributes from the selected logical objects
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
logicalObjects |
unsafe void NXOpen.PDM.PartOperationImportBuilder.SetDefaultProjectInformation | ( | string[] | projectNames, |
NXOpen.Session.ProjectAssignmentState[] | assignmentStates | ||
) |
Set default projects information
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
projectNames | names of the projects to assign |
assignmentStates | assignment states |
unsafe void NXOpen.PDM.PartOperationImportBuilder.SetDfaFiles | ( | string[] | dfaFiles | ) |
Set the dfa files
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
dfaFiles |
unsafe void NXOpen.PDM.PartOperationImportBuilder.SetExistingPartAttributes | ( | NXOpen.PDM.LogicalObject | logicalObject, |
string | existingPartCliSpec | ||
) |
Set attributes of existing part on the given logical object so that the part gets imported into specified existing item based on action.
Created in NX10.0.0
License requirements: assemblies ("ASSEMBLIES MODULE")
logicalObject | |
existingPartCliSpec |
unsafe void NXOpen.PDM.PartOperationImportBuilder.UpdateTeamcenterInformation | ( | NXOpen.PDM.LogicalObject[] | logicalObjects | ) |
Update the Teamcenter information string attribute TCIN_IMPORT_TEAMCENTER_INFORMATION on given logical objects
Created in NX10.0.1
License requirements: assemblies ("ASSEMBLIES MODULE")
logicalObjects |
unsafe void NXOpen.PDM.PartOperationImportBuilder.ValidateLogicalObjects | ( | ) |
Validate the user inputs for following things:
Created in NX10.0.1
License requirements: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the add non master to import
Created in NX11.0.1
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the add dfa mixins
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the method returns the value indicating whether alternate IDs should be created during import
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the associated files root directory
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the conversion type
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the default action
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the method returns the IdContext to be used while assigning alternate IDs during import
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the method returns the IdType to be used while assigning alternate IDs during import
Created in NX12.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the default description
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the default item type
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the default name
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the default owning group
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the default owning user
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the include component parts
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the include dependent parts
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the number attr
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the numbering source
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the output log file
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the prefix str
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the product interfaces
Created in NX10.0.0
Deprecated in NX10.0.2. It is no longer supported.
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the optional information publishing
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the replace with str
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the revision attr
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the string to replace
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the suffix str
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the sync arrangements
Created in NX10.0.0
Deprecated in NX10.0.2. It is no longer supported.
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the flag to specify if Import can use the Item Type already present in the part during import
Created in NX11.0.0
License requirements to get this property: assemblies ("ASSEMBLIES MODULE")
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the validation abort import on fail
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the validation mode
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the validation rule set browse option
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the validation rule set file
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the validation treat outdated as pass
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")
|
getset |
Returns or sets the validation treat warning as pass
Created in NX10.0.0
License requirements to get this property: None.
License requirements to set this property: assemblies ("ASSEMBLIES MODULE")