Attribute Dialog Box

Attribute Dialog Box

Anonymous
Not applicable
700 Views
5 Replies
Message 1 of 6

Attribute Dialog Box

Anonymous
Not applicable

Is it possible to turn on/off the attribute dialog box by block?  In other words when I build the block can I set a variable that turns the pop window off for one block and on in another?  I want to be able to insert one block and have the dialog box pop up and insert another block that the box does not pop up.

0 Likes
701 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable

Not that I know of....the dialog box appearing or not depends on the system variable ATTDIA.

 

 

Area Object Link | Attribute Modifier | Dwg Setup |Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store

0 Likes
Message 3 of 6

cadffm
Consultant
Consultant
0 Likes
Message 4 of 6

imadHabash
Mentor
Mentor

Hi,

>> Is it possible to turn on/off the attribute dialog box by block?

NO you can not . 🙂

 

 

Imad Habash

EESignature

0 Likes
Message 5 of 6

cadffm
Consultant
Consultant

Looks like a translation problem,

Acad can, Imad can't

 

😆

 

Sebastian

Message 6 of 6

Moshe-A
Mentor
Mentor

@Anonymous  hi,

 

here is a lisp command (RNI) to do what you want. it's data list is built from the following dotted pair items:

the number in the dotted pair is the value of attdia to be before insert

 

(setq blockData^ '(("blk101" . 0) ("blk102" . 1) ("blk103" . 0) ("blk104" . 1))

 

replace each "blnnn" with your blocks

 

enjoy

moshe

 

 

 

; Robert Noha Insert

(defun c:RNI (/ insert_block ; local function
	        blockData^ blkName savAttdia)

 (defun insert_block ()
  (if (setq item (assoc blkName blockData^))
   (setvar "attdia" (cdr item))
  )
  (command-s "insert" blkName) 
 ); insert_block

  
 ; here start c:RNI
 (setq blockData^ '(("blk101" . 0) ("blk102" . 1) ("blk103" . 0) ("blk104" . 1)))

 (if (/= (setq blkName (getstring "\nEnter block name: ")) "")
  (progn
   (setq savAttdia (getvar "attdia"))
   
   (cond
    ((tblsearch "block" blkName)
     (insert_block)
    ); case 
    ((findfile (strcat blkName ".dwg"))
     (insert_block)
    ); case
    ( t
     (vlr-beep-reaction) 
     (prompt (strcat "\nblock " (strcase blkName) " is not found."))
    )
   ); cond

   (setvar "attdia" savAttdia) 
  ); progn
 ); if

 (princ)  
)

 

 

0 Likes