NX Open C++ Reference Guide
Public Types | Public Member Functions
NXOpen::DxfdwgImporter Class Reference

Represents a DxfdwgImporter to be used when importing the DXF/DWG Data This class is created using DexManager . More...

Inheritance diagram for NXOpen::DxfdwgImporter:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

List of all members.

Public Types

enum  ConvLayoutsAs { ConvLayoutsAsAll, ConvLayoutsAsSelectedInPreview }
 Convert latouts option. More...
enum  ImportBlocksAs { ImportBlocksAsGroup, ImportBlocksAsCustomSymbol }
 Import Blocks as option option. More...
enum  ImportCurvesAs { ImportCurvesAsSketchCurves, ImportCurvesAsCurves }
 Import curves as option. More...
enum  ImportDimensionsAs { ImportDimensionsAsReal, ImportDimensionsAsAssortedDim }
 Import Dimensions as option option. More...
enum  ImportPolylinesAs { ImportPolylinesAsSplines, ImportPolylinesAsArcLines }
 Import Polylines as option. More...
enum  ImportToEnum { ImportToEnumWork, ImportToEnumNew }
 Import To option. More...
enum  ProcessingOrderAs { ProcessingOrderAsAlphabetical, ProcessingOrderAsObjectCount }
 Processing Oder of non numeric layers. More...
enum  SendLayoutsAs { SendLayoutsAsImportedView, SendLayoutsAsDrawingView }
 Send Layouts data to option. More...
enum  SendModelDataAs { SendModelDataAsModeling, SendModelDataAsDrawingView, SendModelDataAsDrawingSheet }
 Send Model data to option. More...
enum  UnitsEnum { UnitsEnumSameAsTemplate, UnitsEnumMetric, UnitsEnumEnglish }
 Import To option. More...

Public Member Functions

NXString AcadLayoutsToImport ()
 Returns the AcadLayoutsToImport command - generates a list of ACAD layouts
Created in NX8.0.0.
bool AvoidUsedNXLayers ()
 Returns the AvoidUsedNXLayers command - if set to true, the destination part layers will not be used
Created in NX8.0.0.
bool ConvLayoutData ()
 Returns the Import Layout data command - if set to true then Layout data will be imported
Created in NX8.0.0.
NXOpen::DxfdwgImporter::ConvLayoutsAs ConvLayouts ()
 Returns the ConvLayouts command - this will determine if all or selected layouts are translated
Created in NX8.0.0.
bool ConvModelData ()
 Returns the Import model data command - if set to true then Model data will be imported
Created in NX8.0.0.
NXString CrossHatchMappingFile ()
 Returns the CrossHatchMappingFile command - definition file for cross hatch mapping
Created in NX8.0.0.
int DestForUnselectedLayer ()
 Returns the DestForUnselectedLayer command - number of destination layer
Created in NX8.0.0.
bool FileOpenFlag ()
 Returns the FileOpenFlag command - should be set to false if doing file import
Created in NX6.0.0.
NXOpen::DxfdwgImporter::ImportBlocksAs ImportBlockType ()
 Returns the ImportBlockType command - import ACAD Blocks as a group or as a custom symbol
Created in NX8.0.0.
NXOpen::DxfdwgImporter::ImportCurvesAs ImportCurvesType ()
 Returns the ImportCurvesType command - When model data is imported on drawing sheet, this can be set in order to sketch a curve or many curves
Created in NX8.0.0.
NXOpen::DxfdwgImporter::ImportDimensionsAs ImportDimensionType ()
 Returns the ImportDimensionType command - import ACAD dimensions as real dimensions or as assorted data
Created in NX8.0.0.
NXOpen::DxfdwgImporter::ImportPolylinesAs ImportPolylineTo ()
 Returns the ImportPolylineTo command - this will determine if polylines will be imported as splines or as lines/arcs.
