Hide Table of Contents
GetUIState Method (IFeature)

Gets the user-interface state of the current feature.

.NET Syntax

Visual Basic (Declaration) 
Function GetUIState( _
   ByVal StateType As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IFeature
Dim StateType As System.Integer
Dim value As System.Boolean
 
value = instance.GetUIState(StateType)
C# 
System.bool GetUIState( 
   System.int StateType
)
C++/CLI 
System.bool GetUIState( 
&   System.int StateType
) 

Parameters

StateType

User interface state type as defined in swUIStates_e

Return Value

True if the state type is set, false if it is not

Example

Remarks

If you pass in the user-interface state type of swIsHiddenInFeatureMgr, this method returns True if the current feature is hidden in the FeatureManager design tree or false if the current feature is visible in the FeatureManager design tree.

The user-interface state is not a property.

To see your changes in the FeatureManager design tree, call IModelDoc2::EditRebuild3. Currently, the user-interface state data is runtime only.

Features are initialized with all user-interface state type values set to false.

A change in a feature state setting causes all the dependents of the feature to inherit the same behavior, without actually setting the state type values of those dependents. Therefore, to get the actual user-interface state value of a feature, you must check the owning feature.

 

See Also



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetUIState Method (IFeature)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2015 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.