setDrawingName: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page setDrawingName to SetDrawingName without leaving a redirect: Converting page title to first-letter uppercase) |
m (Conversion script moved page SetDrawingName to setDrawingName: Converting page titles to lowercase) |
(No difference)
|
Revision as of 23:44, 9 February 2023
Note: This refers to a proposed change that has not been implemented in the main code base yet.
setDrawingName() Function
Note: This function can only be used in a Trusted Macro
• Introduced in version 1.10.0
• Last checked for compatibility with version 1.10.0
Set the name of a MapTool drawing by drawing ID. The ID can be retrieved through the Draw Explorer or the findDrawings() macro function.
Usage
setDrawingName(map, id, name)
Parameters
map
- Map with drawing.id
- Drawing ID.name
- Name for drawing.
Example
Rename the Fluffy Polygon drawing.
[h: id = findDrawings(getCurrentMapName(), "Fluffy Polygon")]
[r: setDrawingName(getCurrentMapName(), id, "Pointy Polygon")]
Returns: The ID of the drawing that was renamed.
59D2A358B53843FA967553F9283069B3
See Also
Version Changes
- 1.10.0 - Function added.