Object properties. (Lab 5) презентация




Слайды и текст этой презентации
Слайд 1
Описание слайда:
Lab 5 – Properties Lab 5 – Properties


Слайд 2
Описание слайда:
Agenda Object Properties Find Properties

Слайд 3
Описание слайда:
Object Properties

Слайд 4
Описание слайда:
.NET API ModelItem.PropertyCategories PropertyCategoryCollection PropertyCategory PropertyCategory.Properties DataPropertyCollection DataProperty Current .NET API cannot modify/add custom properties. Need COM API

Слайд 5
Описание слайда:
Properties Name Meaningful name Independent of languages Pre-define strings, easy to use Internal name Independent of languages Named from the class definition of API Display name What the end users can see in Localization

Слайд 6
Описание слайда:
NamedConstant & VariantData NamedConstant Identifier for a value combining the internal constant's name and a localized display name equivalent VariantData A value type that can store data of one of several different types DataProperty.Value Check type before print out the value

Слайд 7
Описание слайда:
Iterate Properties Demo

Слайд 8
Описание слайда:
Get Property by Method PropertyCategoryCollection Various methods to get property category and property, e.g. FindCategoryByDisplayName find property category by display name only FindCategoryByName find property category by internal name only FindPropertyByDisplayName find property by display name only FindPropertyByName find property by internal name only

Слайд 9
Описание слайда:
Demo: Get Categories by Display Name

Слайд 10
Описание слайда:
Demo: Get Categories by Methods

Слайд 11
Описание слайда:
Demo: Get Properties by Methods

Слайд 12
Описание слайда:
Add Custom Properties See Lab 09 [COM Interop]

Слайд 13
Описание слайда:
Unique Identifier of Object ModelItem.InstanceGuid Same to Item>>Guid in UI Available for some file formats only (Revit, AutoCAD) Properties from source CAD file Some format provides a kind of ID that could be an identifier such as AutoCAD Handle, Guid of Microstation. Revit file Recommend with Elements Properties>>UniqueId.

Слайд 14
Описание слайда:
Exercise Create a plugin Check the language of Navisworks. Use the display name of local language to find some properties

Слайд 15
Описание слайда:


Скачать презентацию на тему Object properties. (Lab 5) можно ниже:

Похожие презентации