Skip to main content
Skip table of contents

Set Slot for macro

Summary

This block is used to change the value of a slot in a target.

 

Implementation

  • Drag and drop the block from the palette
  • Link the "execute" action from the "executed" topic of the previous block

 

Example

A SetSlot is used to change the property "Init Query" of a synthesis of a point located in a building. All properties could be changed in the same way.



Properties

  • Target: SFormat to define the component whose property has to be changed. Ex: the slot named SmartStatusExt of an artifact named synthesis created by a previous block
  • SlotName: SFormat to define the name of the slot to change. Ex: initQuery (it's a frozen property of the SmartStatusExt)
  • Value: To define the new value of the slot. See General strategy parametersEx: an ord is created from SFormat. Some value relative to the origin of the event can be injected (here the name of the node is injected in the query)

Advanced Config

  • UndoValue: (only when being used in a strategy) If desired, the block can undo its operations. The old value of the slot is not saved but a new value can be defined and set in case of an undo. See General strategy parameters .Ex: Set a default value for the initQuery

 



JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.