To create and save a block with JavaScript, proceed as follows:
- Open the Dlubal Center | Blocks.
- Select any block that contains JavaScript.
- In the "Edit Blocks'" dialog box, switch to the "JavaScript" tab (Image 01).
- Click the button to program directly in the "JavaScript" tab. As an alternative, you can import a JavaScript file using the button.
- Click the button to apply the JavaScript.
- Then, save the block by clicking the button.
- In the "Save as Block" dialog box, enter the name of the block, and make the settings for the block categorization (Image 02).