[MSCE U17 C#] New property pane for ItemType

Introduction

For enabling text placement from attach/edit item dialogs we are introducing a new property panel. Here I am going to explain how to use this new property panel with all datatypes as ItemType property supports:

  • Text
  • Number
  • Integer
  • True/False
  • Date/Time
  • Point
  • Struct Type

Image: Item Type property definition types.

  • You can access the "Attach Item" dialog from the contextual menu that is displayed by right-clicking on the "Item type" element in the "Item Types" dialog.  OR
  • Ribbon: Drawing > Attach > Attach Item dialog to attach multiple item types.
  • You can access the "Edit Item" & "Clone Item"dialog from the contextual menu that is displayed by right-clicking on an element with Item Type attached.

Image: Attach Item and Edit item dialog


Image: Multi attach item dialog and clone items tool dialog

Sample ItemType:

Property Name Type
Height Number
Grill Count Integer
Is BioMetric Boolean
Type Text
Date Date/Time
Location Point
Screw Information Structure[ScrewType] 
Door Id Expression
Hinges Text Array
Array of Structure Array of Structure

Video: Demo for Sample Item Type

Search feature: 

  • Search is working on individual property, structure, array properties, and an array of structural properties.

Image:  Search feature

Video: Demo for search feature in the new property pane.

Image: Text, Integer, Number, Date, and Boolean data types.

Video: Demo for Text, Integer, Number, Date, and Boolean data types.

Point Data Type:  I have taken the "Location" property as a point data type in the sample itemtype example which is shown in the below image and video.

Image: Point data type

Video: Demo for Point data type.

Struct Data Type:  I have taken "Screw Information" as a property which is a type of "ScrewType" which is "struct" in the sample itemtype example. This example is shown in below image and video.

Image: Struct data type

Video: Demo for Struct data type

Expression Property: I have taken 'Door Id" property as an "Expression" in the sample itemtype example. Property with "Expression" is ReadOnly Property. This example is shown in below image and video.

Image: Expression Property

Video: Demo for Expression property

Array Property:  I have taken "Hinges" as a text array property in the sample itemtype example. In attach item dialog, you need to click on the expander button of the "Hinges" property for adding or deleting an array element.

  • Add: Click on the   button to add an array element.
  • Delete: Select the respective element textbox and click on    button to delete an array element.

 

Image: Array Property

Video: Demo for Array property

Array of structure[Property Type]:  I have taken "Array of structure" as a struct array property in the sample itemtype example. In attach item dialog, you need to click on the expander button of the "Array of structure" property for adding an array element.

  • Add: Click on the   button to add an array element.
  • Delete: Delete currently does not work. If you attached itemtype to an element and you want to delete the struct array element then you can delete it from the element properties pane as shown in the below video.

Image:  Array of structure[Property Type]

Video: Demo for an array of structure [Property Type]