Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Frequent Contributor
Posts: 159
Registered: ‎01-14-2018

Assigning xml style file based on attribute value

Hello all,


I have imported styles xml files as "GeoMedia SmartClient Style Definition" in my gws style, they are a number of line styles, 


I have linear features which have a column called "fcode"


I want to assign a style for each line based on the follwing:

If the xml file name = the value of the "fcode" column, then give this line that style


Does anyone know how and where to write this expression?


my code is as follow:

PView.StyleService styleService = new PView.StyleService();
PView.StyleDefinition style = null;

styleService.GetStyle("Simple line Style", out style);


thanks for your support