|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem > ChangePartColor |
Change the color of the currently selected part.
call DBWShell("ChangePartColor RedValue GreenValue BlueValue [Ambient Diffuse Specular Shininess Transparency Emission]")
RedValue |
The red color value in normalized coding |
|---|---|
GreenValue |
The green color value in normalized coding |
BlueValue |
The blue color value in normalized coding |
Ambient |
Optional. |
Diffuse |
Optional. |
Specular |
Optional. |
Shininess |
Optional. |
Transparency |
Optional. |
Emission |
Optional. |
A documents Page must be active in SolidWorks browser.
All elements must be in the range 0.0 - 1.0
A value of -1 does not set the property.
Under DBInventor, only Specular and Transparency are supported
Sub main()
DBWInit(TRUE)
Ambient = "-1"
Diffuse = "-1"
Specular = "0.8"
Shininess = "-1"
Transparency = "0.75"
Emission = "-1"
DBWShell( "ChangePartColor 0.4 0.37 1" _
& " " & Ambient _
& " " & Diffuse _
& " " & Specular _
& " " & Shininess _
& " " & Transparency _
& " " & Emission _
)
End Sub