DirectShapeType.Create
Description:
Creates a DirectShapeType element.
Creates a DirectShapeType element.
Overloads (2):
public static DirectShapeType Create(
Document document,
string name,
ElementId categoryId
)
-
documentDocument to which the created element will be added. Must be a project document.
-
StringnameName 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