Community
I was trying to make a modelitemcollection of all the lines in a file. I thought this would work, because this is how I can get all the lines thru the UI, but it doesn't appear to work in the API's. Anyone know what I'm doing wrong?
Search sss = new Search();
sss.Selection.SelectAll();
sss.SearchConditions.Add(SearchCondition.HasPropertyByDisplayName("Geometry", "Lines").EqualValue(VariantData.FromDisplayString("Yes")));
ModelItemCollection lines = sss.FindAll(Autodesk.Navisworks.Api.Application.ActiveDocument, false);
Thanks
Can't find what you're looking for? Ask the community or share your knowledge.