DxfdwgCreator Class

class NXOpen.DxfdwgCreator

Bases: NXOpen.DexBuilder

Represents a NXOpen.DxfdwgCreator to be used when exporting the DXF/DWG Data This class is created using NXOpen.DexManager.

NULL object will be returned from Commit(). The workpart should be present in the session before calling commit(). To create a new instance of this class, use NXOpen.DexManager.CreateDxfdwgCreator()

Default values.

Property Value
AutoCADRevision R2007
ExportAs TwoD
ExportFacesAs Facets
ExportFrom DisplayPart
ExportSplinesAs Spline
FlattenAssembly 0
OutputFileType Dxf
OutputTo Modeling
OverlappingEntities 0
ProcessHoldFlag 0
SurfaceDesignU 8
SurfaceDesignV 8
ViewEditMode 0

New in version NX6.0.0.

Properties

Property Description
AutoCADRevision Returns or sets the autocad revision - this will decide the revision of resultant autocad file.
CrossHatchMappingFile Returns or sets the CrossHatchMappingFile command - definition file for cross hatch mapping
DrawingList Returns or sets the drawing list - comma separated list of drawings to export
ExportAs Returns or sets the export as - this option will determine if data needs to be proprocessed as 2d or cgm before exporting to DXF/DWG
ExportData Returns or sets the export data option will determine if model data data or drawing data needs to be exported
ExportFacesAs Returns or sets the export faces as - this will determine if the faces should be exported as facets or polyline mesh
ExportFrom Returns or sets the export from - this option will determine if data from display part or existing part is exported
ExportScaleOption Returns or sets the export scale Options - this will determine if the scale should be used from Default, Base View or User specified
ExportScaleValue Returns or sets the scale value - this Scale is used during Model space data export
ExportSelectionBlock Returns the export selection block - the object selection will be done by this block.
ExportSplinesAs Returns or sets the export Spline as - this will determine if the spline should be exported as spline, 2D ployline or 3D polyline
FileSaveFlag Returns or sets the file save flag - this should be set to false if doing File Export
FlattenAssembly Returns or sets the flatten assembly - if set to true then assembly structure will not be retained
InputFile Returns or sets the input file - name of file which is being exported.
LayerMask Returns or sets the layerMask - You can limit the data you export by only specifying the layers that contain the appropriate information.
LineFontMappingFile Returns or sets the LineFontMappingFile command - definition file for cross hatch mapping
ObjectTypes Returns the objectTypes - this is subcomponent being used to set object types filters.
OutputFile Returns or sets the output file - the name of dxf/dwg file where output is being written
OutputFileType Returns or sets the output file type - this option determines the format of output file, It can either be dxf or dwg.
OutputTo Returns or sets the output to - where to put data in model world or layout
OverlappingEntities Returns or sets the overlapping entities - if set to true the overlapping entities will be removed before exporting
ProcessHoldFlag Returns or sets the process hold flag - set to true if user wants to wait until transaltion process gets completed
SettingsFile Returns or sets the settings file - The definition file to read default options
SurfaceDesignU Returns or sets the surface design u - this will set the surface density along U direction.
SurfaceDesignV Returns or sets the surface design V - this will set the surface density along V direction.
Tag Returns the Tag for this object.
TextFontMappingFile Returns or sets the TextFontMappingFile command - definition file for text font mapping
ViewEditMode Returns or sets the view edit mode - if set to true this will include view modified/view erase data in the resultant autocad file.
ViewList Returns or sets the view list - comma separated list of views to export
WidthFactorMode Returns or sets the autocad widthfactor calculation method - this will decide the acad widthfactor method to be used.

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

Property Detail

AutoCADRevision

DxfdwgCreator.AutoCADRevision

Returns or sets the autocad revision - this will decide the revision of resultant autocad file.

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

Getter Method

Signature AutoCADRevision

Returns:
Return type:NXOpen.DxfdwgCreatorAutoCADRevisionOptions

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature AutoCADRevision

Parameters:autoCADRevision (NXOpen.DxfdwgCreatorAutoCADRevisionOptions) –

New in version NX6.0.0.

License requirements: None.

CrossHatchMappingFile

DxfdwgCreator.CrossHatchMappingFile

Returns or sets the CrossHatchMappingFile command - definition file for cross hatch mapping

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

Getter Method

Signature CrossHatchMappingFile

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature CrossHatchMappingFile

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

DrawingList

DxfdwgCreator.DrawingList

Returns or sets the drawing list - comma separated list of drawings to export

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

Getter Method

Signature DrawingList

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature DrawingList

Parameters:drawingList (str) –

New in version NX6.0.0.

License requirements: None.

ExportAs

DxfdwgCreator.ExportAs

