• 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. how to extract the FUNC_PHYSICAL_PATH in the report by using...

Stats

  • Replies 0
  • Subscribers 159
  • Views 12134
  • Members are here 0
More Content

how to extract the FUNC_PHYSICAL_PATH in the report by using skill file?

chloe
chloe over 9 years ago

I download a skill file that can generate the component height information

But i would like to modify the skill by adding the "FUNC_PHYSICAL_PATH" in the report

Here is the skill file that i downloaded

axlCmdRegister("height_rep" '_extract_report ?cmdType "general")
defun( _extract_report ()
let(list(last_line extract_commands extract_data report_file cmd_file ext_results f_report l_fields)
last_line = ""
extract_commands = "_tmp_extract.txt" ;name of temp extract command file
extract_data = "_tmp_extract.dat"
report_file = "comp_height_report"

;Create the extract command file
cmd_file = outfile(extract_commands)
fprintf(cmd_file "GEOMETRY\n")
fprintf(cmd_file "REFDES!=\"\"\n")
fprintf(cmd_file "COMP_DEVICE_TYPE!=\"\"\n")
fprintf(cmd_file "CLASS = \"PACKAGE GEOMETRY\"\n")
fprintf(cmd_file "SUBCLASS=\"PLACE_BOUND_TOP\"\n")
fprintf(cmd_file "OR\n")
fprintf(cmd_file "SUBCLASS=\"PLACE_BOUND_BOTTOM\"\n")
fprintf(cmd_file "SUBCLASS=\"PLACE_BOUND_BOTTOM\"\n")

fprintf(cmd_file "REFDES\n")
fprintf(cmd_file "COMP_DEVICE_TYPE\n")
fprintf(cmd_file "GRAPHIC_DATA_NAME\n")
fprintf(cmd_file "SUBCLASS\n")
fprintf(cmd_file "GEO_PACKAGE_HEIGHT_MAX\n")
fprintf(cmd_file "GEO_PACKAGE_HEIGHT_MIN\n")

close(cmd_file)

axlExtractToFile(extract_commands extract_data '("quiet"))
ext_results = infile(extract_data)
f_report = axlDMOpenFile("ALLEGRO_REPORT" report_file "w")
while( gets(line_rd ext_results)
l_fields=parseString(line_rd "!")
if(car(l_fields)=="S" then
unless(last_line==line_rd
;unless the line read matches the last line write it to the report.

fprintf(f_report "%s", line_rd)
last_line=line_rd ;reset the last line value
);end unless
);end if
);end while
close(ext_results)
close(f_report)
;Clean up
deleteFile(extract_commands) ;delete the view file
deleteFile(extract_data) ;delete the raw data file
printf("Report complete.\n")
);end let
);end defun

May i know how to add this "FUNC_PHYSICAL_PATH" to include the components physical path in the report?

Thanks

  • Cancel
  • Sign in to reply
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