General

General

How can I automatically create an annotation that contains the filepath and filename of the current case?

    • FAQFAQ
      Participant

      The best way to get a text annotation with the filepath and filename is with the Python API using the following commands. from ensight.objs import * data_path = core.CURRENTCASE[0].SERVERINFO[“dir”] filename = core.CURRENTCASE[0].SERVERINFO[“file”] ensight.text.select_default() ensight.text.location_x(0.2) ensight.text.location_y(0.6) ensight.text.size(20) ensight.text.new_text(data_path+”/”+filename) You can create a python script file that contains these lines, and then simply run it with File > Command > Execution tab > Load.