Description:
Adds an instance object to the document.
Syntax:
public Guid AddInstanceObject(
int instanceDefinitionIndex,
Transform instanceXform,
ObjectAttributes attributes,
HistoryRecord history,
bool reference
)
int instanceDefinitionIndex,
Transform instanceXform,
ObjectAttributes attributes,
HistoryRecord history,
bool reference
)
Parameters:
- instanceDefinitionIndex
- Type: int
- The index of the instance definition.
- instanceXform
- Type: Transform
- The instance transformation.
- attributes
- Type: ObjectAttributes
- The attributes to apply to the instance object.
- history
- Type: HistoryRecord
- The history record associated with this instance object.
- reference
- Type: bool
- True if the object is from a reference file. Reference objects do not persist in archives.
Returns:
Type: Guid
A unique identifier for the object if successful. Guid.Empty it not successful.
Available since:
6.24
Description:
Adds an instance object to the document.
Syntax:
public Guid AddInstanceObject(
int instanceDefinitionIndex,
Transform instanceXform,
ObjectAttributes attributes
)
int instanceDefinitionIndex,
Transform instanceXform,
ObjectAttributes attributes
)
Parameters:
- instanceDefinitionIndex
- Type: int
- The index of the instance definition.
- instanceXform
- Type: Transform
- The instance transformation.
- attributes
- Type: ObjectAttributes
- The attributes to apply to the instance object.
Returns:
Type: Guid
A unique identifier for the object if successful. Guid.Empty it not successful.
Available since:
5.0
Description:
Adds an instance object to the document.