How to select modelItem from Quantification using Navisworks API

How to select modelItem from Quantification using Navisworks API

j.schuklina
Explorer Explorer
572 Views
1 Reply
Message 1 of 2

How to select modelItem from Quantification using Navisworks API

j.schuklina
Explorer
Explorer

Hello!

Сould you tell me please how to select modelItem from Quantification using Navisworks API? 

I can select a row in the table using this information from api:

 

void SelectElement(long elId)
{
TakeoffSelection takeoffSelection = Autodesk.Navisworks.Api.Application.ActiveDocument.GetTakeoff().CurrentSelection;
takeoffSelection.BeginEdit();
takeoffSelection.Objects.Clear();
takeoffSelection.Objects.Add(elId);
takeoffSelection.EndEdit();
}

But element in model is not select

 

Thanks for any answers:) 

0 Likes
573 Views
1 Reply
Reply (1)
Message 2 of 2

j.schuklina
Explorer
Explorer

Now I know answer for my question if anyone is interested 😁

You need to use sql request to find ModelItemId and get GUID

0 Likes