Solid Edge Revision Manager Object Library
SendMailToRecipient Method
Name of the file to be opened as string.
Password of the file to be opened.
Mail id of recipient. If recipient name is empty then outlook will launched. In case of multiple recipients, user has to pass recipients with semicolon separator.
Boolean, which decides whether PCF document should be, sent as an attachment or as a link.
File path (as string) of the PCF document to be created. This parameter will be used only if bAttachment is false and opened document is not PCF document.
Boolean, which decides while creating PCF document, geometry needs to be removed or not.
Password of the PCF document to be created as string.
Subject while creating mail as string. If subject is empty then default subject will be used.
Message body while creating mail as string. If message body is empty then default message will be used.
Description
Sends a mail to recipients in Insight Connect View and Markup.
Syntax
Visual Basic
Public Function SendMailToRecipient( _
   ByVal bstrInputFileName As String, _
   ByVal bstrInputFilePassword As String, _
   ByVal recipientAddress As String, _
   ByVal bAttachment As Long, _
   ByVal bstrPCFFilePathTobeCreated As String, _
   ByVal bRemoveGeometry As Long, _
   ByVal PCFFilePermissions As PCFFilePermissions, _
   ByVal bstrPCFFilePassword As String, _
   ByVal bstrSubject As String, _
   ByVal bstrMessageBody As String _
) As String
Parameters
bstrInputFileName
Name of the file to be opened as string.
bstrInputFilePassword
Password of the file to be opened.
recipientAddress
Mail id of recipient. If recipient name is empty then outlook will launched. In case of multiple recipients, user has to pass recipients with semicolon separator.
bAttachment
Boolean, which decides whether PCF document should be, sent as an attachment or as a link.
bstrPCFFilePathTobeCreated
File path (as string) of the PCF document to be created. This parameter will be used only if bAttachment is false and opened document is not PCF document.
bRemoveGeometry
Boolean, which decides while creating PCF document, geometry needs to be removed or not.
PCFFilePermissions
ValueDescription
AllPermissions 
CrossSectionPermissions 
ForwardPermissions 
MarkupPermissions 
MeasurePermissions 
NoPermissions 
PMIPermissions 
PrintPermissions 
SavePermissions 
bstrPCFFilePassword
Password of the PCF document to be created as string.
bstrSubject
Subject while creating mail as string. If subject is empty then default subject will be used.
bstrMessageBody
Message body while creating mail as string. If message body is empty then default message will be used.
Example
Imports System.Runtime.InteropServices
Public Class Form1


    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button2.Click
        Dim RevMgrApplnObj As RevisionManager.Application = Nothing
        Dim bstrInputFileName As String = "C:\Asm1.asm"
        Dim bstrInputFilePassword As String = Nothing
        Dim recipientAddress As String = Nothing
        Dim bAttachment As Boolean = True
        Dim bstrPCFFilePathTobeCreated As String = Nothing
        Dim bRemoveGeometry As Boolean = False
        Dim pcfFilePermission As RevisionManager.PCFFilePermissions
        Dim bstrPCFFilePassword As String = Nothing
        Dim bstrSubject As String = Nothing
        Dim bstrMessageBody As String = Nothing
        Try
            RevMgrApplnObj = Marshal.GetActiveObject("RevisionManager.Application")
            If RevMgrApplnObj Is Nothing Then
                RevMgrApplnObj = Activator.CreateInstance(Type.GetTypeFromProgID("RevisionManager.Application"))
                RevMgrApplnObj.Visible = True
            End If
            'Invoke the SendMailToRecipient API
            RevMgrApplnObj.SendMailToRecipient(bstrInputFileName, bstrInputFilePassword, recipientAddress, bAttachment, bstrPCFFilePathTobeCreated, bRemoveGeometry, pcfFilePermission, bstrPCFFilePassword, bstrSubject, bstrMessageBody)
        Catch ex As Exception
            MsgBox(ex.ToString)
        End Try

    End Sub
End Class
See Also

Application Object  | Application Members