PartOperationImportBuilder Class

class NXOpen.PDM.PartOperationImportBuilder

Bases: NXOpen.PDM.PartOperationBuilder

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

New in version NX10.0.0.

Properties

Property Description
AddCAENonMastersToImport Returns or sets the add non master to import
AddDfaMixins Returns or sets the add dfa mixins
AssignAlternateIds Returns or sets the method returns the value indicating whether alternate IDs should be created during import
AssociatedFilesRootDirectory Returns or sets the associated files root directory
ConversionType Returns or sets the conversion type
DefaultAction Returns or sets the default action
DefaultAlternateIdContext Returns or sets the method returns the IdContext to be used while assigning alternate IDs during import
DefaultAlternateIdType Returns or sets the method returns the IdType to be used while assigning alternate IDs during import
DefaultDescription Returns or sets the default description
DefaultDestinationFolder Returns or sets the default destination folder string for the part being created .
DefaultItemType Returns or sets the default item type
DefaultName Returns or sets the default name
DefaultOwningGroup Returns or sets the default owning group
DefaultOwningUser Returns or sets the default owning user
DependentFileSaveAsOption Returns or sets the Dependent files Save As option.
IncludeComponentParts Returns or sets the include component parts
IncludeDependentParts Returns or sets the include dependent parts
NumberAttr Returns or sets the number attr
NumberingSource Returns or sets the numbering source
OutputLogFile Returns or sets the output log file
PrefixStr Returns or sets the prefix str
ProductInterfaces Returns or sets the product interfaces
PublishOptionalInfo Returns or sets the optional information publishing
ReplaceAllComponents Returns or sets the replace all components.
ReplaceWithStr Returns or sets the replace with str
RevisionAttr Returns or sets the revision attr
StringToReplace Returns or sets the string to replace
SuffixStr Returns or sets the suffix str
SyncArrangements Returns or sets the sync arrangements
Tag Returns the Tag for this object.
UseItemTypeFromPartFile Returns or sets the flag to specify if Import can use the Item Type already present in the part during import
ValidationAbortImportOnFail Returns or sets the validation abort import on fail
ValidationMode Returns or sets the validation mode
ValidationRuleSetBrowseOption Returns or sets the validation rule set browse option
ValidationRuleSetFile Returns or sets the validation rule set file
ValidationTreatOutdatedAsPass Returns or sets the validation treat outdated as pass
ValidationTreatWarningAsPass Returns or sets the validation treat warning as pass

Methods

Method Description
AddParts Add parts to import
AddPartsFromFolder Add parts to import from selected folder
AddPartsUsingLogFile Add parts using log file either clone log file or import log file
AddRelatedPartToOperate Add related part to the part undergoing an operation.
AutoAssignAttributes Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign.
AutoAssignAttributesWithNamingPattern Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign.
ClearWarnings Executes method ClearWarningCodeToLogicalObjectsSetMap() which clears m_warningCodeToLogicalObjectsSetMap
Commit Commits any edits that have been applied to the builder.
CreateAttributeTitleToNamingPatternMap Creates a map object of attribute titles to their corresponding naming pattern
CreateLogicalObjects Creates the pre-creation objects for the parts
CreateNonMasterListForLogicalObject Create NonMaster list for the selected logical Object
CreateSpecificationsForLogicalObjects Create new specifications for Logical Objects
Destroy Deletes the builder, and cleans up any objects created by the builder.
EditNonMasterName Sets the name the non-master part will get saved as.
ExecuteDryRun Execute the dry run
GetAlternateIDManager Create an instance of a NXOpen.PDM.AlternateIdManager class that will be used to create alternate ID information while creating the new part.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetDefaultProjectInformation Get default projects information
GetDfaFiles Get the dfa files
GetDialogOperation Returns the dialog operation Applicable only for operation types PartOperationBuilderOperationType.SaveAs and PartOperationBuilderOperationType.Revise
GetErrorMessageHandler Returns ErrorMessageHandler
GetLogicalObjectForPart Gets the known logical object for the given part filename.
GetNonMasterCopyOption Get the nonmasters saveAs option for given logical object.
GetNonMasterList Gets NonMaster list for the given logical Object
GetObject Returns the object currently being edited by this builder.
GetOperationFailures Returns part operation failures
GetUpdatedLogicalObjects Gets the updated logical object objects for the parts after item type, relation type or master part for nonmaster is set or changed.
IsNonMasterBeingCopied Returns whether or not the non master part specified for the given :py:class:`NXOpen.PDM.LogicalObject`will actually get saved during the save as operation.
RemoveDfaFile Remove the dfa file
ResetAttributes Clear all attributes from the selected logical objects
SetDefaultProjectInformation Set default projects information
SetDfaFiles Set the dfa files
SetDialogOperation Sets the dialog operation.
SetExistingPartAttributes Set attributes of existing part on the given logical object so that the part gets imported into specified existing item based on action.
SetNonMasterSaveAsOption Set the nonmasters saveAs option for given logical object
SetSelectedNonMasterToSaveAs Sets whether or not the non-master part specified will actually get saved during the save as operation.
SetSelectedParts Sets the selected parts.
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
UpdateTeamcenterInformation Update the Teamcenter information string attribute TCIN_IMPORT_TEAMCENTER_INFORMATION on given logical objects
Validate Validate whether the inputs to the component are sufficient for commit to be called.
ValidateLogicalObjects Validate the user inputs for following things: - Validates whether the input property values are valid according to defined naming rules and specified user exits for the input property.
ValidateLogicalObjectsToCommit Validates NXOpen.PDM.LogicalObject objects with this builder and udpates the operation failuers.

