Is there a way to get an XML Report or List of Rules for Rule Sets from Import Surface Advanced? I am using InRoads version 08.11.07.428
There are sample XML reports that act on XIN files. With effort, it should be possible to create a report on the settings within a rule set.
Charles (Chuck) Rheault CADD Manager
MDOT State Highway Administration
I only want to extract one item, the 'name' of each rule.
I've searched for help on Style Sheet editing but have not had much luck. I saw a link to videos but we are blocked from watching youtube videos.
Do you think I would get better luck if I place this thread in another forum?
Thanks, this is greatly appreciated but I must be doing something wrong.
First, I ran this script, without any editing, on the Bentley provided civil.xin file and I got an error message saying 'The system cannot locate the object specified'.
So then I made the edits that you suggested then ran it on our .xin file and I got the same error message.
I apologize for my inexperience but it seems I am missing something simple. Any suggestions?
Where did you place the file? It need to go in one of the subfolders of the XIN reports. There is an XIN folder, if you place it there it should work. The report is looking for a file called format.xsl that it expects to be in the parent folder of the file. The standard root/parent folder for reports is "XML Data"
I named the file importsurface.xsl and placed it in C:\Program Files\Bentley\InRoads Group V8.11\XML Data\en
The file format.xsl is in the same folder
Under \en is an XIN subfolder, place it there. You will need to restart the report browser or reset the Root Folder - which is to say reselect the same root folder it currently is set to which refreshes the folder lists.
Awesome!
Your code modification worked too!
Now all I need to do is bore down one level deeper and get it to read each "Rule" and its Name attribute
Thanks so much