Removes a material family from the MaterialFamilies collection.
- Parameters:
-
- iIndex
- The index of the material family to remove.
Compared with other collections, you cannot use the name of the
material family as argument.
- Example:
-
The following example removes the second material family
in the collection attached to the active document.
This document must be a
MaterialDocument object.
FileToOpen = "e:\users\ast\materials\Catalog.CATMaterial"
Dim MyDocument As MaterialDocument
Set MyDocument = Documents.Open(FileToOpen)
MyDocument.MaterialFamilies.Remove(2)