PDA

View Full Version : Visibility State Control


Ant59
2009-07-07, 03:31 PM
Is there anyway to create a visibility state from a selection set in a dynamic block using LISP?

Please reply, TIA!

irneb
2009-07-08, 07:29 AM
Nope ... no way of creating or editing Dynamic Parameters / Actions inside a block definition through either Lisp or VBA (ActiveX). It may be possible with .NET though

Ant59
2009-07-08, 11:10 AM
Thanks for the reply, however I managed to get it working by myself using AutoCAD commands and LISP.

First I created a selection set and assigned it to a variable (setq). I then used (command "-bvstate" "n" "<nameofstate>" "h") to create a new state and hide everything on it.

I then used -bvshow to make visible the selection set I created earlier. This gave me a visibility state with only the selection set visible.

I then used -bvstate again, to show the first state so I could repeat the process for each of the styles I needed.