Author Topic: block insertion with attribute..  (Read 1708 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
block insertion with attribute..
« on: June 19, 2006, 05:13:21 PM »
Hi all,

I have a block with an attribute...
But i'm trying to insert this block and show an alert when the block is inserted..
I mean...after entering the attribute..

for the moment i have this.....

Code: [Select]
(command "_.-insert" CBF CBpick CBscale "" pause)


(if
  (while (eq (getvar "CMDACTIVE") 0))
  (alert "1")
)

But the alert comes BEFORE entering the attribute..

any idea how ?
Keep smile...

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: block insertion with attribute..
« Reply #1 on: June 19, 2006, 05:23:53 PM »
Like so?
Code: [Select]
  (setvar "attreq" 1)
  (setvar "attdia" 1)
  (setvar "cmdecho" 1)
(command "_.-insert" CBF CBpick CBscale "")
  (while (/= 0 (getvar "cmdactive"))
    (command pause)
    )
  (alert "Attributes are done....")

Andrea

  • Water Moccasin
  • Posts: 2372
Re: block insertion with attribute..
« Reply #2 on: June 19, 2006, 05:51:52 PM »
thanks Jeff....it work.. 8-)

I forgot the attreq variable.. ^-^
Keep smile...