Enumerations

PartOperationImportBuilderConversionRule Enumeration This enum is used to specify the conversion rule for NXOpen.PDM.PartOperationImportBuilderNumberingSourceOption.OSFilename.
PartOperationImportBuilderExistingPartAction Enumeration This enum is used to specify the default action for import.
PartOperationImportBuilderNumberingSourceOption Enumeration This enum is used to specify the default behavior for auto assign.
PartOperationImportBuilderValidation Enumeration This enum is used to specify the validation mode.
PartOperationImportBuilderValidationRuleSetFileBrowseOption Enumeration This enum is used to specify the option to browse the validation rule set file from.

Property Detail

AddCAENonMastersToImport

PartOperationImportBuilder.AddCAENonMastersToImport

Returns or sets the add non master to import

-------------------------------------

Getter Method

Signature AddCAENonMastersToImport

Returns:
Return type:bool

New in version NX11.0.1.

License requirements: None.

-------------------------------------

Setter Method

Signature AddCAENonMastersToImport

Parameters:addCAENonMasters (bool) –

New in version NX11.0.1.

License requirements: assemblies (“ASSEMBLIES MODULE”)

AddDfaMixins

PartOperationImportBuilder.AddDfaMixins

Returns or sets the add dfa mixins

-------------------------------------

Getter Method

Signature AddDfaMixins

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature AddDfaMixins

