You can get ahold of it through `AbstractWorkspace.modelNameForDisplay`. See this Gist <https://gist.github.com/TheBizzle/17a7281f1870fa1b1d13> for the Scala code for an extension that does this.

On 08/12/2014 08:21 PM, Charles wrote:

I've taken a quick search through the NetLogo API, but can't find how one gets access to the filename of the current NetLogo model, e.g., mymodel.nlogo. Could someone point me in the right direction? (I know the model directory is in context, but apparently not the model filename.)

Thanks,
Charles
--
You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to