DxfdwgImporter Class¶
-
class
NXOpen.
DxfdwgImporter
¶ Bases:
NXOpen.DexBuilder
Represents a
NXOpen.DxfdwgImporter
to be used when importing the DXF/DWG Data This class is created usingNXOpen.DexManager
.NULL object will be returned from Commit() To create a new instance of this class, use
NXOpen.DexManager.CreateDxfdwgImporter
Default values.
Property Value ImportPolylineTo Splines ImportTo New ImportToTeamcenter 0 ProcessHoldFlag 0 ProcessingOrder Alphabetical Units SameAsTemplate New in version NX6.0.0.
Properties¶
Property | Description |
---|---|
AcadLayoutsToImport | Returns or sets the AcadLayoutsToImport command - generates a list of ACAD layouts |
AspectRatioOption | Returns or sets the autocad aspect ratio calculation method - this will decide the NX Aspect ratio method to be used. |
AvoidUsedNXLayers | Returns or sets the AvoidUsedNXLayers command - if set to true, the destination part layers will not be used |
ConvLayoutData | Returns or sets the Import Layout data command - if set to true then Layout data will be imported |
ConvLayouts | Returns or sets the ConvLayouts command - this will determine if all or selected layouts are translated |
ConvModelData | Returns or sets the Import model data command - if set to true then Model data will be imported |
CrossHatchMappingFile | Returns or sets the CrossHatchMappingFile command - definition file for cross hatch mapping |
DestForUnselectedLayer | Returns or sets the DestForUnselectedLayer command - number of destination layer |
FileOpenFlag | Returns or sets the FileOpenFlag command - should be set to false if doing file import |
ImportBlockType | Returns or sets the ImportBlockType command - import ACAD Blocks as a group or as a custom symbol |
ImportCurvesType | Returns or sets the ImportCurvesType command - When model data is imported on drawing sheet, this can be set in order to sketch a curve or many curves |
ImportDimensionType | Returns or sets the ImportDimensionType command - import ACAD dimensions as real dimensions or as group data |
ImportPolylineTo | Returns or sets the ImportPolylineTo command - this will determine if polylines will be imported as splines or as lines/arcs. |
ImportTo | Returns or sets the ImportTo command - this option will determine the destination for imported autocad file. |
ImportToTeamcenter | Returns or sets the ImportToTeamcenter command - if set to true then assembly will be imported into Teamcenter |
InputFile | Returns or sets the InputFile command - name of a file which is being imported |
LineFontMappingFile | Returns or sets the LineFontMappingFile command - definition file for line font mapping |
OutputFile | Returns or sets the OutputFile command - if autocad file is imported to the new part then this name will be used to write the output. |
ProcessHoldFlag | Returns or sets the process hold flag - set to true if user wants to wait until transaltion process gets completed |
ProcessingOrder | Returns or sets the ProcessingOrder command - this option will decide processing order of AutoCAD layers |
ReadLayerNumFromPrefix | Returns or sets the ReadLayerNumFromPrefix command - if set to true, layer numbers will be read from prefix |
SendLayoutsTo | Returns or sets the SendLayoutsTo command - this will determine the destination for the layout data |
SendModelDataTo | Returns or sets the SendModelDataTo command - this will determine the destination for model data |
SettingsFile | Returns or sets the SettingsFile command - definition file for default options |
SkipEmptyLayer | Returns or sets the SkipEmptyLayer command - if set to true, unreferenced AutoCAD layers will not be transalated |
Tag | Returns the Tag for this object. |
TemplateFile | Returns or sets the TemplateFile command - This will be used as template for dxf/dwg import |
TextFontMappingFile | Returns or sets the TextFontMappingFile command - definition file for text font mapping |
TranslateUnselectedLayer | Returns or sets the TranslateUnselectedLayer command - if set to true, unselected layers will be translated |
UnSelectedLayers | Returns or sets the UnSelectedLayers command - sets the list of unselected layers |
Units | Returns or sets the Units command - this option will determine the destination part units. |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetObject | Returns the object currently being edited by this builder. |
SaveSettings | Saves the save settings - this will save the settings to a file specified |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
DxfdwgImporterAspectRatioOptions Enumeration | NX Aspect ratio calculation options |
DxfdwgImporterConvLayoutsAs Enumeration | Convert latouts option |
DxfdwgImporterImportBlocksAs Enumeration | Import Blocks as option option |
DxfdwgImporterImportCurvesAs Enumeration | Import curves as option |
DxfdwgImporterImportDimensionsAs Enumeration | Import Dimensions as option option |
DxfdwgImporterImportPolylinesAs Enumeration | Import Polylines as option |
DxfdwgImporterImportToEnum Enumeration | Import To option |
DxfdwgImporterProcessingOrderAs Enumeration | Processing Oder of non numeric layers |
DxfdwgImporterSendLayoutsAs Enumeration | Send Layouts data to option |
DxfdwgImporterSendModelDataAs Enumeration | Send Model data to option |
DxfdwgImporterUnitsEnum Enumeration | Import To option |
Property Detail¶
AcadLayoutsToImport¶
-
DxfdwgImporter.
AcadLayoutsToImport
¶ Returns or sets the AcadLayoutsToImport command - generates a list of ACAD layouts
-------------------------------------
Getter Method
Signature
AcadLayoutsToImport()
Returns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AcadLayoutsToImport(layoutNames)
Parameters: layoutNames (str) – New in version NX8.0.0.
License requirements: None.
AspectRatioOption¶
-
DxfdwgImporter.
AspectRatioOption
¶ Returns or sets the autocad aspect ratio calculation method - this will decide the NX Aspect ratio method to be used.
-------------------------------------
Getter Method
Signature
AspectRatioOption()
Returns: Return type: NXOpen.DxfdwgImporterAspectRatioOptions
New in version NX8.5.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AspectRatioOption(widthFactorMode)
Parameters: widthFactorMode ( NXOpen.DxfdwgImporterAspectRatioOptions
) –New in version NX8.5.0.
License requirements: None.
AvoidUsedNXLayers¶
-
DxfdwgImporter.
AvoidUsedNXLayers
¶ Returns or sets the AvoidUsedNXLayers command - if set to true, the destination part layers will not be used
-------------------------------------
Getter Method
Signature
AvoidUsedNXLayers()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
AvoidUsedNXLayers(avoidUsedNXLayers)
Parameters: avoidUsedNXLayers (bool) – New in version NX8.0.0.
License requirements: None.
ConvLayoutData¶
-
DxfdwgImporter.
ConvLayoutData
¶ Returns or sets the Import Layout data command - if set to true then Layout data will be imported
-------------------------------------
Getter Method
Signature
ConvLayoutData()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ConvLayoutData(convLayoutData)
Parameters: convLayoutData (bool) – New in version NX8.0.0.
License requirements: None.
ConvLayouts¶
-
DxfdwgImporter.
ConvLayouts
¶ Returns or sets the ConvLayouts command - this will determine if all or selected layouts are translated
-------------------------------------
Getter Method
Signature
ConvLayouts()
Returns: Return type: NXOpen.DxfdwgImporterConvLayoutsAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ConvLayouts(convLayoutsAs)
Parameters: convLayoutsAs ( NXOpen.DxfdwgImporterConvLayoutsAs
) –New in version NX8.0.0.
License requirements: None.
ConvModelData¶
-
DxfdwgImporter.
ConvModelData
¶ Returns or sets the Import model data command - if set to true then Model data will be imported
-------------------------------------
Getter Method
Signature
ConvModelData()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ConvModelData(convModelData)
Parameters: convModelData (bool) – New in version NX8.0.0.
License requirements: None.
CrossHatchMappingFile¶
-
DxfdwgImporter.
CrossHatchMappingFile
¶ Returns or sets the CrossHatchMappingFile command - definition file for cross hatch mapping
-------------------------------------
Getter Method
Signature
CrossHatchMappingFile()
Returns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
CrossHatchMappingFile(filename)
Parameters: filename (str) – New in version NX8.0.0.
License requirements: None.
DestForUnselectedLayer¶
-
DxfdwgImporter.
DestForUnselectedLayer
¶ Returns or sets the DestForUnselectedLayer command - number of destination layer
-------------------------------------
Getter Method
Signature
DestForUnselectedLayer()
Returns: Return type: int New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
DestForUnselectedLayer(destForUnselectedLayer)
Parameters: destForUnselectedLayer (int) – New in version NX8.0.0.
License requirements: None.
FileOpenFlag¶
-
DxfdwgImporter.
FileOpenFlag
¶ Returns or sets the FileOpenFlag command - should be set to false if doing file import
-------------------------------------
Getter Method
Signature
FileOpenFlag()
Returns: Return type: bool New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
FileOpenFlag(doingFileOpen)
Parameters: doingFileOpen (bool) – New in version NX6.0.0.
License requirements: None.
ImportBlockType¶
-
DxfdwgImporter.
ImportBlockType
¶ Returns or sets the ImportBlockType command - import ACAD Blocks as a group or as a custom symbol
-------------------------------------
Getter Method
Signature
ImportBlockType()
Returns: Return type: NXOpen.DxfdwgImporterImportBlocksAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ImportBlockType(importBlockType)
Parameters: importBlockType ( NXOpen.DxfdwgImporterImportBlocksAs
) –New in version NX8.0.0.
License requirements: None.
ImportCurvesType¶
-
DxfdwgImporter.
ImportCurvesType
¶ Returns or sets the ImportCurvesType command - When model data is imported on drawing sheet, this can be set in order to sketch a curve or many curves
-------------------------------------
Getter Method
Signature
ImportCurvesType()
Returns: Return type: NXOpen.DxfdwgImporterImportCurvesAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ImportCurvesType(importCurvesType)
Parameters: importCurvesType ( NXOpen.DxfdwgImporterImportCurvesAs
) –New in version NX8.0.0.
License requirements: None.
ImportDimensionType¶
-
DxfdwgImporter.
ImportDimensionType
¶ Returns or sets the ImportDimensionType command - import ACAD dimensions as real dimensions or as group data
-------------------------------------
Getter Method
Signature
ImportDimensionType()
Returns: Return type: NXOpen.DxfdwgImporterImportDimensionsAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ImportDimensionType(importDimensionType)
Parameters: importDimensionType ( NXOpen.DxfdwgImporterImportDimensionsAs
) –New in version NX8.0.0.
License requirements: None.
ImportPolylineTo¶
-
DxfdwgImporter.
ImportPolylineTo
¶ Returns or sets the ImportPolylineTo command - this will determine if polylines will be imported as splines or as lines/arcs.
-------------------------------------
Getter Method
Signature
ImportPolylineTo()
Returns: Return type: NXOpen.DxfdwgImporterImportPolylinesAs
New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ImportPolylineTo(importPolylineTo)
Parameters: importPolylineTo ( NXOpen.DxfdwgImporterImportPolylinesAs
) –New in version NX6.0.0.
License requirements: None.
ImportTo¶
-
DxfdwgImporter.
ImportTo
¶ Returns or sets the ImportTo command - this option will determine the destination for imported autocad file.
it can either be new (english/metric) or work part.
-------------------------------------
Getter Method
Signature
ImportTo()
Returns: Return type: NXOpen.DxfdwgImporterImportToEnum
New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ImportTo(importTo)
Parameters: importTo ( NXOpen.DxfdwgImporterImportToEnum
) –New in version NX6.0.0.
License requirements: None.
ImportToTeamcenter¶
-
DxfdwgImporter.
ImportToTeamcenter
¶ Returns or sets the ImportToTeamcenter command - if set to true then assembly will be imported into Teamcenter
-------------------------------------
Getter Method
Signature
ImportToTeamcenter()
Returns: Return type: bool New in version NX7.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ImportToTeamcenter(importToTeamcenter)
Parameters: importToTeamcenter (bool) – New in version NX7.0.0.
License requirements: None.
InputFile¶
-
DxfdwgImporter.
InputFile
¶ Returns or sets the InputFile command - name of a file which is being imported
-------------------------------------
Getter Method
Signature
InputFile()
Returns: Return type: str New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
InputFile(filename)
Parameters: filename (str) – New in version NX6.0.0.
License requirements: None.
LineFontMappingFile¶
-
DxfdwgImporter.
LineFontMappingFile
¶ Returns or sets the LineFontMappingFile command - definition file for line font mapping
-------------------------------------
Getter Method
Signature
LineFontMappingFile()
Returns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
LineFontMappingFile(filename)
Parameters: filename (str) – New in version NX8.0.0.
License requirements: None.
OutputFile¶
-
DxfdwgImporter.
OutputFile
¶ Returns or sets the OutputFile command - if autocad file is imported to the new part then this name will be used to write the output.
-------------------------------------
Getter Method
Signature
OutputFile()
Returns: Return type: str New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
OutputFile(filename)
Parameters: filename (str) – New in version NX6.0.0.
License requirements: None.
ProcessingOrder¶
-
DxfdwgImporter.
ProcessingOrder
¶ Returns or sets the ProcessingOrder command - this option will decide processing order of AutoCAD layers
-------------------------------------
Getter Method
Signature
ProcessingOrder()
Returns: Return type: NXOpen.DxfdwgImporterProcessingOrderAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ProcessingOrder(processingOrder)
Parameters: processingOrder ( NXOpen.DxfdwgImporterProcessingOrderAs
) –New in version NX8.0.0.
License requirements: None.
ReadLayerNumFromPrefix¶
-
DxfdwgImporter.
ReadLayerNumFromPrefix
¶ Returns or sets the ReadLayerNumFromPrefix command - if set to true, layer numbers will be read from prefix
-------------------------------------
Getter Method
Signature
ReadLayerNumFromPrefix()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
ReadLayerNumFromPrefix(readLayerNumFromPrefix)
Parameters: readLayerNumFromPrefix (bool) – New in version NX8.0.0.
License requirements: None.
SendLayoutsTo¶
-
DxfdwgImporter.
SendLayoutsTo
¶ Returns or sets the SendLayoutsTo command - this will determine the destination for the layout data
-------------------------------------
Getter Method
Signature
SendLayoutsTo()
Returns: Return type: NXOpen.DxfdwgImporterSendLayoutsAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SendLayoutsTo(sendLayoutsTo)
Parameters: sendLayoutsTo ( NXOpen.DxfdwgImporterSendLayoutsAs
) –New in version NX8.0.0.
License requirements: None.
SendModelDataTo¶
-
DxfdwgImporter.
SendModelDataTo
¶ Returns or sets the SendModelDataTo command - this will determine the destination for model data
-------------------------------------
Getter Method
Signature
SendModelDataTo()
Returns: Return type: NXOpen.DxfdwgImporterSendModelDataAs
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SendModelDataTo(sendModelDataTo)
Parameters: sendModelDataTo ( NXOpen.DxfdwgImporterSendModelDataAs
) –New in version NX8.0.0.
License requirements: None.
SettingsFile¶
-
DxfdwgImporter.
SettingsFile
¶ Returns or sets the SettingsFile command - definition file for default options
-------------------------------------
Getter Method
Signature
SettingsFile()
Returns: Return type: str New in version NX6.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SettingsFile(filename)
Parameters: filename (str) – New in version NX6.0.0.
License requirements: None.
SkipEmptyLayer¶
-
DxfdwgImporter.
SkipEmptyLayer
¶ Returns or sets the SkipEmptyLayer command - if set to true, unreferenced AutoCAD layers will not be transalated
-------------------------------------
Getter Method
Signature
SkipEmptyLayer()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
SkipEmptyLayer(skipEmptyLayer)
Parameters: skipEmptyLayer (bool) – New in version NX8.0.0.
License requirements: None.
TemplateFile¶
-
DxfdwgImporter.
TemplateFile
¶ Returns or sets the TemplateFile command - This will be used as template for dxf/dwg import
-------------------------------------
Getter Method
Signature
TemplateFile()
Returns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TemplateFile(filename)
Parameters: filename (str) – New in version NX8.0.0.
License requirements: None.
TextFontMappingFile¶
-
DxfdwgImporter.
TextFontMappingFile
¶ Returns or sets the TextFontMappingFile command - definition file for text font mapping
-------------------------------------
Getter Method
Signature
TextFontMappingFile()
Returns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TextFontMappingFile(filename)
Parameters: filename (str) – New in version NX8.0.0.
License requirements: None.
TranslateUnselectedLayer¶
-
DxfdwgImporter.
TranslateUnselectedLayer
¶ Returns or sets the TranslateUnselectedLayer command - if set to true, unselected layers will be translated
-------------------------------------
Getter Method
Signature
TranslateUnselectedLayer()
Returns: Return type: bool New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
TranslateUnselectedLayer(translateUnselectedLayer)
Parameters: translateUnselectedLayer (bool) – New in version NX8.0.0.
License requirements: None.
UnSelectedLayers¶
-
DxfdwgImporter.
UnSelectedLayers
¶ Returns or sets the UnSelectedLayers command - sets the list of unselected layers
-------------------------------------
Getter Method
Signature
UnSelectedLayers()
Returns: Return type: str New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
UnSelectedLayers(unselectedLayers)
Parameters: unselectedLayers (str) – New in version NX8.0.0.
License requirements: None.
Units¶
-
DxfdwgImporter.
Units
¶ Returns or sets the Units command - this option will determine the destination part units.
-------------------------------------
Getter Method
Signature
Units()
Returns: Return type: NXOpen.DxfdwgImporterUnitsEnum
New in version NX8.0.0.
License requirements: None.
-------------------------------------
Setter Method
Signature
Units(units)
Parameters: units ( NXOpen.DxfdwgImporterUnitsEnum
) –New in version NX8.0.0.
License requirements: None.
Method Detail¶
SaveSettings¶
-
DxfdwgImporter.
SaveSettings
¶ Saves the save settings - this will save the settings to a file specified
Signature
SaveSettings(filename)
Parameters: filename (str) – NOTE: The full Unicode character set is not supported for this parameter. New in version NX6.0.0.
License requirements: None.
Validate¶
-
DxfdwgImporter.
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.