Hide Table of Contents
DisplayStateSpecMaterialPropertyValues Property (IModelDocExtension)

Gets and sets the appearance settings for the specified display state setting.

.NET Syntax

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

Parameters

Setting
IDisplayStateSetting (see Remarks)

Property Value

One-dimensional array of IAppearanceSettings (see Remarks)

Example

Remarks

Before using this method to get or set appearance settings:

  1. Call IModelDocExtension::GetDisplayStateSetting to obtain an IDisplayStateSetting object.
  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 IAppearanceSetting in the array returned by this method maps to a component in a display state. The size of the returned array is (IDisplayStateSetting::GetEntityCount * IDisplayStateSetting::GetNameCount).

The returned array stores appearance settings (AS) for N components in M display states as follows:

Component1 DisplayState1 AS, Component1 DisplayState2 AS, ..., Component1 DisplayStateM AS,

Component2 DisplayState1 AS, Component2 DisplayState2 AS, ..., Component2 DisplayStateM AS,

...

ComponentN DisplayState1 AS, ComponentN DisplayState2 AS, ..., ComponentN DisplayStateM AS

Before using this method to set appearance settings:

  1. Perform steps1-5 as described above.
  2. Call IModelDocExtension::GetAppearanceSetting to obtain an IAppearanceSetting object.
  3. Set the properties in the IAppearanceSetting object for the component in the display state.
  4. Repeat steps 2 and 3 for each component in each display state.
  5. Create an array of the IAppearanceSetting objects in the order described above.

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:   DisplayStateSpecMaterialPropertyValues 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) 2018 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.