<Code Lib>
M

DirectShapeType.Create(Document, String, ElementId)

Description:
Creates a DirectShapeType element.
Overloads (2):
Create(Document,String,ElementId)

public static DirectShapeType Create(
	Document document,
	string name,
	ElementId categoryId
)

  • document
    Document to which the created element will be added. Must be a project document.
  • name
    Name of the DirectShapeType.
  • categoryId
    Id of the category assigned to this DirectShapeType. Must be a valid category id.
Return Value DirectShapeType The new DirectShapeType.

  • 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

Loading…