[{"data":1,"prerenderedAt":413},["ShallowReactive",2],{"/dict/export-cmds":3,"/dict/export-cmds-surround":402},{"id":4,"title":5,"body":6,"description":367,"extension":368,"meta":369,"navigation":388,"path":398,"seo":399,"stem":400,"__hash__":401},"content/dict/export-cmds.md","NetLogo Dictionary: export-cmds",{"type":7,"value":8,"toc":356},"minimark",[9],[10,11,16,73,140,146,149,152,158,167,173,192,200,203,206,290,293],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","export-cmds","region",[17,18,20,35,43,51,58,66],"h3",{"id":19},"export-view30export-interface20export-output10export-plot10export-all-plots121export-world10",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#export-cmds","doc-noteref","Reference to export-view","\nexport-view\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n3.0\n",[21,36,38,39],{"href":23,"role":24,"ariaLabel":37},"Reference to export-interface","\nexport-interface\n",[28,40,42],{"className":41,"role":32,"ariaLabel":33},[31],"\n2.0\n",[21,44,46,47],{"href":23,"role":24,"ariaLabel":45},"Reference to export-output","\nexport-output\n",[28,48,50],{"className":49,"role":32,"ariaLabel":33},[31],"\n1.0\n",[21,52,54,55],{"href":23,"role":24,"ariaLabel":53},"Reference to export-plot","\nexport-plot\n",[28,56,50],{"className":57,"role":32,"ariaLabel":33},[31],[21,59,61,62],{"href":23,"role":24,"ariaLabel":60},"Reference to export-all-plots","\nexport-all-plots\n",[28,63,65],{"className":64,"role":32,"ariaLabel":33},[31],"\n1.2.1\n",[21,67,69,70],{"href":23,"role":24,"ariaLabel":68},"Reference to export-world","\nexport-world\n",[28,71,50],{"className":72,"role":32,"ariaLabel":33},[31],[74,75,79],"h4",{"id":76,"className":77},"export-view-filenameexport-interface-filenameexport-output-filenameexport-plot-plotname-filenameexport-all-plots-filenameexport-world-filename",[78],"section-heading",[21,80,84,96,104,112,124,132],{"className":81,"href":83},[82],"section-anchor","#export-view-filenameexport-interface-filenameexport-output-filenameexport-plot-plotname-filenameexport-all-plots-filenameexport-world-filename",[28,85,88],{"className":86},[87],"prim_example",[89,90,91,92],"p",{},"export-view ",[93,94,95],"em",{},"filename",[28,97,99],{"className":98},[87],[89,100,101,102],{},"export-interface ",[93,103,95],{},[28,105,107],{"className":106},[87],[89,108,109,110],{},"export-output ",[93,111,95],{},[28,113,115],{"className":114},[87],[89,116,117,118,121,122],{},"export-plot ",[93,119,120],{},"plotname"," ",[93,123,95],{},[28,125,127],{"className":126},[87],[89,128,129,130],{},"export-all-plots ",[93,131,95],{},[28,133,135],{"className":134},[87],[89,136,137,138],{},"export-world ",[93,139,95],{},[89,141,142,143,145],{},"export-view writes the current contents of the current view to an\nexternal file given by the string ",[93,144,95],{},". The file is\nsaved in PNG (Portable Network Graphics) format, so it is\nrecommended to supply a filename ending in “.png”.",[89,147,148],{},"export-interface is similar, but for the whole interface tab.",[89,150,151],{},"Note that export-view still works when running NetLogo in headless\nmode, but export-interface doesn’t.",[89,153,154,155,157],{},"export-output writes the contents of the model’s output area to\nan external file given by the string ",[93,156,95],{},". (If the model\ndoes not have a separate output area, the output portion of the\nCommand Center is used.)",[89,159,160,161,163,164,166],{},"export-plot writes the x and y values of all points plotted by all\nthe plot pens in the plot given by the string ",[93,162,120],{}," to an\nexternal file given by the string ",[93,165,95],{},". If a pen is in\nbar mode (mode 0) and the y value of the point plotted is greater\nthan 0, the upper-left corner point of the bar will be exported. If\nthe y value is less than 0, then the lower-left corner point of the\nbar will be exported.",[89,168,169,170,172],{},"export-all-plots writes every plot in the current model to an\nexternal file given by the string ",[93,171,95],{},". Each plot is\nidentical in format to the output of export-plot.",[89,174,175,176,178,179,191],{},"export-world writes the values of all variables, both built-in and\nuser-defined, including all observer, turtle, and patch variables,\nthe drawing, the contents of the output area if one exists, the\ncontents of any plots and the state of the random number generator,\nto an external file given by the string ",[93,177,95],{},". (The\nresult file can be read back into NetLogo with the ",[180,181,183],"primitive",{"displayText":182,"permalink":182},"import-world",[21,184,182],{"className":185,"dataDisplayText":182,"href":187,"rel":188,"target":190,"title":182},[186],"netlogo-wiki-link","/dictionary#import-world",[189],"noopener","_self"," primitive.) export-world does not\nsave the state of open files.",[89,193,194,195,199],{},"export-plot, export-all-plots and export-world save files in in\nplain-text, “comma-separated values” (",[196,197,198],"code",{},".csv",")\nformat. CSV files can be read by most popular spreadsheet and\ndatabase programs as well as any text editor.",[89,201,202],{},"If you wish to export to a file in a location other than the\nmodel’s location, you should include the full path to the file\nyou wish to export. (Use the forward-slash ”/” as the\nfolder separator.)",[89,204,205],{},"Note that the functionality of these primitives is also available\ndirectly from NetLogo’s File menu.",[207,208,209],"pre",{},[196,210,211,121,217,222,225,230,232,236,238,121,242,121,246,250,252,256,258,262,264,268,270,121,274,278,280,284,286],{},[28,212,216],{"className":213},[214,215],"token","command","export-world",[28,218,221],{"className":219},[214,220],"string","\"fire.csv\"",[223,224],"br",{},[28,226,229],{"className":227},[214,228],"comment",";; exports the state of the model to the file fire.csv",[223,231],{},[28,233,235],{"className":234},[214,228],";; located in the NetLogo folder",[223,237],{},[28,239,241],{"className":240},[214,215],"export-plot",[28,243,245],{"className":244},[214,220],"\"Temperature\"",[28,247,249],{"className":248},[214,220],"\"c:/My Documents/plot.csv\"",[223,251],{},[28,253,255],{"className":254},[214,228],";; exports the plot named",[223,257],{},[28,259,261],{"className":260},[214,228],";; \"Temperature\" to the file plot.csv located in",[223,263],{},[28,265,267],{"className":266},[214,228],";; the C:My Documents folder",[223,269],{},[28,271,273],{"className":272},[214,215],"export-all-plots",[28,275,277],{"className":276},[214,220],"\"c:/My Documents/plots.csv\"",[223,279],{},[28,281,283],{"className":282},[214,228],";; exports all plots to the file plots.csv",[223,285],{},[28,287,289],{"className":288},[214,228],";; located in the C:My Documents folder",[89,291,292],{},"If the file already exists, it is overwritten. To avoid this you\nmay wish to use some method of generating fresh names. Examples:",[207,294,295],{},[196,296,297,121,300,305,307,310,311,121,315,121,319,121,323,327,328,332,334,310,337,121,340,121,343,121,347,121,352,355],{},[28,298,216],{"className":299},[214,215],[28,301,304],{"className":302},[214,303],"reporter","user-new-file",[223,306],{},[28,308,216],{"className":309},[214,215]," (",[28,312,314],{"className":313},[214,303],"word",[28,316,318],{"className":317},[214,220],"\"results \"",[28,320,322],{"className":321},[214,303],"date-and-time",[28,324,326],{"className":325},[214,220],"\".csv\"",") ",[28,329,331],{"className":330},[214,228],";; Colon characters in the time cause errors on Windows",[223,333],{},[28,335,216],{"className":336},[214,215],[28,338,314],{"className":339},[214,303],[28,341,318],{"className":342},[214,220],[28,344,346],{"className":345},[214,303],"random-float",[28,348,351],{"className":349},[214,350],"number","1.0",[28,353,326],{"className":354},[214,220],")",{"title":357,"searchDepth":358,"depth":359,"links":360},"",5,3,[361],{"id":19,"depth":359,"text":362,"children":363},"\nexport-view\n\n3.0\n\nexport-interface\n\n2.0\n\nexport-output\n\n1.0\n\nexport-plot\n\n1.0\n\nexport-all-plots\n\n1.2.1\n\nexport-world\n\n1.0\n",[364],{"id":76,"depth":365,"text":366},4,"export-view filenameexport-interface filenameexport-output filenameexport-plot plotname filenameexport-all-plots filenameexport-world filename","Documentation for the export-cmds primitive.","md",{"source":370,"metadataOutputPath":371,"projectConfig":372,"language":380,"inheritFrom":389,"output":388,"version":373,"layout":390,"dictionaryDisplayName":391,"dictionaryHomeDirectory":392,"indexFileURI":393,"currentItemId":14,"currentItemLabel":394,"primRoot":395,"icon":396,"assetsRoot":397},"autogen/dict/export-cmds.md","content/dict/export-cmds.metadata.yaml",{"version":373,"projectRoot":374,"scanRoot":375,"outputRoot":376,"defaults":377,"engine":383,"partials":384,"dedupeIdenticalDiskWrites":388},"7.0.4",".","autogen","content",{"inheritFrom":378,"language":380,"output":381,"extension":368,"title":382,"version":373},[379],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":385,"extensions":386},[374],[387,368],"mustache",true,[379],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","export-view, export-interface, export-output, export-plot, export-all-plots, export-world","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/export-cmds",{"title":5,"description":367},"dict/export-cmds","JNoO0efThV4XiTa-2dAc6vf4VfEPHkR6wLhdmh9OKSI",[403,408],{"title":404,"path":405,"stem":406,"description":407},"NetLogo Dictionary: exp","/dict/exp","dict/exp","Documentation for the exp primitive.",{"title":409,"path":410,"stem":411,"description":412},"NetLogo Dictionary: extensions","/dict/extensions","dict/extensions","Documentation for the extensions primitive.",1777657805550]