public ElementId Import(
	string file,
	STLImportOptions options,
	View pDBView
)
  • String
    file
    Full path of the file to import. 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 imported file. If the options specify ThisViewOnly, this argument is required and the imported file will only be visible in the specified view. If the options specify center-to-center placement, this argument is required and the imported 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 imported file. If not specified, an existing view will be chosen instead and may open a view or associate the imported file to an arbitrary level.
Return Value ElementId Returns the element Id of the imported instance.