• 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. Custom IC SKILL
  3. hiCreateWindow, hiSetViewfile and html files

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 3878
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

hiCreateWindow, hiSetViewfile and html files

Aldo3
Aldo3 over 1 year ago

Hello,

I've tried this piece of code, to write and read an html file, but it doesn't work. Please, could someone help me?

fileName = "~/test.html"
file = outfile(fileName "w")
fprintf(file "<!DOCTYPE html><html><body><h1>My First Heading</h1><p>My first paragraph</p></body></html>")
close(file)
win = hiCreateWindow('default "html" "TEST")
hiSetViewfile(win fileName)
hiDisplayWindow(win)

Thank you

Best regards

Aldo

  • Cancel
  • AurelBuche
    AurelBuche over 1 year ago

    Hi Aldo,

    I guess your issue comes from filename not being simplified

    You can use

    fileName = (simplifyFilename "~/test.html")

    If your objective is to create an HTML page to interact with SKILL, you will soon realize this will not work as skill hrefs are not supported in HTML viewfile windows.

    The only native solution available yet is hiCreateHypertextField as I showed you in your other thread.

    It has very limited support of HTML features.

    If you want a SKILL/web interface with a full browser, you can write your own node.js server but it becomes quite complicated

    Have a nice day,

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Aldo3
    Aldo3 over 1 year ago in reply to AurelBuche

    Thank you Aurélien... you answered also to my next question!

    Best regards

    Aldo

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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