Dear Seth,
I am trying to follow your suggestion and the suggesstion from Github:
https://github.com/NetLogo/NetLogo/wiki/Controlling-API
However org.nlogo.awt.Utils.invokeLater does not have the class Utils.
I am using Netlogo 6.0.2.
Any suggestion on what to import?
public static void main(String[] args) {
org.nlogo.awt.Utils.invokeLater(
new Runnable() {
public void run() {
System.setProperty("org.nlogo.is3d", "true");
HeadlessWorkspace workspace = HeadlessWorkspace.newInstance() ;
try {
workspace.open("models/3D/Sample Models/"
+ "DLA 3D.nlogo");
workspace.command("set wiggle-angle 70");
workspace.command("random-seed 0");
workspace.command("setup");
workspace.command("repeat 50 [ go ]") ;
System.out.println(workspace.report(
"count patches with [pcolor = green]"));
workspace.dispose();
}
catch(Exception ex) {
ex.printStackTrace();
}}});
}
Em terça-feira, 23 de janeiro de 2018 20:18:35 UTC-2, Seth Tisue escreveu:
>
> I'm not sure if it's been tried before. I think it will probably just work
> if you do:
>
> System.setProperty("org.nlogo.is3d", "true");
>
> before calling App.main. It's worth a try.
>
> Seth
>
--
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.