Managing OLE Objects in models using SOLIDWORKS API

Edit ArticleEdit Article
Comments

Object Linking and Embedding (OLE) is a Microsoft technology allowing to inserted 3rd party application objects into the documents. In SOLIDWORKS OLE objects are used to represent Design Tables, Attachment and any file dropped directly into the Document.

Such objects usually can be manipulated directly from the host environment. For example embeded Excel file can be modified without exiting the SOLIDWORKS window.

OLE Objects are usually saved with SOLIDWORKS file and can be removed, resized or used directly in the graphics area.

SOLIDWORKS API enables the access to OLE objects via ISwOLEObject interface. Objects can be enumerated, created and deleted by using the API methods of IModelDocExtension interface.

This section contains macros and examples allowing to manipulate OLE objects in documents using the SOLIDWORKS API.

Notifications

All articles and code at CodeStack are now open-source and hosted on GitHub. If you want to contribute by modifying existing articles and code snippets, submitting new ones, reporting errors and bugs etc. please follow this blog post for more information. We appreciate any contribution.


Product of Xarial Product of Xarial