NXOpen::DxfdwgImporter::ImportToEnum ImportTo ()
 Returns the ImportTo command - this option will determine the destination for imported autocad file.
bool ImportToTeamcenter ()
 Returns the ImportToTeamcenter command - if set to true then assembly will be imported into Teamcenter
Created in NX7.0.0.
NXString InputFile ()
 Returns the InputFile command - name of a file which is being imported
Created in NX6.0.0.
NXString LineFontMappingFile ()
 Returns the LineFontMappingFile command - definition file for line font mapping
Created in NX8.0.0.
NXString OutputFile ()
 Returns the OutputFile command - if autocad file is imported to the new part then this name will be used to write the output.
NXOpen::DxfdwgImporter::ProcessingOrderAs ProcessingOrder ()
 Returns the ProcessingOrder command - this option will decide processing order of AutoCAD layers
Created in NX8.0.0.
bool ReadLayerNumFromPrefix ()
 Returns the ReadLayerNumFromPrefix command - if set to true, layer numbers will be read from prefix
Created in NX8.0.0.
void SaveSettings (const NXString &filename)
 Saves the save settings - this will save the settings to a file specified
Created in NX6.0.0.
NXOpen::DxfdwgImporter::SendLayoutsAs SendLayoutsTo ()
 Returns the SendLayoutsTo command - this will determine the destination for the layout data.
NXOpen::DxfdwgImporter::SendModelDataAs SendModelDataTo ()
 Returns the SendModelDataTo command - this will determine the destination for model data
Created in NX8.0.0.
void SetAcadLayoutsToImport (const NXString &layoutNames)
 Sets the AcadLayoutsToImport command - generates a list of ACAD layouts
Created in NX8.0.0.
void SetAvoidUsedNXLayers (bool avoidUsedNXLayers)
 Sets the AvoidUsedNXLayers command - if set to true, the destination part layers will not be used
Created in NX8.0.0.
void SetConvLayoutData (bool convLayoutData)
 Sets the Import Layout data command - if set to true then Layout data will be imported
Created in NX8.0.0.
void SetConvLayouts (NXOpen::DxfdwgImporter::ConvLayoutsAs convLayoutsAs)
 Sets the ConvLayouts command - this will determine if all or selected layouts are translated
Created in NX8.0.0.
void SetConvModelData (bool convModelData)
 Sets the Import model data command - if set to true then Model data will be imported
Created in NX8.0.0.
void SetCrossHatchMappingFile (const NXString &filename)
 Sets the CrossHatchMappingFile command - definition file for cross hatch mapping
Created in NX8.0.0.
void SetDestForUnselectedLayer (int destForUnselectedLayer)
 Sets the DestForUnselectedLayer command - number of destination layer
Created in NX8.0.0.
void SetFileOpenFlag (bool doingFileOpen)
 Sets the FileOpenFlag command - should be set to false if doing file import
Created in NX6.0.0.
void SetImportBlockType (NXOpen::DxfdwgImporter::ImportBlocksAs importBlockType)
 Sets the ImportBlockType command - import ACAD Blocks as a group or as a custom symbol
Created in NX8.0.0.
void SetImportCurvesType (NXOpen::DxfdwgImporter::ImportCurvesAs importCurvesType)
 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
Created in NX8.0.0.
void SetImportDimensionType (NXOpen::DxfdwgImporter::ImportDimensionsAs importDimensionType)
 Sets the ImportDimensionType command - import ACAD dimensions as real dimensions or as assorted data
Created in NX8.0.0.
void SetImportPolylineTo (NXOpen::DxfdwgImporter::ImportPolylinesAs importPolylineTo)
 Sets the ImportPolylineTo command - this will determine if polylines will be imported as splines or as lines/arcs.
void SetImportTo (NXOpen::DxfdwgImporter::ImportToEnum importTo)
 Sets the ImportTo command - this option will determine the destination for imported autocad file.
