Example
by: | kimwida, January 2019 |
---|---|
published: | http://forum.avolites.com/viewtopic.php?f=20&t=5784#p21569 |
description: | copy a legend icon from another handle |
<step pause="0.01">Handles.SetSourceHandleFromHandle(handle:"Location=Colours,1,3")</step> <step pause="0.01">Handles.SetIcon(Math.Cast.ToInteger(Handles.GetIconId(handle:"Location=Colours,1,1")))</step> <step pause="0.01">Handles.ClearSelection()</step>
This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax
Handles.SetSourceHandleFromHandle
sets a particular handle as the source handle - here: the target for the copy operationHandles.SetIcon
sets the icon of the target handleMath.Cast.ToInteger
makes sure the icon id is of the Int typeHandles.GetIconId
gets the id of the icon which is currently used for another specified handleHandles.ClearSelection
clears the selection so that no handle is highlighted as selected any moreThis is a snippet only - adapt and use it in your own macros.