Solid Edge Framework Type Library
GetGlobalParameter Method
Specifies the global parameter for which the setting is to be returned. Valid values are members of the ApplicationGlobalConstants for Application objects, AssemblyGlobalConstants for AssemblyDocument objects, PartGlobalConstants for PartDocument objects, SheetMetalGlobalConstants for SheetMetalDocument objects, or WeldmentGlobalConstants for WeldmentDocument objects.
Returns the setting of the specified global parameter. The data type returned depends on the data being queried. For Application objects, the return data type is Long or Variant. For all other objects, the returned data type is Double.
Description
Returns the setting of a specified global parameter for the referenced Application or document object.
Syntax
Visual Basic
Public Sub GetGlobalParameter( _
   ByVal Parameter As ApplicationGlobalConstants, _
   ByRef Value As Variant _
) 
Parameters
Parameter
ValueDescription
seApplicationGlobalActivateAllPartsActivate All Parts
seApplicationGlobalAdminFileLocationAdminFileLocation
seApplicationGlobalANSIInchToleranceFileANSI Inch Tolerance File
seApplicationGlobalANSIMetricToleranceFileANSI Metric Tolerance File
seApplicationGlobalApplicationDisplayApplication display mode for new windows
seApplicationGlobalApplyActivationOverridesToPartsApply Activation Overrides To Parts
seApplicationGlobalApplySimplifyOverridesToPartsApply Simplify Overrides To Parts
seApplicationGlobalApplySimplifyOverridesToSubAssembliesApply Simplify Overrides To SubAssemblies
seApplicationGlobalApplyStatusToLinksApply Status To Links
seApplicationGlobalAutomaticSaveAutomatic Save
seApplicationGlobalAutomaticSaveTimeAutomatic Save Time
seApplicationGlobalAutoSharpenLevelAutomatic sharpen level
seApplicationGlobalAvailableRootFolderAvailable Root Folder
seApplicationGlobalBaselinedRootFolderBaselined Root Folder
seApplicationGlobalChangedPartActivation
seApplicationGlobalCheckInOnCloseCheck In On Close
seApplicationGlobalColorActiveThe color for active elements
seApplicationGlobalColorBackgroundThe color for the background
seApplicationGlobalColorConstructionThe color for construction elements
seApplicationGlobalColorDisabledThe color for disabled items
seApplicationGlobalColorFailedThe color for failed items
seApplicationGlobalColorHandleThe color for handles
seApplicationGlobalColorHighlightThe color for highlighted elements
seApplicationGlobalColorLiveSectionCenterline
seApplicationGlobalColorLiveSectionEdge
seApplicationGlobalColorLiveSectionOpacity
seApplicationGlobalColorLiveSectionRegion
seApplicationGlobalColorManagerCopyIndividualFaceColorsColor Manager Copy Individual Face Colors
seApplicationGlobalColorManagerShowAssemblyStyleOverridesColor Manager Show Assembly Style Overrides
seApplicationGlobalColorManagerShowPartFaceColorsColor Manager Show Part Face Colors
seApplicationGlobalColorManagerUseIndividualPartStylesColorManager Use Individual Part Styles
seApplicationGlobalColorManagerUseToolsOptionsColorSettingsColor Manager Use Tools Options Color Settings
seApplicationGlobalColorProfileThe color for profiles, sketches and layouts
seApplicationGlobalColorRefPlaneColor RefPlane
seApplicationGlobalColorSelectedThe color for items in the select set
seApplicationGlobalColorSheetThe color for the sheet
seApplicationGlobalColorSheetTab1Specifies the first of two alternating colors for the sheet tabs.
seApplicationGlobalColorSheetTab2Specifies the second of two alternating colors for the sheet tabs.
seApplicationGlobalCommandBarModeDisplays mode in command bar or quick bar.
seApplicationGlobalCurvatureCombDensityCurvature Comb Density
seApplicationGlobalCurvatureCombMagnitudeCurvature Comb Magnitude
seApplicationGlobalCustomSettingFileCustom Setting File
seApplicationGlobalDefaultSharpnessDefault sharpness for new windows
seApplicationGlobalDisplayArcQualityDisplay Arc Quality
seApplicationGlobalDisplayQualityDisplay Quality
seApplicationGlobalDisplaySectionCapsEnable the display of section caps with dynamic sections
seApplicationGlobalDisplayStatisticsEnable display timing statistics in the status bar
seApplicationGlobalDocumentNameFormula
seApplicationGlobalDynamicTransitionDynamic view transition smoothness
seApplicationGlobalECORootFolderECO Root Folder
seApplicationGlobalECRRootFolderECR Root Folder
seApplicationGlobalEnableDynamicToleranceEnable dynamic tolerancing of facet data
seApplicationGlobalEnableThreadedDisplayEnable multithreaded displays
seApplicationGlobalHideAllComponentsHide All Components
seApplicationGlobalHoleSizeFileHole Size File
seApplicationGlobalInReviewRootFolderIn Review Root Folder
seApplicationGlobalInsightCacheLocationSet InsightCacheLocation
seApplicationGlobalInsightFolderMappingFileLocationSet InsightFolderMappingFileLocation
seApplicationGlobalInWorkRootFolderObsolete Root Folder
seApplicationGlobalISOToleranceFileISO Tolerance File
seApplicationGlobalLogFilesLocationSet LogFilesLocation
seApplicationGlobalLookAheadVersionLookAheadVersion
seApplicationGlobalMakeRevisionsObsoleteMake Revisions Obsolete
seApplicationGlobalObsoleteRootFolderObsolete Root Folder
seApplicationGlobalOfflineModeSet OfflineMode
seApplicationGlobalOnLineHelpLocation
seApplicationGlobalOpacityRefPlaneOpacity RefPlane
seApplicationGlobalOpenAsReadOnly3DFile
seApplicationGlobalOpenAsReadOnly3DFile_IndirectFiles
seApplicationGlobalOpenAsReadOnlyDftFile
seApplicationGlobalOpenAsReadOnlyDftFile_IndirectFiles
seApplicationGlobalOverlayColorThe color for visible edge overlay
seApplicationGlobalOverlayColorModeThe color mode for visible edge overlay [1=Absolute, 2=Relative]
seApplicationGlobalPackagedCollaborationRootFolderPackaged Collaboration Root Folder
seApplicationGlobalPipeThreadfsFilePipeThreadfsFile
seApplicationGlobalPrereleaseRootFolderPrerelease Root Folder
seApplicationGlobalReleasedRootFolderReleased Root Folder
seApplicationGlobalRevisionDelimiterSets Revision Delimiter
seApplicationGlobalSaveMultiCADDatasettoTC
seApplicationGlobalSearchScopeSet SearchScope
seApplicationGlobalSectionCurvatureCombDensity
seApplicationGlobalSectionCurvatureCombMagnitude
seApplicationGlobalSessionDraftOpenInactiveDraft inactive mode on open (boolean)
seApplicationGlobalSheetTabDisplayInfoSpecifies what information is displayed in the sheet tab : 0 = sheet number; 1 = sheet name; 2 = sheet number and sheet name
seApplicationGlobalSheetTabDisplayInfoSeparatorSpecifies the separator string used between the sheet number and sheet name when both are displayed in the sheet tabs.
seApplicationGlobalShowUnitsInValueFieldsShows units of measure in value fields.
seApplicationGlobalSoftwareVHLEnable software VHL/Disable hardware VHL
seApplicationGlobalStatusBarCmdFinderStatus Bar Command Finder
seApplicationGlobalStatusBarCommonViewsStatus Bar Common Views
seApplicationGlobalStatusBarFitStatus Bar Fit
seApplicationGlobalStatusBarLookAtFaceStatus Bar Look At Face
seApplicationGlobalStatusBarNamedViewsStatus Bar Named View
seApplicationGlobalStatusBarPanStatus Bar Pan
seApplicationGlobalStatusBarPreviousViewStatus Bar Previous View
seApplicationGlobalStatusBarRecordVideo
seApplicationGlobalStatusBarRotateViewStatus Bar Rotate View
seApplicationGlobalStatusBarSketchViewStatus Bar Sketch View
seApplicationGlobalStatusBarSpinAboutStatus Bar Spin About
seApplicationGlobalStatusBarUploadToYouTube
seApplicationGlobalStatusBarViewStylesStatus Bar View Styles
seApplicationGlobalStatusBarZoomStatus Bar Zoom
seApplicationGlobalStatusBarZoomAreaStatus Bar Zoom Area
seApplicationGlobalStatusBarZoomSliderStatus Bar Zoom Slider
seApplicationGlobalStatusBarZoomToolStatus Bar Zoom Tool
seApplicationGlobalSystemInfoRetrieve system information [readonly]
seApplicationGlobalTeamcenterFormula
seApplicationGlobalTeamCenterModeTeamCenter Mode
seApplicationGlobalTemplateRootFolderTemplate Root Folder
seApplicationGlobalUpdateDraftUpdate draft files also
seApplicationGlobalUploadOnCloseUpload On Close
seApplicationGlobalUseAllSimplifiedPartsUse All Simplified Parts
seApplicationGlobalUseAllSimplifiedSubAssembliesUse All Simplified SubAssemblies
seApplicationGlobalUseDetailEnvelopeDisplayAsCircleShow Detail Envelope as Circle when TRUE.
seApplicationGlobalUseDetailEnvelopeStandardUse to set the Detail Envelope Standard Constants. Valid values are defined by enum DetailEnvelopeStandardConstants.
seApplicationGlobalUseDimensionStyleElementMapAngularCoordinateDim
seApplicationGlobalUseDimensionStyleElementMapAngularDim
seApplicationGlobalUseDimensionStyleElementMapBalloon
seApplicationGlobalUseDimensionStyleElementMapBHC
seApplicationGlobalUseDimensionStyleElementMapBlockLabels
seApplicationGlobalUseDimensionStyleElementMapCallouts
seApplicationGlobalUseDimensionStyleElementMapCenterline
seApplicationGlobalUseDimensionStyleElementMapCenterMark
seApplicationGlobalUseDimensionStyleElementMapChamferDim
seApplicationGlobalUseDimensionStyleElementMapCircularDiameterDim
seApplicationGlobalUseDimensionStyleElementMapConnectors
seApplicationGlobalUseDimensionStyleElementMapCoordinateDim
seApplicationGlobalUseDimensionStyleElementMapDatumFrames
seApplicationGlobalUseDimensionStyleElementMapDatumPoints
seApplicationGlobalUseDimensionStyleElementMapDatumTargets
seApplicationGlobalUseDimensionStyleElementMapEdgeCondition
seApplicationGlobalUseDimensionStyleElementMapFCF
seApplicationGlobalUseDimensionStyleElementMapLeaders
seApplicationGlobalUseDimensionStyleElementMapLinDim
seApplicationGlobalUseDimensionStyleElementMapRadialDiameterDim
seApplicationGlobalUseDimensionStyleElementMapRadialDim
seApplicationGlobalUseDimensionStyleElementMapSTSymbols
seApplicationGlobalUseDimensionStyleElementMapSymmetricDiameterDim
seApplicationGlobalUseDimensionStyleElementMapWeldSymbols
seApplicationGlobalUseDimensionStyleMappingUse Dimension Style Mapping
seApplicationGlobalUseDrawingViewShowCroppingEdgesShow cropping edges when TRUE.
seApplicationGlobalUseDrawingViewShowEdgesHiddenTangentEdgesHiddenByOtherPartsShow tangent edges that are hidden by other parts when TRUE.
seApplicationGlobalUseDrawingViewShowEdgesHiddenTangentEdgesSelfHiddenShow the hidden tangent edges when TRUE.
seApplicationGlobalUseISOToleranceTableUse ISO Tolerance Table when TRUE. Use ANSI Tolerance Table when FALSE.
seApplicationGlobalUseOnLineHelp
seApplicationGlobalUserTypeUser Type
seApplicationGlobalZebraFolderMappingSet ZebraFolderMapping
seApplicationGlobalZebraFormula
Specifies the global parameter for which the setting is to be returned. Valid values are members of the ApplicationGlobalConstants for Application objects, AssemblyGlobalConstants for AssemblyDocument objects, PartGlobalConstants for PartDocument objects, SheetMetalGlobalConstants for SheetMetalDocument objects, or WeldmentGlobalConstants for WeldmentDocument objects.
Value
Returns the setting of the specified global parameter. The data type returned depends on the data being queried. For Application objects, the return data type is Long or Variant. For all other objects, the returned data type is Double.
Example
Imports System.IO
Imports System.Reflection
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objType As Type = Nothing
        Dim objFieldInfos() As System.Reflection.FieldInfo
        Dim objFieldInfo As System.Reflection.FieldInfo
        Dim objValue As Object = Nothing
        Dim constantValue As SolidEdgeFramework.ApplicationGlobalConstants

        Try
            OleMessageFilter.Register()

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

            ' Demonstrate getting specific global value.
            objApplication.GetGlobalParameter(SolidEdgeFramework.ApplicationGlobalConstants.seApplicationGlobalSystemInfo, objValue)

            '
            ' Now demonstrate getting all global values by dynamically enumerating the ApplicationGlobalConstants via .NET reflection.
            '

            ' Get ApplicationGlobalConstants type
            objType = GetType(SolidEdgeFramework.ApplicationGlobalConstants)

            ' Get all ApplicationGlobalConstants constants
            objFieldInfos = objType.GetFields(System.Reflection.BindingFlags.Static Or System.Reflection.BindingFlags.Public)

            ' Loop through all of the constants and demonstrate getting their values.
            For Each objFieldInfo In objFieldInfos
                objValue = Nothing
                If Not objFieldInfo.IsSpecialName Then
                    constantValue = objFieldInfo.GetRawConstantValue()

                    ' Wrap GetGlobalParameter() in a try\catch because it can throw an exception.
                    Try
                        ' Get global parameter for specified constant.
                        objApplication.GetGlobalParameter(constantValue, objValue)
                    Catch ex As Exception
                        objValue = ex.Message
                    End Try

                    If objValue Is Nothing Then
                        objValue = String.Empty
                    End If

                    ' Write out constant and value.
                    Console.WriteLine("{0} = {1}", constantValue, objValue)
                End If
            Next
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

Application Object  | Application Members

Send comments on this topic.