Returns or sets the export as - this option will determine if data needs to be proprocessed as 2d or cgm before exporting to DXF/DWG

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

Getter Method

Signature ExportAs

Returns:
Return type:NXOpen.DxfdwgCreatorExportAsOption

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature ExportAs

Parameters:exportAs (NXOpen.DxfdwgCreatorExportAsOption) –

New in version NX8.5.0.

License requirements: None.

ExportData

DxfdwgCreator.ExportData

Returns or sets the export data option will determine if model data data or drawing data needs to be exported

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

Getter Method

Signature ExportData

Returns:
Return type:NXOpen.DxfdwgCreatorExportDataOption

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature ExportData

Parameters:exportData (NXOpen.DxfdwgCreatorExportDataOption) –

New in version NX8.5.0.

License requirements: None.

ExportFacesAs

DxfdwgCreator.ExportFacesAs

Returns or sets the export faces as - this will determine if the faces should be exported as facets or polyline mesh

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

Getter Method

Signature ExportFacesAs

Returns:
Return type:NXOpen.DxfdwgCreatorExportFacesAsOptions

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature ExportFacesAs

Parameters:exportFacesAs (NXOpen.DxfdwgCreatorExportFacesAsOptions) –

New in version NX6.0.0.

License requirements: None.

ExportFrom

DxfdwgCreator.ExportFrom

Returns or sets the export from - this option will determine if data from display part or existing part is exported

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

Getter Method

Signature ExportFrom

Returns:
Return type:NXOpen.DxfdwgCreatorExportFromOption

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature ExportFrom

Parameters:exportFrom (NXOpen.DxfdwgCreatorExportFromOption) –

New in version NX6.0.0.

License requirements: None.

ExportScaleOption

DxfdwgCreator.ExportScaleOption

Returns or sets the export scale Options - this will determine if the scale should be used from Default, Base View or User specified

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

Getter Method

Signature ExportScaleOption

Returns:
Return type:NXOpen.DxfdwgCreatorExportScaleOptions

New in version NX9.0.0.

License requirements: None.

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

Setter Method

Signature ExportScaleOption

Parameters:exportScaleOption (NXOpen.DxfdwgCreatorExportScaleOptions) –

New in version NX9.0.0.

License requirements: None.

ExportScaleValue

DxfdwgCreator.ExportScaleValue

Returns or sets the scale value - this Scale is used during Model space data export

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

Getter Method

Signature ExportScaleValue

Returns:
Return type:str

New in version NX9.0.0.

License requirements: None.

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

Setter Method

Signature ExportScaleValue

Parameters:exportScaleValue (str) –

New in version NX9.0.0.

License requirements: None.

ExportSelectionBlock

DxfdwgCreator.ExportSelectionBlock

Returns the export selection block - the object selection will be done by this block.

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

Getter Method

Signature ExportSelectionBlock

Returns:
Return type:NXOpen.ObjectSelector

New in version NX6.0.0.

License requirements: None.

ExportSplinesAs

DxfdwgCreator.ExportSplinesAs

Returns or sets the export Spline as - this will determine if the spline should be exported as spline, 2D ployline or 3D polyline

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

Getter Method

Signature ExportSplinesAs

Returns:
Return type:NXOpen.DxfdwgCreatorExportSplinesAsOptions

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature ExportSplinesAs

Parameters:exportSplinesAs (NXOpen.DxfdwgCreatorExportSplinesAsOptions) –

New in version NX8.5.0.

License requirements: None.

FileSaveFlag

DxfdwgCreator.FileSaveFlag

Returns or sets the file save flag - this should be set to false if doing File Export

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

Getter Method

Signature FileSaveFlag

Returns:
Return type:bool

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature FileSaveFlag

Parameters:doingFileSave (bool) –

New in version NX6.0.0.

License requirements: None.

FlattenAssembly

DxfdwgCreator.FlattenAssembly

Returns or sets the flatten assembly - if set to true then assembly structure will not be retained

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

Getter Method

Signature FlattenAssembly

Returns:
Return type:bool

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature FlattenAssembly

Parameters:flattenAssembly (bool) –

New in version NX6.0.0.

License requirements: None.

InputFile

DxfdwgCreator.InputFile

Returns or sets the input file - name of file which is being exported.

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

Getter Method

Signature InputFile

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature InputFile

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

LayerMask

DxfdwgCreator.LayerMask

Returns or sets the layerMask - You can limit the data you export by only specifying the layers that contain the appropriate information.

You can enter layer numbers or layers ranges separated by commas. For example, 1, 5, 88-109,190-199, 201, 206-210 is a legal specification. The default setting for Layers to Export is 1-256.

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

Getter Method

Signature LayerMask

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature LayerMask

