Just wondering if the sdk has available the ability to show the select property dialog that has the properties of a selected element shown and allow the user to select a property an return that selection.
Basically what you see when you add a field to text to show a element property.
I am confused a bit by this thread ;-)
I understand the original question as ability to access a list of properties, but it seems to change quickly to "add field to text" issue. So what issue is more important and valid?
I think (but have not tested it) to receive list of all properties for a specific element would be possible using ECQuery. And a dialog with such list can be quite simple. On the other hand, to implement dialog similar to that you mentioned will be probably complex task.
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
yes my original question was for getting a dialog box of properties for a selected element to allow the user to select a property.
I know I can get all the properties and populate a simple dialog. but was just wondering if Bentley exposed that dialog in a method anywhere, where it would just return something like the access string after the user selects a property. sounds like no.
John Drsek said:but was just wondering if Bentley exposed that dialog in a method anywhere
Well, you know, API is designed to allow access to platform features primarily and not to user tools ;-)
The "field selection" dialog is implemented in TextTool.dll, but it's not pure NET assembly, so it's hard to guess whether it can be called from outside.
In "EC assemblies", there are plenty of classes to access, display and format EC data available, so I think the most of puzzle pieces is available already, but without some documentation, it's hard to guess how to put them together.
John Drsek said:sounds like no
But at the same time it sounds like something that can be valuable for more people. So a reason for Service Ticket or an opportunity to develop own NuGet package? ;-)