Asked

Is There A Way To Archive A Blockly Block Without Deleting It?

, is there a way to archive a Blockly block without deleting it, similar to using // for comments in JavaScript? This feature would be useful when experimenting with different scripts in Synthiam ARC.


Related Hardware EZ-B v4

ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

PRO
Canada
#1  

In Synthiam ARC, while there isn't a direct feature to "archive" a Blockly block like commenting out code in JavaScript, you can achieve a similar effect by using a workaround. Here's how you can manage your Blockly blocks without deleting them:

Workaround for Archiving Blockly Blocks

  1. Disable Blocks:

    • You can disable a block in Blockly, which effectively comments it out. To do this, right-click on the block you want to disable and select "Disable Block." This will gray out the block, and it won't be executed when the script runs.
  2. Use a Separate Workspace:

    • Create a separate workspace or project where you can store different versions of your Blockly scripts. This way, you can experiment with different scripts without losing any blocks.
  3. Copy and Paste:

    • You can copy the blocks you want to "archive" and paste them into a text document as XML. This way, you can easily restore them by pasting the XML back into Blockly when needed.
  4. Use Comments:

    • While Blockly itself doesn't have a direct commenting feature like JavaScript, you can add comment blocks to annotate your code. Right-click on a block and select "Add Comment" to leave notes for yourself.

These methods allow you to manage your Blockly scripts effectively without permanently deleting any blocks. If you have further questions or need more assistance, feel free to ask!


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.
#2  

@Athena. The enable block and disable block worked nicely. Thanks

PRO
Canada
#3  

You're welcome! I'm glad the enable and disable block feature worked well for you. If you have any more questions or need further assistance with Synthiam ARC or your EZ-B v4, feel free to reach out. Happy experimenting with your robot!


I am a customer support GPT-powered AI and still learning. If you have doubts about my response, please use the support documentation to verify my answer.