Parameters:layerMask (str) –

New in version NX6.0.0.

License requirements: None.

LineFontMappingFile

DxfdwgCreator.LineFontMappingFile

Returns or sets the LineFontMappingFile command - definition file for cross hatch mapping

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

Getter Method

Signature LineFontMappingFile

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature LineFontMappingFile

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

ObjectTypes

DxfdwgCreator.ObjectTypes

Returns the objectTypes - this is subcomponent being used to set object types filters.

This will be used to filter objects based on the types

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

Getter Method

Signature ObjectTypes

Returns:
Return type:NXOpen.ObjectTypeSelector

New in version NX6.0.0.

License requirements: None.

OutputFile

DxfdwgCreator.OutputFile

Returns or sets the output file - the name of dxf/dwg file where output is being written

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

Getter Method

Signature OutputFile

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature OutputFile

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

OutputFileType

DxfdwgCreator.OutputFileType

Returns or sets the output file type - this option determines the format of output file, It can either be dxf or dwg.

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

Getter Method

Signature OutputFileType

Returns:
Return type:NXOpen.DxfdwgCreatorOutputFileTypeOption

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature OutputFileType

Parameters:outputFileType (NXOpen.DxfdwgCreatorOutputFileTypeOption) –

New in version NX6.0.0.

License requirements: None.

OutputTo

DxfdwgCreator.OutputTo

Returns or sets the output to - where to put data in model world or layout

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

Getter Method

Signature OutputTo

Returns:
Return type:NXOpen.DxfdwgCreatorOutputToOption

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature OutputTo

Parameters:outputTo (NXOpen.DxfdwgCreatorOutputToOption) –

New in version NX6.0.0.

License requirements: None.

OverlappingEntities

DxfdwgCreator.OverlappingEntities

Returns or sets the overlapping entities - if set to true the overlapping entities will be removed before exporting

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

Getter Method

Signature OverlappingEntities

Returns:
Return type:bool

New in version NX8.5.0.

License requirements: None.

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

Setter Method

Signature OverlappingEntities

Parameters:overlappingEntities (bool) –

New in version NX8.5.0.

License requirements: None.

SettingsFile

DxfdwgCreator.SettingsFile

Returns or sets the settings file - The definition file to read default options

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

Getter Method

Signature SettingsFile

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature SettingsFile

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

SurfaceDesignU

DxfdwgCreator.SurfaceDesignU

Returns or sets the surface design u - this will set the surface density along U direction.

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

Getter Method

Signature SurfaceDesignU

Returns:
Return type:int

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature SurfaceDesignU

Parameters:surfaceDesignU (int) –

New in version NX6.0.0.

License requirements: None.

SurfaceDesignV

DxfdwgCreator.SurfaceDesignV

Returns or sets the surface design V - this will set the surface density along V direction.

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

Getter Method

Signature SurfaceDesignV

Returns:
Return type:int

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature SurfaceDesignV

Parameters:surfaceDesignV (int) –

New in version NX6.0.0.

License requirements: None.

TextFontMappingFile

DxfdwgCreator.TextFontMappingFile

Returns or sets the TextFontMappingFile command - definition file for text font mapping

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

Getter Method

Signature TextFontMappingFile

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature TextFontMappingFile

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

ViewEditMode

DxfdwgCreator.ViewEditMode

Returns or sets the view edit mode - if set to true this will include view modified/view erase data in the resultant autocad file.

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

Getter Method

Signature ViewEditMode

Returns:
Return type:bool

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature ViewEditMode

Parameters:viewEditMode (bool) –

New in version NX6.0.0.

License requirements: None.

ViewList

DxfdwgCreator.ViewList

Returns or sets the view list - comma separated list of views to export

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

Getter Method

Signature ViewList

Returns:
Return type:str

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature ViewList

Parameters:viewList (str) –

New in version NX6.0.0.

License requirements: None.

WidthFactorMode

DxfdwgCreator.WidthFactorMode

Returns or sets the autocad widthfactor calculation method - this will decide the acad widthfactor method to be used.

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

Getter Method

Signature WidthFactorMode

Returns:
Return type:NXOpen.DxfdwgCreatorWidthfactorMethodOptions

New in version NX6.0.0.

License requirements: None.

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

Setter Method

Signature WidthFactorMode

Parameters:widthFactorMode (NXOpen.DxfdwgCreatorWidthfactorMethodOptions) –

New in version NX6.0.0.

License requirements: None.

Method Detail

SaveSettings

DxfdwgCreator.SaveSettings

Saves the save settings - this will save the settings to a file sepcified

Signature SaveSettings(filename)

Parameters:filename (str) –

New in version NX6.0.0.

License requirements: None.

Validate

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