TuttoCAD Forum

TuttoCAD Forum
[ Home | Registrati | Discussioni Attive | Discussioni Recenti | Segnalibro | Msg privati | Sondaggi Attivi | Utenti | Album Fotografico | Download | | Cerca | FAQ ]
Nome Utente:
Password:
Salva Password
Password Dimenticata?

 Tutti i Forum
 1 - TuttoCAD Software
 AutoLISP
 Associative Textbox
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
I seguenti utenti stanno leggendo questo Forum Qui c'è:
Autore Discussione Precedente Discussione Discussione Successiva  

arri
Utente Master


Regione: Lombardia


14951 Messaggi

Inserito il - 02 maggio 2013 : 10:23:54  Mostra Profilo Invia a arri un Messaggio Privato  Rispondi Quotando
AssociativeTextboxV1-2.lsp

Program Description

This program enables the user to create an associative textbox surrounding a Text or MText object in the drawing. The size, position, orientation & rotation of the resulting textbox is automatically updated following modification to the associated Text or MText object.

The user may create an associative textbox by issuing the tbox command at the AutoCAD command-line. Upon calling the program, the user is prompted to specify an Offset Factor for the textbox, and indicate the shape of the textbox to be created.

The Offset Factor controls the dimensions of the textbox relative to the size of the associated annotation object and is a function of the text height. To provide an example, specifying an Offset Factor of 0.35 will result in a textbox which is offset from the text object by 0.35 multiplied by the text height of the object.

Upon entering a valid Offset Factor, the user may choose from three types of textbox: Circle, Rectangle or Slot. The circular textbox will have diameter equal to the length of the diagonal of the rectangular textbox. The Slot textbox will have dimensions equal to the rectangular textbox, however, the vertical edges (relative to the text object) will be semi-circular.

The program will remember the previously used settings for both the offset factor & textbox type, and these settings will be available as default options at both prompts throughout the active drawing session.

The user will then be prompted to select either a Text or MText object to enclose with the textbox. At this prompt the user will be notified if the selected Text or MText object already possesses an associative textbox.

Textbox associativity may be removed at any time using by issuing the rtbox (Remove Textbox) command at the AutoCAD command-line. When called, the user is prompted to select either a text or textbox object to remove the associativity between the pair. At this prompt the user also has the option to remove associativity from all textboxes in the drawing.

Note that this program will only remove the associative nature of the textbox - the user may subsequently delete the text or textbox object if required.
  Discussione Precedente Discussione Discussione Successiva  
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
Vai a:
TuttoCAD Forum © 2001-2010 CADLandia Torna all'inizio della Pagina
Pagina generata in 0,62 secondi.