Skip to content

Check material existance

Many methods like those of classes Shape and Transform receive a material name to create a shape with this material. Currently, it is assumed that the specified material exists in the project. However, if this is not the case, this could result in an error on the execution of the generated VBA code.

It would be possible to implement a exist() method in the material class, and use this to check the existence of the material prior the creation of the shape.