Оцените презентацию от 1 до 5 баллов!
Тип файла:
ppt / pptx (powerpoint)
Всего слайдов:
15 слайдов
Для класса:
1,2,3,4,5,6,7,8,9,10,11
Размер файла:
2.36 MB
Просмотров:
56
Скачиваний:
0
Автор:
неизвестен
Слайды и текст к этой презентации:
№1 слайд![Lab Properties Lab Properties](/documents_6/a3ce4f70127962ed383cc57659c07f84/img0.jpg)
Содержание слайда: Lab 5 – Properties
Lab 5 – Properties
№2 слайд![Agenda Object Properties Find](/documents_6/a3ce4f70127962ed383cc57659c07f84/img1.jpg)
Содержание слайда: Agenda
Object Properties
Find Properties
№3 слайд![Object Properties](/documents_6/a3ce4f70127962ed383cc57659c07f84/img2.jpg)
Содержание слайда: Object Properties
№4 слайд![.NET API](/documents_6/a3ce4f70127962ed383cc57659c07f84/img3.jpg)
Содержание слайда: .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](/documents_6/a3ce4f70127962ed383cc57659c07f84/img4.jpg)
Содержание слайда: 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 amp VariantData](/documents_6/a3ce4f70127962ed383cc57659c07f84/img5.jpg)
Содержание слайда: 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](/documents_6/a3ce4f70127962ed383cc57659c07f84/img6.jpg)
Содержание слайда: Iterate Properties Demo
№8 слайд![Get Property by Method](/documents_6/a3ce4f70127962ed383cc57659c07f84/img7.jpg)
Содержание слайда: 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](/documents_6/a3ce4f70127962ed383cc57659c07f84/img8.jpg)
Содержание слайда: Demo: Get Categories by Display Name
№10 слайд![Demo Get Categories by Methods](/documents_6/a3ce4f70127962ed383cc57659c07f84/img9.jpg)
Содержание слайда: Demo: Get Categories by Methods
№11 слайд![Demo Get Properties by Methods](/documents_6/a3ce4f70127962ed383cc57659c07f84/img10.jpg)
Содержание слайда: Demo: Get Properties by Methods
№12 слайд![Add Custom Properties See Lab](/documents_6/a3ce4f70127962ed383cc57659c07f84/img11.jpg)
Содержание слайда: Add Custom Properties
See Lab 09 [COM Interop]
№13 слайд![Unique Identifier of Object](/documents_6/a3ce4f70127962ed383cc57659c07f84/img12.jpg)
Содержание слайда: 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](/documents_6/a3ce4f70127962ed383cc57659c07f84/img13.jpg)
Содержание слайда: Exercise
Create a plugin
Check the language of Navisworks.
Use the display name of local language to find some properties
№15 слайд![](/documents_6/a3ce4f70127962ed383cc57659c07f84/img14.jpg)