bim:has-material


(bim:has-material  name  [ global ])

This function verifies whether the specified BIM material exists in the document library (default), or in the global library.

Arguments

name  (string) the case-sensitive name of the material to be verified

global  (optional, default NIL) if 'global' is specified and non-NIL, the material is verified against the global database, otherwise verified against  the document-specific library

Return

T if the specified material exists in the particular library, NIL otherwise

Example

(bim:has-material "Bronze")   T
(bim:has-material "Bronze" T)  T

(bim:has-material "Paper")  NIL
(bim:has-material "Paper"  T)  NIL

Remarks

the material name is case-sensitive !



©  Bricsys NV. All rights reserved.