void SetImportToTeamcenter (bool importToTeamcenter)
 Sets the ImportToTeamcenter command - if set to true then assembly will be imported into Teamcenter
Created in NX7.0.0.
void SetInputFile (const NXString &filename)
 Sets the InputFile command - name of a file which is being imported
Created in NX6.0.0.
void SetLineFontMappingFile (const NXString &filename)
 Sets the LineFontMappingFile command - definition file for line font mapping
Created in NX8.0.0.
void SetOutputFile (const NXString &filename)
 Sets the OutputFile command - if autocad file is imported to the new part then this name will be used to write the output.
void SetProcessingOrder (NXOpen::DxfdwgImporter::ProcessingOrderAs processingOrder)
 Sets the ProcessingOrder command - this option will decide processing order of AutoCAD layers
Created in NX8.0.0.
void SetReadLayerNumFromPrefix (bool readLayerNumFromPrefix)
 Sets the ReadLayerNumFromPrefix command - if set to true, layer numbers will be read from prefix
Created in NX8.0.0.
void SetSendLayoutsTo (NXOpen::DxfdwgImporter::SendLayoutsAs sendLayoutsTo)
 Sets the SendLayoutsTo command - this will determine the destination for the layout data.
void SetSendModelDataTo (NXOpen::DxfdwgImporter::SendModelDataAs sendModelDataTo)
 Sets the SendModelDataTo command - this will determine the destination for model data
Created in NX8.0.0.
void SetSettingsFile (const NXString &filename)
 Sets the SettingsFile command - definition file for default options
Created in NX6.0.0.
void SetSkipEmptyLayer (bool skipEmptyLayer)
 Sets the SkipEmptyLayer command - if set to true, unreferenced AutoCAD layers will not be transalated
Created in NX8.0.0.
void SetTemplateFile (const NXString &filename)
 Sets the TemplateFile command - This will be used as template for dxf/dwg import
Created in NX8.0.0.
void SetTextFontMappingFile (const NXString &filename)
 Sets the TextFontMappingFile command - definition file for text font mapping
Created in NX8.0.0.
NXString SettingsFile ()
 Returns the SettingsFile command - definition file for default options
Created in NX6.0.0.
void SetTranslateUnselectedLayer (bool translateUnselectedLayer)
 Sets the TranslateUnselectedLayer command - if set to true, unselected layers will be translated
Created in NX8.0.0.
void SetUnits (NXOpen::DxfdwgImporter::UnitsEnum units)
 Sets the Units command - this option will determine the destination part units.
void SetUnSelectedLayers (const NXString &unselectedLayers)
 Sets the UnSelectedLayers command - sets the list of unselected layers
Created in NX8.0.0.
bool SkipEmptyLayer ()
 Returns the SkipEmptyLayer command - if set to true, unreferenced AutoCAD layers will not be transalated
Created in NX8.0.0.
NXString TemplateFile ()
 Returns the TemplateFile command - This will be used as template for dxf/dwg import
Created in NX8.0.0.
NXString TextFontMappingFile ()
 Returns the TextFontMappingFile command - definition file for text font mapping
Created in NX8.0.0.
bool TranslateUnselectedLayer ()
 Returns the TranslateUnselectedLayer command - if set to true, unselected layers will be translated
Created in NX8.0.0.
NXOpen::DxfdwgImporter::UnitsEnum Units ()
 Returns the Units command - this option will determine the destination part units.
NXString UnSelectedLayers ()
 Returns the UnSelectedLayers command - sets the list of unselected layers
Created in NX8.0.0.

Detailed Description

Represents a DxfdwgImporter to be used when importing the DXF/DWG Data This class is created using DexManager .

NULL object will be returned from Commit()
To create a new instance of this class, use DexManager::CreateDxfdwgImporter
Default values.

Property Value

ImportPolylineTo

Splines

ImportTo

New

ImportToTeamcenter

0

ProcessingOrder

Alphabetical

Units

SameAsTemplate


