PDA

View Full Version : Programming - Dynamic Block Visibility


pangus
2006-08-02, 10:31 AM
Is there a way to set the visibility setting of an existing dynamic block programmaticlly?

We have a titleblock with four offices, the address of each office is set as a different visibility setting inside the block.
What I want to achieve is to set the office address details across all drawings using lisp.
I know I could do this using layers of feilds back to the sheet set manager but I would like to explore this option.

I've had a look but not able to see a setting/varable on the object.

Paul Angus

Opie
2006-08-02, 02:57 PM
Have a look at what Mark Douglas has on his blog (http://mdouglas.blogs.com/in_the_dynamic_interface/2005/07/dynamic_lisp_co.html). I believe that is what you are looking for.

peter
2006-08-03, 02:25 PM
Try this example.

The drawing has a simple block "test" in this drawing with two visibility states.

Run the routine and it will flip the visibility off.

Peter

stephen.coff
2007-03-24, 10:03 AM
Guys,
I appreciated the efforts though I am not sure I understand either of these routines and what they are doing. Peter I couldn't see what your was doing at all and not meaning to offend anyone as i am sure it all me. A little thick at times.

I have attached a d/block and inside of it you will see it has many of visability states which make different blocks available. I am wanting to be able to select which block (visability state) is on when the block gets inserted via LISP.

Maybe these LISP routines do exactly that, i am just not seeing or understanding it. Could someone make it a little clear how I should be using these, pretty please.

regards

stephen