|
|
Returns row id for inserted value
Namespace: Autodesk.Navisworks.Api.Takeoff
Assembly: Autodesk.Navisworks.Takeoff (in Autodesk.Navisworks.Takeoff.dll)
Syntax
| Visual Basic |
|---|
Public Function InsertModelItemTakeoff ( _ itemRowId As Long, _ modelItemGuid As Guid, _ inputVariables As TakeoffVariableCollection, _ treatDuplicateGuidAsEmpty As Boolean _ ) As Long |
| C# |
|---|
public long InsertModelItemTakeoff( long itemRowId, Guid modelItemGuid, TakeoffVariableCollection inputVariables, bool treatDuplicateGuidAsEmpty ) |
| Visual C++ |
|---|
public: long long InsertModelItemTakeoff( long long itemRowId, Guid modelItemGuid, TakeoffVariableCollection^ inputVariables, bool treatDuplicateGuidAsEmpty ) |
Parameters
- itemRowId
- Type: System..::..Int64
- modelItemGuid
- Type: System..::..Guid
- inputVariables
- Type: Autodesk.Navisworks.Api.Takeoff..::..TakeoffVariableCollection
- treatDuplicateGuidAsEmpty
- Type: System..::..Boolean
True: if the modelItemGuid already exist in database, the function will store Guid::Empty into database instead of modelItemGuid itself False: The function does not try to alter modelItemGuid
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Navisworks.Api.Data..::..DatabaseException | Failed to insert |
| System..::..InvalidOperationException | Insert takeoff must inside a transaction |