Created in NX6.0.0.


Member Enumeration Documentation

Convert latouts option.

Enumerator:
ConvLayoutsAsAll 

Convert all layouts.

ConvLayoutsAsSelectedInPreview 

Convert selected layouts.

Import Blocks as option option.

Enumerator:
ImportBlocksAsGroup 

Convert blocks as group dimensions.

ImportBlocksAsCustomSymbol 

Convert blocks as custom symbol dimensions.

Import curves as option.

Enumerator:
ImportCurvesAsSketchCurves 

Convert curves as sketch curves.

ImportCurvesAsCurves 

Convert curves as curves.

Import Dimensions as option option.

Enumerator:
ImportDimensionsAsReal 

Convert dimensions as real dimensions.

ImportDimensionsAsAssortedDim 

Convert dimensions as assorted dimensions.

Import Polylines as option.

Enumerator:
ImportPolylinesAsSplines 

import polylines as splines

ImportPolylinesAsArcLines 

import polylines as arc/lines

Import To option.

Enumerator:
ImportToEnumWork 

import dxf/dwg file to work part

ImportToEnumNew 

import dxf/dwg file to new part

Processing Oder of non numeric layers.

Enumerator:
ProcessingOrderAsAlphabetical 

Alphabetical.

ProcessingOrderAsObjectCount 

ObjectCount.

Send Layouts data to option.

Enumerator:
SendLayoutsAsImportedView 

send Layout data to imported view

SendLayoutsAsDrawingView 

send Layout data to drawing view

Send Model data to option.

Enumerator:
SendModelDataAsModeling 

send model data to modeling

SendModelDataAsDrawingView 

send model data to drawing view

SendModelDataAsDrawingSheet 

send model data to drawing sheet

Import To option.

Enumerator:
UnitsEnumSameAsTemplate 

units same as template

UnitsEnumMetric 

units millimeters

UnitsEnumEnglish 

units inches


Member Function Documentation

Returns the AcadLayoutsToImport command - generates a list of ACAD layouts
Created in NX8.0.0.



License requirements : None

Returns the AvoidUsedNXLayers command - if set to true, the destination part layers will not be used
Created in NX8.0.0.



License requirements : None

Returns the Import Layout data command - if set to true then Layout data will be imported
Created in NX8.0.0.



License requirements : None

Returns the ConvLayouts command - this will determine if all or selected layouts are translated
Created in NX8.0.0.



License requirements : None

Returns the Import model data command - if set to true then Model data will be imported
Created in NX8.0.0.



License requirements : None

Returns the CrossHatchMappingFile command - definition file for cross hatch mapping
Created in NX8.0.0.



License requirements : None

Returns the DestForUnselectedLayer command - number of destination layer
Created in NX8.0.0.



License requirements : None

Returns the FileOpenFlag command - should be set to false if doing file import
Created in NX6.0.0.



License requirements : None

Returns the ImportBlockType command - import ACAD Blocks as a group or as a custom symbol
Created in NX8.0.0.



License requirements : None

Returns the ImportCurvesType command - When model data is imported on drawing sheet, this can be set in order to sketch a curve or many curves
Created in NX8.0.0.



License requirements : None

Returns the ImportDimensionType command - import ACAD dimensions as real dimensions or as assorted data
Created in NX8.0.0.



License requirements : None

Returns the ImportPolylineTo command - this will determine if polylines will be imported as splines or as lines/arcs.


Created in NX6.0.0.

License requirements : None

Returns the ImportTo command - this option will determine the destination for imported autocad file.

it can either be new (english/metric) or work part.
Created in NX6.0.0.

License requirements : None

Returns the ImportToTeamcenter command - if set to true then assembly will be imported into Teamcenter
Created in NX7.0.0.



License requirements : None

Returns the InputFile command - name of a file which is being imported
Created in NX6.0.0.



License requirements : None

Returns the LineFontMappingFile command - definition file for line font mapping
Created in NX8.0.0.



