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
You can use the File->Viewlog command from the pull-down menus, browse to the report file, then click on the x/y coordinates. Of course, the x/y coordinates put out by the skill file would have to be formatted so Allegro recognizes them; i.e. "(100 200)".
In reply to Randy R:
You Sir are a genius!
Thank you very much for the super quick reply. Exactly what I was looking for (totaly forgot about this command).
Much ablidge Randy!
In reply to eddieb1:
Is there a code that I can use to open the text file? I would like to include/add this code to my existing skill so that it's part of the process instead of going to the "Viewlog" command.
There's a couple of ways you can try and see which one works better for you:
See algroskill.pdf in the doc folder of your installation for details on syntax.
Thanks Randy for pointing me to this document. Shows you that I'm just learning skill.
Anyway, looks like the axlUIViewFIleCreate might work for me but I'm not so sure how to proceed from here. Do you think I can use the example provided in the document? If not will you be able to show me?
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.
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.
In reply to fxffxf:
Works! Simple and elegant.
Much ablige to you gentlemen (Randy/Fx).
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.
In reply to ArsalanAzhar:
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
fprintf(filehandle "Component located at (%f,%f)\n" xcoordinate ycoordinate)
where both xcoordinate and ycoordinate are floating point numbers.