Author Topic: How to enter Dynamic Block definition ?  (Read 1457 times)

0 Members and 1 Guest are viewing this topic.

Coder

  • Swamp Rat
  • Posts: 827
How to enter Dynamic Block definition ?
« on: December 19, 2011, 05:32:44 AM »
Hello everybody .

I just have noticed that I could not enter the Dynamic Block definition the same way like normal blocks , is there any way to do that ?

I used to use this code to enter block definition ..

Code: [Select]
(vlax-for blok (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
   ......
     .....
       .....
 

Many thanks . :-)

Coder

  • Swamp Rat
  • Posts: 827
Re: How to enter Dynamic Block definition ?
« Reply #1 on: December 19, 2011, 07:33:03 AM »
I noticed that it can change the color of dynamic blocks definitions only , which means I have to insert the dynamic block to see the changes .

Thanks

pBe

  • Bull Frog
  • Posts: 402
Re: How to enter Dynamic Block definition ?
« Reply #2 on: December 19, 2011, 08:21:33 AM »
I still dont get it   :?

vla-get-EffectiveName???

Coder

  • Swamp Rat
  • Posts: 827
Re: How to enter Dynamic Block definition ?
« Reply #3 on: December 19, 2011, 10:53:33 AM »
Hi ,

I am trying to change the block's entity's color to specific color , but the attributes not changing in normal blocks and in Dynamic Blocks

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: How to enter Dynamic Block definition ?
« Reply #4 on: December 19, 2011, 01:23:32 PM »
Use AttSync after modifying the ATTDEF entities within the Block Definition.

Or, modify the ATTRIB entities within each INSERT - but remember that any call to AttSync will revert these changes.