License requirements : None

Returns the OutputFile command - if autocad file is imported to the new part then this name will be used to write the output.


Created in NX6.0.0.

License requirements : None

Returns the ProcessingOrder command - this option will decide processing order of AutoCAD layers
Created in NX8.0.0.



License requirements : None

Returns the ReadLayerNumFromPrefix command - if set to true, layer numbers will be read from prefix
Created in NX8.0.0.



License requirements : None

void NXOpen::DxfdwgImporter::SaveSettings ( const NXString filename)

Saves the save settings - this will save the settings to a file specified
Created in NX6.0.0.



License requirements : None

Parameters:
filename
NOTE: The full Unicode character set is not supported for this parameter.

Returns the SendLayoutsTo command - this will determine the destination for the layout data.


Created in NX8.0.0.

License requirements : None

Returns the SendModelDataTo command - this will determine the destination for model data
Created in NX8.0.0.



License requirements : None

Sets the AcadLayoutsToImport command - generates a list of ACAD layouts
Created in NX8.0.0.



License requirements : None

Parameters:
layoutNameslayoutnames
void NXOpen::DxfdwgImporter::SetAvoidUsedNXLayers ( bool  avoidUsedNXLayers)

Sets the AvoidUsedNXLayers command - if set to true, the destination part layers will not be used
Created in NX8.0.0.



License requirements : None

Parameters:
avoidUsedNXLayersavoidusednxlayers
void NXOpen::DxfdwgImporter::SetConvLayoutData ( bool  convLayoutData)

Sets the Import Layout data command - if set to true then Layout data will be imported
Created in NX8.0.0.



License requirements : None

Parameters:
convLayoutDataconvlayoutdata

Sets the ConvLayouts command - this will determine if all or selected layouts are translated
Created in NX8.0.0.



License requirements : None

Parameters:
convLayoutsAsconvlayoutsas
void NXOpen::DxfdwgImporter::SetConvModelData ( bool  convModelData)

Sets the Import model data command - if set to true then Model data will be imported
Created in NX8.0.0.



License requirements : None

Parameters:
convModelDataconvmodeldata

Sets the CrossHatchMappingFile command - definition file for cross hatch mapping
Created in NX8.0.0.



License requirements : None

Parameters:
filenamefilename
void NXOpen::DxfdwgImporter::SetDestForUnselectedLayer ( int  destForUnselectedLayer)

Sets the DestForUnselectedLayer command - number of destination layer
Created in NX8.0.0.



License requirements : None

Parameters:
destForUnselectedLayerdestforunselectedlayer
void NXOpen::DxfdwgImporter::SetFileOpenFlag ( bool  doingFileOpen)

Sets the FileOpenFlag command - should be set to false if doing file import
Created in NX6.0.0.



License requirements : None

Parameters:
doingFileOpendoingfileopen

Sets the ImportBlockType command - import ACAD Blocks as a group or as a custom symbol
Created in NX8.0.0.



License requirements : None

Parameters:
importBlockTypeimportblocktype

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
Created in NX8.0.0.



License requirements : None

Parameters:
importCurvesTypeimportcurvestype

Sets the ImportDimensionType command - import ACAD dimensions as real dimensions or as assorted data
Created in NX8.0.0.



License requirements : None

Parameters:
importDimensionTypeimportdimensiontype

Sets the ImportPolylineTo command - this will determine if polylines will be imported as splines or as lines/arcs.


Created in NX6.0.0.

License requirements : None

Parameters:
importPolylineToimportpolylineto

Sets the ImportTo command - this option will determine the destination for imported autocad file.

it can either be new (english/metric) or work part.
Created in NX6.0.0.

License requirements : None

Parameters:
importToimportto
void NXOpen::DxfdwgImporter::SetImportToTeamcenter ( bool  importToTeamcenter)

Sets the ImportToTeamcenter command - if set to true then assembly will be imported into Teamcenter
Created in NX7.0.0.



