Solid Edge Draft Type Library
SetPerspectiveOn Method
Description
Specifies the focal length for a perspective drawing view.
Syntax
Visual Basic
Public Sub SetPerspectiveOn( _
   ByVal FocalLength As Double _
) 
Parameters
FocalLength
Remarks
This subroutine can be used to set perspective on most existing drawing views. The specified focal length is used to convert an existing drawing view into a perspective drawing view. Most principal views can be converted to perspective drawing views. However, perspective is not supported on all types of section views. Also note that changing the source view will not change the dependent views in all cases. For example, changing the source view of a dependent detail will change the dependent detail view into a perspective view. However an independent detail drawing view must be changed to perspective explicitly by changing the setting on the independent detail drawing view itself.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objDraftDocument As SolidEdgeDraft.DraftDocument = Nothing
        Dim objSheet As SolidEdgeDraft.Sheet = Nothing
        Dim objDrawingViews As SolidEdgeDraft.DrawingViews = Nothing
        Dim objDrawingView As SolidEdgeDraft.DrawingView = Nothing
        Dim d As Double

        Try
            OleMessageFilter.Register()

            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objDraftDocument = objApplication.ActiveDocument
            objSheet = objDraftDocument.ActiveSheet
            objDrawingViews = objSheet.DrawingViews

            For Each objDrawingView In objDrawingViews
                objDrawingView.SetPerspectiveOn(10.0)
                objDrawingView.Update()
            Next

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

DrawingView Object  | DrawingView Members  | Solid Edge ST3 - What's New