
The macros for exchange shapes:
copy to clipboard
macro: Layouter.copyToClipboard
This is extension of standard copy which groups selection of multiple objects together before copying to clipboard. In case of preparation for object exchanging with use of described below macros, you should always use single object or one group of objects as a source object, but not multiple selection.
exchange selected objects with object from clipboard
macro: Layouter.ExchangeSelected
With this macro you can swap one shape or selection of shapes with the shape which had been placed in the clipboard.
Usage:
- Copy to the clipboard the shape which shall be used as a source.
- Select the shape or multiple shapes which shall be swapped.
- Run macro.
exchange named objects with object from clipboard
macro: Layouter.ExchangeNamed
With this macro you can swap all occurrences of objects with a given name which is the same as the pattern name (provided within the input field - name). The replacement shape must be placed in the clipboard before. You can define the desired page range on which swapping shall be processed.
Usage:
- Copy to the clipboard the shape which shall be used as a source.
- Set the pattern name by providing it within the input field: name in the objects - exchange tab. To do the same task, you can also use Layouter.SetExchangeName
macro. - Set desired page range (options: current page, pages FROM - TO, all)
- Run macro
- Check the provided name, then press [ok].
exchange named objects with object from clipboard (recursive)
macro: Layouter.ExchangeNamedRecursive
This macro works identically as the above one with the difference that the searching of objects with matching names is processed recursively. It means that it affects also all occurrences of matched objects within the subgroups.
set the selected object name as a pattern for multiple exchange
macro: Layouter.SetExchangeName
With this macro you can define the pattern name which is used by other objects-exchange macros.
Usage:
- Select shape which has the name that you would use as the pattern name
- run this macro
The name of selected object will be copied and used as the pattern name.
The options for exchange shapes macros:
preserve exchanged object name
If this option is checked, then swapped object will preserve their previous name. Otherwise, the swapped object will be named same as the shape used for replacement.
Range
Here you define the range for exchange named objects with object from clipboard macros.
The macros for exchange properties:
properties to copy
macro: Layouter.showPropertiesToCopy
This macro opens the form in which you may define the exchange properties settings.

You may choose (by ticking), which of properties of the shape you want to copy. These settings will be used by others exchange properties macros.
copy properties from selected object
macro: Layouter.copyPropertiesOfSelected
Use this macro to store properties of selected object(s) in order to paste it to the others objects via paste properties to selected objects or paste properties to named objects macros.
Usage:
- Select the shape which will be the source of properties
- Run macro.
paste properties to selected objects
macro: Layouter.pastePropertiesToSelected
Use this macro to paste / restore properties on selected object(s). The properties must have been stored before with use of copy properties of selected objects macro.
Usage:
- Choose which of properties will be pasted / restored (by using properties to copy macro). If you omit this step, last settings will be used.
- Select the shape on which you want to paste / restore properties
- Run macro.
paste properties to named objects
macro: Layouter.pastePropertiesToNamed
Use this macro to paste / restore properties on all of matched objects within defined range. The properties must have been stored before with use of copy properties of selected objects macro. You must also set the exchange name and range before use this macro. This macro use the same name based filter as previous object exchange macros.
Usage:
- Choose which of properties will be pasted / restored (by using properties to copy macro). If you omit this step, last settings will be used.
- Set the exchange name and range.
- Run macro.
Properties of all occurences of matched objects will be replaced.
paste properties to named objects (recursive)
macro: Layouter.pastePropertiesToNamedRecursive
This macro works identically as the above one with the difference that the searching of objects with matching names is processed recursively. It means that it affects also all occurrences of matched objects within the subgroups.Related example videos & blog article
Krasbit Layouter - macros for copy and paste properties between objects
Krasbit Layouter - macros for copy and paste properties between NAMED objects
Copy and Paste properties between objects - the simplest way!



