ImportAutoCAD

Imports an AutoCAD file into a new project.

UI Access File > Import > AutoCAD.
Parameters
Name Type Description
<dxfFileName> String Full path of DXF file.
<outputPathFileName> String Full path of EDB file to create during import.
<controlFileName> String Full path of XML control file. Pass empty string if none.
Return Value

None.

 

Python Syntax ImportAutoCAD (<dxfFileName>, <outputPathFileName>, <controlFileName>)
Python Example

Set oTool = oDesktop.GetTool('ImportExport')

oTool.ImportAutoCAD('C:/MyPath/a4lines.dxf', 'C:/MyPath/a4lines.aedb.edb', 'C:/MyPath/a4lines.xml')