<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
    The document that will contain the new element. Must be a project document.
  • String
    name
    Name of the DirectShapeType.
  • categoryId
    Id of the category assigned to this DirectShapeType. Must be a valid category id.
Return Value The new DirectShapeType. The new DirectShapeType.

Loading…