Hide Table of Contents
Visibility Property (IModelDocExtension)

Gets and sets the visibility states for the specified display state setting.

.NET Syntax

Visual Basic (Declaration) 
Property Visibility( _
   ByVal Setting As DisplayStateSetting _
) As System.Object
Visual Basic (Usage) 
Dim instance As IModelDocExtension
Dim Setting As DisplayStateSetting
Dim value As System.Object
 
instance.Visibility(Setting) = value
 
value = instance.Visibility(Setting)
C# 
System.object Visibility( 
   DisplayStateSetting Setting
) {get; set;}
C++/CLI 
property System.Object^ Visibility {
   System.Object^ get(DisplayStateSetting^ Setting);
   void set (DisplayStateSetting^ Setting, System.Object^ value);
}

Parameters

Setting
IDisplayStateSetting

Property Value

One-dimensional array of visibility states as defined in swVisibilityState_e (see Remarks)

Example

Remarks

Before calling this method:

  1. Call IModelDocExtension::GetDisplayStateSetting to obtain an IDisplayStateSetting.
  2. Call IDisplayStateSetting::Names or IDisplayStateSetting::ISetNames to specify the display states.
  3. Call IDisplayStateSetting::Entities or IDisplayStateSetting::ISetEntities to specify the components.
  4. Call IDisplayStateSetting::Option to specify the display state scope of the setting.
  5. Specify the Setting parameter using the IDisplayStateSetting object.

Each visibility state in the array returned by this method maps to a component in a display state. The size of the returned array is (IDisplayStateSetting::GetEntityCount X IDisplayStateSetting::GetNameCount).

The returned array stores visibility states (VS) for N components in M display states as follows:

Component1 DisplayState1 VS, Component1 DisplayState2 VS, ..., Component1 DisplayStateM VS,

Component2 DisplayState1 VS, Component2 DisplayState2 VS, ..., Component2 DisplayStateM VS,

...,

ComponentN DisplayState1 VS, ComponentN DisplayState2 VS, ..., ComponentN DisplayStateM VS

See Also

Availability

SolidWorks 2012 FCS, Revision Number 20.0


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:   Visibility Property (IModelDocExtension)
*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) 2014 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.