Parameters:addDfaMixins (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

AssignAlternateIds

PartOperationImportBuilder.AssignAlternateIds

Returns or sets the method returns the value indicating whether alternate IDs should be created during import

-------------------------------------

Getter Method

Signature AssignAlternateIds

Returns:
Return type:bool

New in version NX12.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature AssignAlternateIds

Parameters:createAlternateIDs (bool) –

New in version NX12.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

AssociatedFilesRootDirectory

PartOperationImportBuilder.AssociatedFilesRootDirectory

Returns or sets the associated files root directory

-------------------------------------

Getter Method

Signature AssociatedFilesRootDirectory

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature AssociatedFilesRootDirectory

Parameters:foldername (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ConversionType

PartOperationImportBuilder.ConversionType

Returns or sets the conversion type

-------------------------------------

Getter Method

Signature ConversionType

Returns:
Return type:NXOpen.PDM.PartOperationImportBuilderConversionRule

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ConversionType

Parameters:conversionType (NXOpen.PDM.PartOperationImportBuilderConversionRule) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultAction

PartOperationImportBuilder.DefaultAction

Returns or sets the default action

-------------------------------------

Getter Method

Signature DefaultAction

Returns:
Return type:NXOpen.PDM.PartOperationImportBuilderExistingPartAction

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultAction

Parameters:defaultAction (NXOpen.PDM.PartOperationImportBuilderExistingPartAction) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultAlternateIdContext

PartOperationImportBuilder.DefaultAlternateIdContext

Returns or sets the method returns the IdContext to be used while assigning alternate IDs during import

-------------------------------------

Getter Method

Signature DefaultAlternateIdContext

Returns:
Return type:str

New in version NX12.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultAlternateIdContext

Parameters:filename (str) –

New in version NX12.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultAlternateIdType

PartOperationImportBuilder.DefaultAlternateIdType

Returns or sets the method returns the IdType to be used while assigning alternate IDs during import

-------------------------------------

Getter Method

Signature DefaultAlternateIdType

Returns:
Return type:str

New in version NX12.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultAlternateIdType

Parameters:filename (str) –

New in version NX12.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultDescription

PartOperationImportBuilder.DefaultDescription

Returns or sets the default description

-------------------------------------

Getter Method

Signature DefaultDescription

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultDescription

Parameters:defaultDescription (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultItemType

PartOperationImportBuilder.DefaultItemType

Returns or sets the default item type

-------------------------------------

Getter Method

Signature DefaultItemType

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultItemType

Parameters:defaultItemType (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultName

PartOperationImportBuilder.DefaultName

Returns or sets the default name

-------------------------------------

Getter Method

Signature DefaultName

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultName

Parameters:defaultName (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultOwningGroup

PartOperationImportBuilder.DefaultOwningGroup

Returns or sets the default owning group

-------------------------------------

Getter Method

Signature DefaultOwningGroup

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultOwningGroup

Parameters:defaultOwningGroup (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

DefaultOwningUser

PartOperationImportBuilder.DefaultOwningUser

Returns or sets the default owning user

-------------------------------------

Getter Method

Signature DefaultOwningUser

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature DefaultOwningUser

Parameters:defaultOwningUser (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

IncludeComponentParts

PartOperationImportBuilder.IncludeComponentParts

Returns or sets the include component parts

-------------------------------------

Getter Method

Signature IncludeComponentParts

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature IncludeComponentParts

Parameters:includeComponentParts (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

IncludeDependentParts

PartOperationImportBuilder.IncludeDependentParts

Returns or sets the include dependent parts

-------------------------------------

Getter Method

Signature IncludeDependentParts

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature IncludeDependentParts

Parameters:includeDependentParts (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

NumberAttr

PartOperationImportBuilder.NumberAttr

Returns or sets the number attr

-------------------------------------

Getter Method

Signature NumberAttr

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature NumberAttr

Parameters:numberAttr (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

NumberingSource

PartOperationImportBuilder.NumberingSource

Returns or sets the numbering source

-------------------------------------

Getter Method

Signature NumberingSource

Returns:
Return type:NXOpen.PDM.PartOperationImportBuilderNumberingSourceOption

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature NumberingSource

Parameters:numberingSource (NXOpen.PDM.PartOperationImportBuilderNumberingSourceOption) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

OutputLogFile

PartOperationImportBuilder.OutputLogFile

Returns or sets the output log file

-------------------------------------

Getter Method

Signature OutputLogFile

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature OutputLogFile

Parameters:filename (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

PrefixStr

PartOperationImportBuilder.PrefixStr

Returns or sets the prefix str

-------------------------------------

Getter Method

Signature PrefixStr

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature PrefixStr

Parameters:prefixStr (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ProductInterfaces

PartOperationImportBuilder.ProductInterfaces

Returns or sets the product interfaces

-------------------------------------

Getter Method

Signature ProductInterfaces

Returns:
Return type:bool

New in version NX10.0.0.

Deprecated since version NX10.0.2: It is no longer supported.

License requirements: None.

-------------------------------------

Setter Method

Signature ProductInterfaces

Parameters:productInterfaces (bool) –

New in version NX10.0.0.

Deprecated since version NX10.0.2: It is no longer supported.

License requirements: assemblies (“ASSEMBLIES MODULE”)

PublishOptionalInfo

PartOperationImportBuilder.PublishOptionalInfo

Returns or sets the optional information publishing

-------------------------------------

Getter Method

Signature PublishOptionalInfo

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature PublishOptionalInfo

Parameters:publishOptionalInfo (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ReplaceWithStr

PartOperationImportBuilder.ReplaceWithStr

Returns or sets the replace with str

-------------------------------------

Getter Method

Signature ReplaceWithStr

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ReplaceWithStr

Parameters:replaceWithStr (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

RevisionAttr

PartOperationImportBuilder.RevisionAttr

Returns or sets the revision attr

-------------------------------------

Getter Method

Signature RevisionAttr

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature RevisionAttr

Parameters:revisionAttr (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

StringToReplace

PartOperationImportBuilder.StringToReplace

Returns or sets the string to replace

-------------------------------------

Getter Method

Signature StringToReplace

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature StringToReplace

Parameters:stringToReplace (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

SuffixStr

PartOperationImportBuilder.SuffixStr

Returns or sets the suffix str

-------------------------------------

Getter Method

Signature SuffixStr

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature SuffixStr

Parameters:suffixStr (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

SyncArrangements

PartOperationImportBuilder.SyncArrangements

Returns or sets the sync arrangements

-------------------------------------

Getter Method

Signature SyncArrangements

Returns:
Return type:bool

New in version NX10.0.0.

Deprecated since version NX10.0.2: It is no longer supported.

License requirements: None.

-------------------------------------

Setter Method

Signature SyncArrangements

Parameters:syncArrangements (bool) –

New in version NX10.0.0.

Deprecated since version NX10.0.2: It is no longer supported.

License requirements: assemblies (“ASSEMBLIES MODULE”)

UseItemTypeFromPartFile

PartOperationImportBuilder.UseItemTypeFromPartFile

Returns or sets the flag to specify if Import can use the Item Type already present in the part during import

-------------------------------------

Getter Method

Signature UseItemTypeFromPartFile

Returns:
Return type:bool

New in version NX11.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

-------------------------------------

Setter Method

Signature UseItemTypeFromPartFile

Parameters:useItemTypeFromPartFile (bool) –

New in version NX11.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ValidationAbortImportOnFail

PartOperationImportBuilder.ValidationAbortImportOnFail

Returns or sets the validation abort import on fail

-------------------------------------

Getter Method

Signature ValidationAbortImportOnFail

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ValidationAbortImportOnFail

Parameters:validationAbortImportOnFail (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ValidationMode

PartOperationImportBuilder.ValidationMode

Returns or sets the validation mode

-------------------------------------

Getter Method

Signature ValidationMode

Returns:
Return type:NXOpen.PDM.PartOperationImportBuilderValidation

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ValidationMode

Parameters:validationMode (NXOpen.PDM.PartOperationImportBuilderValidation) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ValidationRuleSetBrowseOption

PartOperationImportBuilder.ValidationRuleSetBrowseOption

Returns or sets the validation rule set browse option

-------------------------------------

Getter Method

Signature ValidationRuleSetBrowseOption

Returns:
Return type:NXOpen.PDM.PartOperationImportBuilderValidationRuleSetFileBrowseOption

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ValidationRuleSetBrowseOption

Parameters:validationRuleSetBrowseOption (NXOpen.PDM.PartOperationImportBuilderValidationRuleSetFileBrowseOption) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ValidationRuleSetFile

PartOperationImportBuilder.ValidationRuleSetFile

Returns or sets the validation rule set file

-------------------------------------

Getter Method

Signature ValidationRuleSetFile

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ValidationRuleSetFile

Parameters:filename (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ValidationTreatOutdatedAsPass

PartOperationImportBuilder.ValidationTreatOutdatedAsPass

Returns or sets the validation treat outdated as pass

-------------------------------------

Getter Method

Signature ValidationTreatOutdatedAsPass

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ValidationTreatOutdatedAsPass

Parameters:validationTreatOutdatedAsPass (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ValidationTreatWarningAsPass

PartOperationImportBuilder.ValidationTreatWarningAsPass

Returns or sets the validation treat warning as pass

-------------------------------------

Getter Method

Signature ValidationTreatWarningAsPass

Returns:
Return type:bool

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature ValidationTreatWarningAsPass

Parameters:validationTreatWarningAsPass (bool) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

Method Detail

AddParts

PartOperationImportBuilder.AddParts

Add parts to import

Signature AddParts(parts)

Parameters:parts (list of str) –
Returns:
Return type:list of str

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

AddPartsFromFolder

PartOperationImportBuilder.AddPartsFromFolder

Add parts to import from selected folder

Signature AddPartsFromFolder(folderPath)

Parameters:folderPath (str) –
Returns:
Return type:list of str

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

AddPartsUsingLogFile

PartOperationImportBuilder.AddPartsUsingLogFile

Add parts using log file either clone log file or import log file

Signature AddPartsUsingLogFile(logFilePath)

Parameters:logFilePath (str) –
Returns:
Return type:list of str

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

AutoAssignAttributes

PartOperationImportBuilder.AutoAssignAttributes

Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign.

Signature AutoAssignAttributes(objects)

Parameters:objects (list of NXOpen.NXObject) –
Returns:
Return type:NXOpen.ErrorList

New in version NX8.5.0.

License requirements: None.

AutoAssignAttributesWithNamingPattern

PartOperationImportBuilder.AutoAssignAttributesWithNamingPattern

Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign.

properties needs to be created using CreateAttributeTitleToNamingPatternMap()

Signature AutoAssignAttributesWithNamingPattern(objects, properties)

Parameters:
Returns:

Return type:

NXOpen.ErrorList

New in version NX12.0.0.

License requirements: None.

CreateAttributeTitleToNamingPatternMap

PartOperationImportBuilder.CreateAttributeTitleToNamingPatternMap

Creates a map object of attribute titles to their corresponding naming pattern

Signature CreateAttributeTitleToNamingPatternMap(attributeTitles, titlePatterns)

Parameters:
  • attributeTitles (list of str) –
  • titlePatterns (list of str) –
Returns:

Return type:

NXOpen.NXObject

New in version NX12.0.0.

License requirements: None.

ExecuteDryRun

PartOperationImportBuilder.ExecuteDryRun

Execute the dry run

Signature ExecuteDryRun()

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

GetDefaultProjectInformation

PartOperationImportBuilder.GetDefaultProjectInformation

Get default projects information

Signature GetDefaultProjectInformation()

Returns:a tuple
Return type:A tuple consisting of (projectNames, assignmentStates). projectNames is a list of str. names of the projects assignmentStates is a list of NXOpen.SessionProjectAssignmentState. assignment states

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

GetDfaFiles

PartOperationImportBuilder.GetDfaFiles

Get the dfa files

Signature GetDfaFiles()

Returns:
Return type:list of str

New in version NX10.0.0.

License requirements: None.

GetLogicalObjectForPart

PartOperationImportBuilder.GetLogicalObjectForPart

Gets the known logical object for the given part filename.

Signature GetLogicalObjectForPart(partFilename)

Parameters:partFilename (str) –
Returns:
Return type:NXOpen.PDM.LogicalObject

New in version NX10.0.0.

License requirements: None.

GetUpdatedLogicalObjects

PartOperationImportBuilder.GetUpdatedLogicalObjects

Gets the updated logical object objects for the parts after item type, relation type or master part for nonmaster is set or changed.

Signature GetUpdatedLogicalObjects()

Returns:
Return type:list of NXOpen.PDM.LogicalObject

New in version NX10.0.0.

License requirements: None.

RemoveDfaFile

PartOperationImportBuilder.RemoveDfaFile

Remove the dfa file

Signature RemoveDfaFile(filename)

Parameters:filename (str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

ResetAttributes

PartOperationImportBuilder.ResetAttributes

Clear all attributes from the selected logical objects

Signature ResetAttributes(logicalObjects)

Parameters:logicalObjects (list of NXOpen.PDM.LogicalObject) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

SetDefaultProjectInformation

PartOperationImportBuilder.SetDefaultProjectInformation

Set default projects information

Signature SetDefaultProjectInformation(projectNames, assignmentStates)

Parameters:

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

SetDfaFiles

PartOperationImportBuilder.SetDfaFiles

Set the dfa files

Signature SetDfaFiles(dfaFiles)

Parameters:dfaFiles (list of str) –

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

SetExistingPartAttributes

PartOperationImportBuilder.SetExistingPartAttributes

Set attributes of existing part on the given logical object so that the part gets imported into specified existing item based on action.

Signature SetExistingPartAttributes(logicalObject, existingPartCliSpec)

Parameters:

New in version NX10.0.0.

License requirements: assemblies (“ASSEMBLIES MODULE”)

UpdateTeamcenterInformation

PartOperationImportBuilder.UpdateTeamcenterInformation

Update the Teamcenter information string attribute TCIN_IMPORT_TEAMCENTER_INFORMATION on given logical objects

Signature UpdateTeamcenterInformation(logicalObjects)

Parameters:logicalObjects (list of NXOpen.PDM.LogicalObject) –

New in version NX10.0.1.

License requirements: assemblies (“ASSEMBLIES MODULE”)

Validate

PartOperationImportBuilder.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.

ValidateLogicalObjects

PartOperationImportBuilder.ValidateLogicalObjects

Validate the user inputs for following things: - Validates whether the input property values are valid according to defined naming rules and specified user exits for the input property.

  • Check for duplicate Ids/Mfk-Ids
  • Check if all required attributes have been set
  • Check for cyclic references
  • Check if the part to import already exists in database and has no read access
  • Check if the part to import already exists in database and belong to an invalid type for import(e.g. Shape Design)
  • Check for duplicate non-master dataset names under same master
  • Check if it is trying to create two new revisions of same item.
  • Check if the final name given to the imported part already open in session
  • Validate master for a non-master being imported; the master should be present in import operation or has to exist in database for successful creation of non-master.
  • Validate validation parameters e.g. user has selected Run Validation option which requires the user to specify the validation rule set file.
  • Update Teamcenter information attribute on logical objects

Signature ValidateLogicalObjects()

New in version NX10.0.1.

License requirements: assemblies (“ASSEMBLIES MODULE”)