581x
005398
2023-07-26

Blocks with JavaScript

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 Unlock button to program directly in the "JavaScript" tab. As an alternative, you can import a JavaScript file using the Browse button.
  5. Click the Apply button to apply the JavaScript.
  6. Then, save the block by clicking the Save Block button.
  7. In the "Save as Block" dialog box, enter the name of the block, and make the settings for the block categorization (Image 02).

Author

Ms. von Bloh provides technical support for our customers and is responsible for the development of the SHAPE‑THIN program as well as steel and aluminum structures.