Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Using Extension Methods

Jason Newell edited this page Aug 18, 2014 · 1 revision

Extension methods make working with the Solid Edge API much easier. These are community provided methods that extend the base Solid Edge API.

C# Syntax

// The following statement enables all SolidEdgeCommunity extension methods.
using SolidEdgeCommunity.Extensions;

or

// Extension methods can also be called directly.
SolidEdgeCommunity.Extensions.ApplicationExtensions.StartCommand(application, SolidEdgeConstants.PartCommandConstants.PartEditCopy);

Visual Basic Syntax

' The following statement enables all SolidEdgeCommunity extension methods.
Imports SolidEdgeCommunity.Extensions

or

' Extension methods can also be called directly.
SolidEdgeCommunity.Extensions.ApplicationExtensions.StartCommand(objApplication, SolidEdgeConstants.PartCommandConstants.PartEditCopy)

Intellisense

When extension methods are enabled, they will appear next to the standard APIs. They have different icons and are marked (extension) in their description.

Clone this wiki locally