Solid Edge Framework Type Library
SolidEdgeCommandConstants Enumeration
Description
Solid Edge Command Constants
Members
MemberValueDescription
seAssemblyPlacePartCommand32791Place Part command
seAssemblySelectCommand45000Select command
seConvertCommand10452
seDraftSelectCommand45000Draft Select command
sePartInsertPartCommand40254Insert Part command
sePartSelectCommand45000Part Select command
seRefreshViewCommand32876Refresh View Command
seSheetMetalSelectCommand45000SheetMetal Select command
seSurfaceVisualCommand11129Surface Visual Command
Example
Imports System.Runtime.InteropServices
Public Class SurfaceVisualisation

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objType As Type = Nothing

        Try
            'This is just an example to demonstrate "How to start a command?"
            ' Create/get the application with specific settings
            objApplication = Marshal.GetActiveObject("SolidEdge.Application")

            If objApplication Is Nothing Then
                ' Get the type from the Solid Edge ProgID
                objType = Type.GetTypeFromProgID("SolidEdge.Application")
                ' Start Solid Edge
                objApplication = Activator.CreateInstance(objType)
                ' Make Solid Edge visible
                objApplication.Visible = True
            End If

            ' Start the Surface Visualization Command
            objApplication.StartCommand(SolidEdgeFramework.SolidEdgeCommandConstants.seSurfaceVisualCommand)

            ' To stop the command (invokes the "select" tool/command)
            objApplication.StartCommand(45000)
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try
    End Sub
End Class
See Also

Solid Edge ST4 - What's New  | Solid Edge ST3 - What's New