Autocomplete dialog box using Lisp (or custom button)

Autocomplete dialog box using Lisp (or custom button)

Anonymous
Not applicable
948 Views
1 Reply
Message 1 of 2

Autocomplete dialog box using Lisp (or custom button)

Anonymous
Not applicable

A little background first...

 

During my day-to-day tasks at work, I make a TON of grid files and all of them are modeled the same, contain the same cell dimensions, and always cover the same location. The only thing that changes from grid to grid is the file name.

 

The command I'm using is a Carlson Command called "Make 3D Grid File". Below are the prompts for this command:

 

-------------------------------------------------------------------------------------------

Prompts

Grid File to Create File Selection Dialog
Enter a name for the grid file.
Use position from another file or pick grid position [<Pick>/File]?
Pick Lower Left grid corner <8111.88,3985.08>:
pick a point for the lower left limit of the grid
Pick Upper Right grid corner <8366.88,4195.08>: pick a point
Make Grid File dialog box
In this dialog, you specify the grid resolution and whether or not to include data points with zero elevations. You can specify the resolution by entering the number of grid cells in the X and Y directions. By the Dimensions option, you to set the X and Y size for each grid cell.
Reading points ...
Select points, lines, polylines and faces to grid from.
Select objects: Specify opposite corner: 1075 found
Select objects:

-------------------------------------------------------------------------------------------

 

Attached is the dialog box that appears during the "Make Grid File dialog box" step. In this dialog box, the ONLY thing that I ever change is the cell dimensions at the bottom of the menu. And every time I change them, I always set X and Y to 25. NOTE... Those numbers are never "25" when the dialog box first appears. I have to change them every single time, even if I call the command again immediately after using it.

 

So, my question is... Is there a way to write something in LISP so that when the box pops up, it automatically inputs "25" for X and Y and then clicks "ok"?

0 Likes
949 Views
1 Reply
Reply (1)
Message 2 of 2

SeeMSixty7
Advisor
Advisor

If the Carlson command you are using is a LISP file then you could probably just bypass the dialog box and set the variables it sets from the dialog box directly and then run the results.

 

If it is a protected app then you may be able to see if the developer has a way to set presets for it.

 

Good luck

0 Likes