Solid Edge Part Type Library
GetPlotOwnerType Method
Description
Get type of the plotowner object.
Syntax
Visual Basic
Public Sub GetPlotOwnerType( _
   ByRef PlotOwnerType As FEAPlotsOwnerTypeEnum_Auto _
) 
Parameters
PlotOwnerType
ValueDescription
ePlotsOwnerTypeAppliedForce_Auto 
ePlotsOwnerTypeAppliedMoment_Auto 
ePlotsOwnerTypeAppliedTemperature_Auto 
ePlotsOwnerTypeBeamEndReactions_Auto 
ePlotsOwnerTypeConstraintForce_Auto 
ePlotsOwnerTypeConstraintMoment_Auto 
ePlotsOwnerTypeDisplacement_Auto 
ePlotsOwnerTypeForce_Auto 
ePlotsOwnerTypeHeatFlux_Auto 
ePlotsOwnerTypeNone_Auto 
ePlotsOwnerTypeRotation_Auto 
ePlotsOwnerTypeStrain_Auto 
ePlotsOwnerTypeStrainEnergy_Auto 
ePlotsOwnerTypeStress_Auto 
ePlotsOwnerTypeTemperature_Auto 
ePlotsOwnerTypeThermalAppliedLoad_Auto 
ePlotsOwnerTypeThermalConstraintLoad_Auto 
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objPartDocument As SolidEdgePart.PartDocument = Nothing
        Dim objStudyOwner As SolidEdgePart.StudyOwner = Nothing
        Dim objStudy As SolidEdgePart.Study = Nothing
        Dim objPlotsOwner As SolidEdgePart.PlotsOwner = Nothing
        Dim nPlotOwnerType As Integer = -1

        Try
            OleMessageFilter.Register()

            ' Connect to Solid Edge
            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objPartDocument = objApplication.ActiveDocument

            objStudyOwner = objPartDocument.StudyOwner
            objStudy = objStudyOwner.Item(1)

            ' This will give us active plotsowner.
            objStudy.GetPlotsOwner(objPlotsOwner)

            objPlotsOwner.GetPlotOwnerType(nPlotOwnerType)

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

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