M

Document.Link

Description:
Links an STL file into the project document.
Remarks:
Link isn't supported for family documents. Please use import instead.
public ElementId Link(
	string file,
	STLImportOptions options,
	View pDBView
)
  • String
    file
    Full path of the file to link. File must exist and must be a valid STL file.
  • options
    Various import options applicable to the STL format. If nulla null reference (Nothing in Visual Basic), all options will be set to their respective default values.
  • pDBView
    View used to aid placement of the linked file. If the options specify ThisViewOnly, this argument is required and the linked file will only be visible in the specified view. If the options specify center-to-center placement, this argument is required and the linked file will be placed in the center of the specified view. Otherwise, this view is used to obtain a base level to associate with the linked file. If not specified, an existing view will be chosen instead and may open a view or associate the linked file to an arbitrary level.
Return Value ElementId Returns the element Id of the linked instance.