359x
004335
2023-07-26

FAQ 005398 | How can I create and save a block using JavaScript?

Question:
How can I create and save a block using JavaScript?

Answer:
To create and save a block with JavaScript, proceed as follows:

  1. Open the Dlubal Center | Blocks.
  2. Select any block that contains JavaScript.
  3. In the "Edit Blocks'" dialog box, switch to the "JavaScript" tab (Image 01).
  4. Click the button to program directly in the "JavaScript" tab. Unlock As an alternative, you can import a JavaScript file using the button. Browse
  5. Click the button to apply the JavaScript. Apply
  6. Then, save the block by clicking the button. Save Block
  7. In the "Save as Block" dialog box, enter the name of the block, and make the settings for the block categorization (Image 02).


;