DirectShapeType.Create
Description:
Creates a DirectShapeType element.
Creates a DirectShapeType element.
public static DirectShapeType Create(
Document document,
string name,
ElementId categoryId
)
-
documentThe document that will contain the new element. Must be a project document.
-
nameName of the DirectShapeType.
-
categoryIdId of the category assigned to this DirectShapeType. Must be a valid category id.
-
document is not a project document. -or- Document document may not contain DirectShape or DirectShapeType objects. -or- Element id categoryId may not be used as a DirectShape category.
-
A non-optional argument was NULL