API: Use dispatch wrappers to pass arrays of objects to out-of-process APIs (C#)

File uploaded by Joyce Bossom Employee on Oct 27, 2010Last modified by Joyce Bossom Employee on Nov 2, 2012
Version 4Show Document
  • View in full screen mode

This C# macro shows how to use dispatch wrappers to pass an array of objects to an out-of-process COM API method.


1. Download and unpack DispatchWrappers.zip.

2. Open SolidWorks.

3. Edit the C# macro, Macro1.csproj, in SolidWorks.

4. Open DispatchWrappers\loop.sldprt in SolidWorks.

5. Run the macro.


- Subscription Services required for full access.

- Looking for more API Examples?


Copyright © 2010 Dassault Systèmes SolidWorks Corp. All rights reserved.
Do not distribute or reproduce without the written consent of Dassault Systèmes SolidWorks Corp.