home *** CD-ROM | disk | FTP | other *** search
- // Next available MSG number is 24
- // MODULE_ID BMAKE_DCL_
-
- // BMAKE.DCL Version 1.0
- //
- // (C) Copyright 1988-1995 by Autodesk, Inc.
- //
- // This program is copyrighted by Autodesk, Inc. and is licensed
- // to you under the following conditions. You may not distribute
- // or publish the source code of this program in any form. You
- // may incorporate this code in object form in derivative works
- // provided such derivative works are (i.) are designed and
- // intended to work solely with Autodesk, Inc. products, and
- // (ii.) contain Autodesk's copyright notice "(C) Copyright
- // 1988-1993 by Autodesk, Inc."
- //
- // AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
- // AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF MER-
- // CHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
- // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
- // UNINTERRUPTED OR ERROR FREE.
-
- // 28 Feb 1991
-
- //======================================================================
- // DESCRIPTION
- //
- // Programming example of defining blocks using (entmake) with a dialog
- // interface. Uses BMAKE.LSP/DCL.
- //======================================================================
-
- //dcl_settings : default_dcl_settings { audit_level = 3; }
-
- bmake : dialog {
- label = "Definici≤n de bloque";
- : paragraph {
- label = "Observaci≤n:";
- : text_part {
- label = " Se pretende usar esta aplicaci≤n como un"; }
- : text_part {
- label = " ejemplo de programaci≤n de AutoLISP y DCL. "; }
- : text_part {
- label = " "; }
- }
- : row {
- : edit_box {
- label = "&Nombre de bloque:";
- key = /*MSG0*/"bname";
- edit_width = 15;
- edit_limit = 31;
- }
- : toggle {
- label = "&S-NOMBRE ";
- key = /*MSG0*/"unnamed";
- }
- }
- spacer;
- : row {
- : boxed_column {
- label = "Punto base";
- : button {
- label = "&Designar punto <";
- key = /*MSG0*/"pick_pt";
- }
- : edit_box {
- label = "&X:";
- key = /*MSG0*/"x_pt";
- edit_width = 10;
- }
- : edit_box {
- label = "&Y:";
- key = /*MSG0*/"y_pt";
- edit_width = 10;
- }
- : edit_box {
- label = "&Z:";
- key = /*MSG0*/"z_pt";
- edit_width = 10;
- }
- }
- : column {
- spacer_1;
- : button {
- label = "Seleccionar &objetos <";
- key = /*MSG0*/"sel_objs";
- }
- : concatenation {
- : text_part {
- label = "N·mero encontrado: ";
- }
- : text_part {
- key = /*MSG0*/"how_many";
- width = 5;
- }
- }
- spacer;
- : button {
- label = "&Lista de nombres de bloque...";
- key = /*MSG0*/"list_blocks";
- }
- : toggle {
- label = "&Retener objetos";
- key = /*MSG0*/"retain";
- }
- }
- }
- spacer;
- spacer;
- ok_cancel_help_errtile;
- }
-
- bname_exists : dialog {
- label = "Advertencia";
- : paragraph {
- : text_part {
- label = "Ya existe un bloque con este nombre en el dibujo.";
- }
- : text_part {
- label = "┐Desea redefinirlo?";
- }
- }
- spacer_1;
- : row {
- fixed_width = true;
- alignment = centered;
- : button {
- label = "R&edefinir";
- key = /*MSG0*/"yes";
- width = 8;
- }
- : spacer {
- width = 2;
- }
- : default_button {
- label = "Cancelar";
- key = /*MSG0*/"no";
- width = 8;
- }
- }
- }
-
- list_blocks : dialog {
- label = "Nombres de bloque en este dibujo";
- : edit_box {
- label = "&Patr≤n:";
- key = /*MSG0*/"pattern";
- }
- : list_box {
- key = /*MSG0*/"bl_match";
- width = 32;
- multiple_select = true;
- allow_accept = true;
- }
- spacer;
- ok_only;
- }
-
-
-
-
-
-