From 401a2a69df24c071eec292117a79e9541e7058de Mon Sep 17 00:00:00 2001 From: euu <77707706+euu2021@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:08:29 -0300 Subject: [PATCH] Update reference.groovy --- src/docs/scripting/reference.groovy | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/src/docs/scripting/reference.groovy b/src/docs/scripting/reference.groovy index 9cd72f7..6fc2294 100644 --- a/src/docs/scripting/reference.groovy +++ b/src/docs/scripting/reference.groovy @@ -1065,6 +1065,18 @@ node.geometry.shape node.geometry.verticalMargin +/* + NodeGeometry +*/ + +// Sets the node geometry as uniform. + +node.geometry.isUniform = true + +// Sets the shape of the node as "OVAL". + +node.geometry.shape = "OVAL" + /* NodeRO */ @@ -1761,3 +1773,67 @@ node.style.textColor = java.awt.Color.YELLOW // Sets "#ffff00ff" as the text color of the selected node. node.style.textColorCode = "#ffff00ff" + +/* + ReminderRO +*/ + +// Retrieves the period of the reminder. + +node.reminder.period + +// Retrieves the unit of the period of the reminder. + +node.reminder.periodUnit + +// Retrieves the datetime at which the reminder is set to alert. + +node.reminder.remindAt + +// Retrieves the script associated with the reminder. + +node.reminder.script + +/* + Reminder +*/ + +// Creates a periodic reminder. To make the reminder fire every second week: + +node.reminder.createOrReplace(new Date() + 1, "WEEK", 2) + +// Removes the reminder. + +node.reminder.remove() + +// Sets a script to execute when the reminder fires. + +node.reminder.setScript("aaa") + +/* + Script +*/ + +// Grants the script permission to access the network. + +c.script(new File("C:/example script.groovy")).accessingNetwork().executeOn(node.map.root) + +// Executes the script on the specified node. + +c.script(new File("C:/example script.groovy")).executeOn(node.map.root) + +// Grants the script permission to read files. + +c.script(new File("C:/example script.groovy")).readingFiles().executeOn(node.map.root) + +// Grants the script permission to start applications. + +c.script(new File("C:/example script.groovy")).startingApplications().executeOn(node.map.root) + +// Grants the script all permissions. + +c.script(new File("C:/example script.groovy")).withAllPermissions().executeOn(node.map.root) + +// Grants the script permission to write files. + +c.script(new File("C:/example script.groovy")).writingFiles().executeOn(node.map.root)