• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Backslash path gives error in axlUIViewFileCreate with allegro_html...

Stats

  • Replies 3
  • Subscribers 159
  • Views 12730
  • Members are here 0
More Content

Backslash path gives error in axlUIViewFileCreate with allegro_html enabled

pcbnagaraj
pcbnagaraj over 13 years ago
Dear All,

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.

Thanks,

Nagaraj.

 
  • Sign in to reply
  • Cancel
  • Ejlersen
    Ejlersen over 13 years ago

    Hi Nagaraj

    I don't know how you can get axlUIViewFileCreate to work on this, but have another suggestion

     Filename = strcat("http file:" axlOSSlash(axlGetVariable("Allegro_site")) "/tips.htm")

     axlShell(Filename)

    That will open the link in the users preferred browser - that works :-)

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • pcbnagaraj
    pcbnagaraj over 13 years ago
    Thanks good trick.. excellent!!

    The issue with the axlUIViewFileCreate is the first // in the server name. C:/tips.htm though works.

    Thanks,

    Nagaraj.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • pcbnagaraj
    pcbnagaraj over 13 years ago
    Just to inform – axlHttp will  directly launches to IE instead through shell command.

    Thanks,

    Nagaraj.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

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 Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information