Abstract
This example project template implements a project that demonstrates the following vcCOM features:
- Accessing dynamic properties through the IvcPropertyList2 interface.
- Accessing dynamic property objects using the IvcProperty.
- Listening for changes in dynamic property objects by implementing the IvcEventPropertyListener interface.
It is written in C# using Visual Studio 2005
Project description
The project compiles to an executable, PropertyBrowser.exe, that connects to an existing instance of 3DCreate, and lists all contents in the loaded layout as a tree. When a tree node is selected, the properties of the corresponding object are displayed and can be manipulated.
The source code is organized as follows:
- Form1.cs: Main form code. This form contains the node tree and a property page.
- PropertyPage.cs: Property page control. This control is associated with an IvcPropertyList. It then populates itself with the appropriate BaseProperty-derived controls to show each property.
- BaseProperty.cs, BooleanProperty.cs, SetDomainProperty.cs, SimpleProperty.cs, UnknownProperty.cs,VectorProperty.cs: Individual property control classes. BaseProperty is the base class for all of these.
- ListForm.cs: Helper form for the ListProperty class. This form is opened to allow the user to edit the contents of list type properties.
- PropertyPage.cs: Stand-alone form containing a single PropertyPage control. This is opened by pointer type properties to show the properties of dereferenced objects.
Files
This project template requires 3DCreate.
PropertyBrowser.zip