• 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. Opening a text file in Allegro

Stats

  • Replies 10
  • Subscribers 161
  • Views 17038
  • Members are here 0
More Content

Opening a text file in Allegro

eddieb1
eddieb1 over 15 years ago

Hi,

Is there a way to open a text file in Allegro? Or if possible is there a way to place the text file in the "Show Element" window to make it active (hyperlink)?

 Here's my situation, I have a skill code written by somebody to look for a specific bend (angle) on a trace. Once found the x-y location of the trace and layer along with the netname is reported/written on a log file. Problem is, it's taking too much time to go and physically locate the bend. So if the skill reported 300 bends, then the only way to locate the bend is to copy the x-y coordinate from the report then use a 'line ' command with the x-y to go to the specific location.  If I can somehow place the report unto an active reporting window like the "show element" window then I think my problem will be resolved.

Thanks in advance

Eddie 

 

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 15 years ago

     

     To open an existing file via skill do: axlUIViewFileCreate( "<filename>" "<filename>" nil)

         the second arg is the title for window while the 1st is the file to open.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Randy R
    Randy R over 15 years ago

    The example should work fine if your report is written to the working directory; otherwise you will probably need the full path.  Another difference might be the delete file option.  Depending on whether you want to keep the report file, you may want to set it to nil instead of t.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eddieb1
    eddieb1 over 15 years ago

    Thanks Fx,

     Works! Simple and elegant.

    Much ablige to you gentlemen (Randy/Fx).

    Ed. 

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ArsalanAzhar
    ArsalanAzhar over 11 years ago

     Hi

    i know this is long time ago. But kindly let me know if you able to make the xy coordinates in hyperlink, so it will easy to jump to the exact location.

    Currently i m using the old technique to jump by line tool.

     

    Your reply will be appricaited.

     

    regards

    Arsalan Azhar

    arsalan20@gmail.com

    arsalan.azhar@altanova.com.pk

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 11 years ago

    Hi

    If you write data to a file in the format (x,y) and open it in the html viewer it will automatically be a hyperlink

    Example

     

    fprintf(filehandle "Component located at (%f,%f)\n" xcoordinate ycoordinate)

    where both xcoordinate and ycoordinate are floating point numbers.

     

    Best regards

    Ole 

    • 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