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 System.Integer
Dim DisplayStateCount As System.Integer
Dim DisplayStateNames As System.String
Dim PWMaterialId1 As System.Integer
Dim PWMaterialId2 As System.Integer
Dim value As System.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