License requirements : None

Parameters:
importToTeamcenterimporttoteamcenter
void NXOpen::DxfdwgImporter::SetInputFile ( const NXString filename)

Sets the InputFile command - name of a file which is being imported
Created in NX6.0.0.



License requirements : None

Parameters:
filenamefilename

Sets the LineFontMappingFile command - definition file for line font mapping
Created in NX8.0.0.



License requirements : None

Parameters:
filenamefilename
void NXOpen::DxfdwgImporter::SetOutputFile ( const NXString filename)

Sets the OutputFile command - if autocad file is imported to the new part then this name will be used to write the output.


Created in NX6.0.0.

License requirements : None

Parameters:
filenamefilename

Sets the ProcessingOrder command - this option will decide processing order of AutoCAD layers
Created in NX8.0.0.



License requirements : None

Parameters:
processingOrderprocessingorder
void NXOpen::DxfdwgImporter::SetReadLayerNumFromPrefix ( bool  readLayerNumFromPrefix)

Sets the ReadLayerNumFromPrefix command - if set to true, layer numbers will be read from prefix
Created in NX8.0.0.



License requirements : None

Parameters:
readLayerNumFromPrefixreadlayernumfromprefix

Sets the SendLayoutsTo command - this will determine the destination for the layout data.


Created in NX8.0.0.

License requirements : None

Parameters:
sendLayoutsTosendlayoutsto

Sets the SendModelDataTo command - this will determine the destination for model data
Created in NX8.0.0.



License requirements : None

Parameters:
sendModelDataTosendmodeldatato

Sets the SettingsFile command - definition file for default options
Created in NX6.0.0.



License requirements : None

Parameters:
filenamefilename
void NXOpen::DxfdwgImporter::SetSkipEmptyLayer ( bool  skipEmptyLayer)

Sets the SkipEmptyLayer command - if set to true, unreferenced AutoCAD layers will not be transalated
Created in NX8.0.0.



License requirements : None

Parameters:
skipEmptyLayerskipemptylayer

Sets the TemplateFile command - This will be used as template for dxf/dwg import
Created in NX8.0.0.



License requirements : None

Parameters:
filenamefilename

Sets the TextFontMappingFile command - definition file for text font mapping
Created in NX8.0.0.



License requirements : None

Parameters:
filenamefilename

Returns the SettingsFile command - definition file for default options
Created in NX6.0.0.



License requirements : None

void NXOpen::DxfdwgImporter::SetTranslateUnselectedLayer ( bool  translateUnselectedLayer)

Sets the TranslateUnselectedLayer command - if set to true, unselected layers will be translated
Created in NX8.0.0.



License requirements : None

Parameters:
translateUnselectedLayertranslateunselectedlayer

Sets the Units command - this option will determine the destination part units.


Created in NX8.0.0.

License requirements : None

Parameters:
unitsunits
void NXOpen::DxfdwgImporter::SetUnSelectedLayers ( const NXString unselectedLayers)

Sets the UnSelectedLayers command - sets the list of unselected layers
Created in NX8.0.0.



License requirements : None

Parameters:
unselectedLayersunselectedlayers

Returns the SkipEmptyLayer command - if set to true, unreferenced AutoCAD layers will not be transalated
Created in NX8.0.0.



License requirements : None

Returns the TemplateFile command - This will be used as template for dxf/dwg import
Created in NX8.0.0.



License requirements : None

Returns the TextFontMappingFile command - definition file for text font mapping
Created in NX8.0.0.



License requirements : None

Returns the TranslateUnselectedLayer command - if set to true, unselected layers will be translated
Created in NX8.0.0.



License requirements : None

Returns the Units command - this option will determine the destination part units.


Created in NX8.0.0.

License requirements : None

Returns the UnSelectedLayers command - sets the list of unselected layers
Created in NX8.0.0.



License requirements : None


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