Description:
Adds an instance definition to the instance definition table.
Syntax:
public int Add(
string name,
string description,
Point3d basePoint,
GeometryBase geometry,
ObjectAttributes attributes
)
string name,
string description,
Point3d basePoint,
GeometryBase geometry,
ObjectAttributes attributes
)
Parameters:
- name
- Type: string
- The definition name.
- description
- Type: string
- The definition description.
- basePoint
- Type: Point3d
- A base point.
- geometry
- Type: GeometryBase
- An element.
- attributes
- Type: ObjectAttributes
- An attribute.
Returns:
Type: int
>=0 index of instance definition in the instance definition table. -1 on failure.
Available since:
5.0
Description:
Adds an instance definition to the instance definition table.
Parameters:
- name
- Type: string
- The definition name.
- description
- Type: string
- The definition description.
- basePoint
- Type: Point3d
- A base point.
- geometry
- Type: IEnumerable<GeometryBase>
- An array, a list or any enumerable set of geometry.
- attributes
- Type: IEnumerable<ObjectAttributes>
- An array, a list or any enumerable set of attributes.
Returns:
Type: int
>=0 index of instance definition in the instance definition table. -1 on failure.
Available since:
5.0
Description:
Adds an instance definition to the instance definition table.
Parameters:
- name
- Type: string
- The definition name.
- description
- Type: string
- The definition description.
- basePoint
- Type: Point3d
- A base point.
- geometry
- Type: IEnumerable<GeometryBase>
- An array, a list or any enumerable set of geometry.
Returns:
Type: int
>=0 index of instance definition in the instance definition table. -1 on failure.
Available since:
5.0
Description:
Adds an instance definition to the instance definition table.
Parameters:
- name
- Type: string
- The definition name.
- description
- Type: string
- The definition description.
- url
- Type: string
- A URL or hyperlink.
- urlTag
- Type: string
- A description of the URL or hyperlink.
- basePoint
- Type: Point3d
- A base point.
- geometry
- Type: IEnumerable<GeometryBase>
- An array, a list or any enumerable set of geometry.
- attributes
- Type: IEnumerable<ObjectAttributes>
- An array, a list or any enumerable set of attributes.
Returns:
Type: int
>=0 index of instance definition in the instance definition table. -1 on failure.
Available since:
7.0