Содержание
- 2. Object Properties Find Properties Agenda
- 3. Object Properties
- 4. ModelItem.PropertyCategories PropertyCategoryCollection PropertyCategory PropertyCategory.Properties DataPropertyCollection DataProperty Current .NET API cannot modify/add custom properties. Need COM API
- 5. Meaningful name Independent of languages Pre-define strings, easy to use Internal name Independent of languages Named
- 6. NamedConstant Identifier for a value combining the internal constant's name and a localized display name equivalent
- 7. Iterate Properties Demo Document oDoc = Autodesk.Navisworks.Api.Application.ActiveDocument; if (oDoc.CurrentSelection.SelectedItems.Count > 0) { StringBuilder output = new
- 8. PropertyCategoryCollection Various methods to get property category and property, e.g. FindCategoryByDisplayName find property category by display
- 9. Demo: Get Categories by Display Name ModelItem oSelectedItem = oDoc.SelectedItems.ElementAt (0); //get property category by display
- 10. Demo: Get Categories by Methods ModelItem oSelectedItem = oDoc.SelectedItems.ElementAt (0); //get property category /by display name
- 11. Demo: Get Properties by Methods //by display name (property caterogy and property) DataProperty oDP_DWGHandle = oSelectedItem.PropertyCategories.FindPropertyByDisplayName("Entity
- 12. See Lab 09 [COM Interop] Add Custom Properties
- 13. ModelItem.InstanceGuid Same to Item>>Guid in UI Available for some file formats only (Revit, AutoCAD) Properties from
- 14. Create a plugin Check the language of Navisworks. Use the display name of local language to
- 16. Скачать презентацию