Backslash path gives error in axlUIViewFileCreate with allegro_html...
PCB SKILL Forums
Backslash path gives error in axlUIViewFileCreate with allegro_html enabled
over 5 years ago
I am trying to show a html file to user using the axlUIViewFileCreate
file path is like \\server1\allegro_skill\tips.htm
I enabled the allegro_html env variable so that the page is displayed as html page.
The above file path is stored in Allegro_site variable
Mycode is as below
Filename = strcat(axlGetVariable("Allegro_site ") “\\tips.htm”) ; this returns the file path
axlUIViewFileCreate( Filename "Allegro TIPS" nil)
this gives error that the file path is not found – reason is the double backslash appears in the Filename(\\\\server1\\allegro_skill\\tips.htm) which is not executed by axlUIViewFileCreate with allegro_html env.
I know that the double\\ is equal to \ and the strlen(“\\”) will count as 1.
When I unset the allegro_html I can able to read the file but the htm files is shown as text file with html syntax codes. I want the output to be as html enabled to show some links and pictures to the user.
How do I convert the double backslash(\\) to single backslash(\). I searched in the forum suggested to use rexSubstitute – I am not sure how to use this function.
Tried the axlOSSlash also doesn’t help. //server1/allegro_skill/tips.htm is not executed by axlUIViewFileCreate with allegro_html env.
Any suggestion is much appreciated.
over 5 years ago
Thanks good trick.. excellent!!
The issue with the axlUIViewFileCreate is the first // in the server name. C:/tips.htm though works.
The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full