Document.Link
Description:
Links an SKP file into the project document.
Links an SKP file into the project document.
Remarks:
Link isn't supported for family documents. Please use import instead.
Link isn't supported for family documents. Please use import instead.
Overloads (5):
Link(String,SKPImportOptions,View)
public ElementId Link(
string file,
SKPImportOptions options,
View pDBView
)
-
StringfileFull path of the file to link. File must exist and must be a valid SKP file.
-
optionsVarious import options applicable to the SKP format. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
-
pDBViewThe view into which the file will be linked.
-
Not a valid file for SKP import (.skp file is valid). -or- ThisViewOnly cannot be true when importing a DWG|DGN drawing into a 3D view -or- One or more strings describing layer selection is invalid or empty. -or- The scale is not valid as a CustomScale for use during import. -or- NullOrEmpty -or- The view is not printable.
-
A non-optional argument was NULL
-
The given file does not exist.
-
Import is temporarily disabled. -or- This Document is not a project document.
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.
-
The SKP Import/Link module is not available in the installed Revit.