Getting Anylogic Model Path in Disk Programmatically
<p>How can you get a Path - String - File reference to where the Anylogic model is located in the disk from one of the Java code input windows? </p>

<p>I fear it might not be possible because the execution takes place from a produced BUILD folder that contains the classes generated by AL, but there might be a way to pass this information down through a variable for it to be available at runtime...</p>

<p>So far I have only managed to get the folder where this classes produced by AL are located by doing (from the main agent):</p>

<blockquote>
  <p>traceln(this.getClass().getProtectionDomain().getCodeSource().getLocation());</p>
</blockquote>