Hide Table of Contents
InsertEmbeddedObjectFromFile Method (ISketchManager)

Adds an embedded object to the document based on the specified file.

.NET Syntax

Visual Basic (Declaration) 
Function InsertEmbeddedObjectFromFile( _
   const dsString& FilePath As System.String, _
   bool Link As System.Boolean, _
   bool DisplayAsIcon As System.Boolean _
) As EmbeddedObject
EmbeddedObject InsertEmbeddedObjectFromFile( 
   System.string FilePath,
   System.bool Link,
   System.bool DisplayAsIcon
   FilePath : String,
   Link : Boolean,
   DisplayAsIcon : Boolean
) : dsObject
COM native C++ 
HRESULT InsertEmbeddedObjectFromFile( 
   BSTR FilePath,
   VARIANT_BOOL DisplayAsIcon,
   IEmbeddedObject** EmbeddedObject
DSRESULT InsertEmbeddedObjectFromFile( 
   const dsString& FilePath,
   bool Link,
   bool DisplayAsIcon,
   dsEmbeddedObject** EmbeddedObject


Path and file name of the embedded object to insert
True to insert a picture of the original file into the drawing, false to insert the contents of the file into the drawing (see Remarks)
True to display the application icon in the drawing, false to display it in the data
EmbeddedObject[out] or Return Value



There are two ways to insert data from files:

  • Linked object. Specify Link = true to insert a picture of the file into the drawing. When you edit a linked object, the source file changes. When you edit the source file, the linked object changes.
  • Embedded object. Specify Link = false to insert the contents of the file into the drawing so that you may activate it using the source application that created it. Changes you make to the data in the embedded object do not appear in the original file, and changes you make to the original file do not appear in the drawing.

See Also


DraftSight V1R1.4

Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

Subject:   Feedback on Help Topics
Page:   InsertEmbeddedObjectFromFile Method (ISketchManager)
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:


We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again

Web Help Content Version: API Help (English only) 2019 SP04

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.