DriveWorks Solo 15: How To: Drive the Texture of a Part [send feedback...]

Introduction

DriveWorks Solo provides the ability to drive a model's texture. To do this, create and capture a custom property in the model called "DWTexture", for more information have a look at the Custom Properties help topic.

The result of the rule for the DWTexture custom property should take the form:

PathToTextureBitmap|ScalePercentage|AngleInDegrees

For example:

"\\Data\Textures\Plastic.jpg|80|90"

Will result in the Plastic texture, which is located on the network, being applied at a scale of 80% and a rotation of 90 degrees.

SOLIDWORKS textures are ordinarily installed a folder inside the SOLIDWORKS install directory called "SOLIDWORKS\data\Images\textures"

e.g.

C:\Program Files\SOLIDWORKS 2009\SOLIDWORKS\data\Images\textures

Because the SOLIDWORKS installation directory can be different on different machines, SOLIDWORKS provides a location-independent way to refer to the textures folder, e.g.:

"<SystemTexture>\images\textures\wall\rustic.jpg|80|90"

Will result in the standard SOLIDWORKS Rustic Brick texture being applied at a scale of 80% and a rotation of 90 degrees.

Table of Contents