We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
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.