Hide Table of Contents
SetUIState Method (IFeature)

Sets the user-interface state of the current feature.

.NET Syntax

Visual Basic (Declaration) 
Sub SetUIState( _
   ByVal StateType As Integer, _
   ByVal Flag As Boolean _
) 
Visual Basic (Usage) 
Dim instance As IFeature
Dim StateType As Integer
Dim Flag As Boolean
 
instance.SetUIState(StateType, Flag)
C# 
void SetUIState( 
   int StateType,
   bool Flag
)
C++/CLI 
void SetUIState( 
&   int StateType,
&   bool Flag
) 

Parameters

StateType

User interface state type as defined in swUIStates_e

Flag

True to set the user-interface state, false to not

Example

Remarks

If you pass in StateType of swIsHiddenInFeatureMgr and flag of True, then this method hides the display of the feature in the FeatureManager design tree. To see your changes in the FeatureManager design tree , use IModelDoc2::EditRebuild3.

Features are initialized with all user-interface state type values set to false. However, in the case of attributes, you can use IAttributeDef::CreateInstance5 to set the desired display state of the attribute at the time of creation.

A change in a the state setting of a feature causes all its dependents 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 can query its owner.

The user-interface state is not a property.

 

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:   SetUIState 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) 2012 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.