GeoMedia Discussions

Search for an answer, post a question, or answer other users' questions in our GeoMedia support discussions. This discussion board is a great way to collaborate with industry peers around the world. It is intended for discussion and support of the GeoMedia Desktop and Add-on applications.
Showing results for 
Search instead for 
Do you mean 
Frequent Contributor
Posts: 130
Registered: ‎11-10-2015

[GM Automation] Get the full category path in the CustomPropertiesAdvisor

Hi all,


I have written a custom code to be able to replace the default Properties Windows by a custom one. Everything works fine except when two different categories are present in the GWS with the same name (the full path is different, but the name is the same)


My problem is to get the full path category from the customPropertiesAdvisor.RecordSet object


I use the following code to get the Query corresponding to the current clicked record :

 Intergraph.GeoMedia.PDBPipe.Query rsquery = (Intergraph.GeoMedia.PDBPipe.Query)_customPropertiesAdvisor.RecordSet.GetExtension("Name");


In theory (in the GeoMedia Object Reference documentation), we can see that the FolderPath property contains the path of the query (Categories.1stLevel.2ndLevel.CategoryName), but... in all cases for me, this property is empty. The Name property gives to me the name of the category, but... if 2 (or more) categories have the same name in the GWS, it is impossible to make the difference between them


My questions :

  • Is it a bug or not if the rsquery.FolderPath is empty?
  • If not, what is the way to get this information through automation?