Adds the specified material to the specified display states in the active configuration and returns the IDs assigned to that material.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IModelDocExtension
Dim PRenderMaterial As RenderMaterial
Dim DisplayStateOption As Integer
Dim DisplayStateCount As Integer
Dim DisplayStateNames As String
Dim PWMaterialId1 As Integer
Dim PWMaterialId2 As Integer
Dim value As Boolean
value = instance.IAddDisplayStateSpecificRenderMaterial(PRenderMaterial, DisplayStateOption, DisplayStateCount, DisplayStateNames, PWMaterialId1, PWMaterialId2)
|
Parameters
- PRenderMaterial
- Material to add
- DisplayStateOption
- Display states as defined in swDisplayStateOpts_e
- DisplayStateCount
- Number of display states (see Remarks)
- DisplayStateNames
- in-process, unmanaged C++: Pointer to an array of the names of the display states to which to add material
- VBA, VB.NET, C#, and C++/CLI: Not supported
See In-process Methods for details about this type of method.
- PWMaterialId1
- First ID of material
- PWMaterialId2
- Second ID of material
Return Value
True if material is added, false if not
Remarks
See Also
Availability
SolidWorks 2011 FCS, Revision Number 19.0