MaterialsExample demonstrates Material API
Five tools are provided as part of this example to demonstrate different aspects of the Material API:
-
Material Create Tool: This tool shows how to create materials with different maps, with both images and luxology procedurals. This tool will create a material table, palette and material and add it to the dgn file.
-
Material Attach Tool: This tool shows how to attach a material to an element using the IMaterialProperties Extension.
-
Material Assign Tool: This tool shows how to assign a material to an element.
-
Material Query Tool: This tool shows how to query a material assigned to an element.
-
Material Import Tool: This tool shows how to import a material from a .dgnlib file containing materials. This tool will create a material table, palette and material and add it to the dgn file.
This example provides the following key-ins for the above mentioned tools:
-
MATERIALEXAMPLE CREATETOOL: Material Create Tool.
-
MATERIALEXAMPLE IMPORTTOOL: Material Import Tool.
-
MATERIALEXAMPLE ASSIGNTOOL: Material Assign Tool.
-
MATERIALEXAMPLE ATTACHTOOL: Material Attach Tool.
-
MATERIALEXAMPLE QUERYTOOL: Material Query Tool.