GDL Basics‎ > ‎

Editing default parameters

Editing object parameters is useful for several reasons:

  1. Removing unnecessary parameters as seen in “Saving an Element to GDL

  2. Changing default parameters of common objects to conform to template changes

  3. Add new parameters to make an element more flexible or versatile.


In this section we will look at the first, removing any unnecessary parameters.


Step 1: Open the object (keyboard shortcut Com + Opt + O), with the element selected go to File > Objects and Libraries > Open Object. From here the details tab should look familiar from first saving the object.

FIG. 2.1a Open the Object


FIG. 2.1b Details Tab of the GDL Window


Step 2: Select the Parameters tab at the left column. Select any line whose name was defined as “NA” in the saving process and click delete at the top of the window.

FIG. 2.1 Parameters Tab of the GDL Window


Step 3: Check the 2d and 3d script to verify no elements were using those parameters to define their scripts. The script calls to the Variable from the parameters tab, not the name. In the 2D and 3D tabs, simply click “Check Script” at the top of the window. When errors are found, use the find & select/replace command (Com + F, or Edit > Find & Replace...) to track down and replace all missing variables with an attribute variable that was not deleted. Continue until the “Check Script” command gives a “GDL script OK” message.


FIG. 2.3a Check 3d & 2d Scripts

FIG. 2.3b Find & Replace Incorrect Script with Correct Variable


FIG. 2.3c Repeat Until Script is OK.
Comments