2020 Method
Changes 0
M

Document.Import

Description:
Imports a DWG or DXF file to the document.
public bool Import(
	string file,
	DWGImportOptions options,
	View pDBView,
	out ElementId elementId
)
  • file
    Full path of the file to import. File must exist and must be a valid DWG or DXF file.
  • options
    Various options applicable to the DWG or DXF format. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
  • pDBView
    The view into which the file wil be imported.
  • elementId
    The id of imported instance after a successful import.
Return Value bool True if successful, otherwise False.