2021 Method
Changes 0
M

Document.Link

Description:
Links a DWG or DXF file into the project document.
Remarks:
Link isn't supported for family documents. Please use import instead.
Overloads (5):
public bool Link(
	string file,
	DWGImportOptions options,
	View pDBView,
	out ElementId elementId
)
  • String
    file
    Full path of the file to link. File must exist and must be a valid DWG or DXF file.
  • options
    Various import 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 will be linked.
  • elementId
    The id of linked instance after a successful link.
Return Value bool True if successful, otherwise False.