Dynamic Blocks Change Visibility State

Dynamic Blocks Change Visibility State

Anonymous
Not applicable
1,975 Views
5 Replies
Message 1 of 6

Dynamic Blocks Change Visibility State

Anonymous
Not applicable

I'm a newbie at using AutoCAD so apologies if the question is redundant.

 

I'm using AutoCAD LT so my understanding is I can't use LISP to solve this - I've seen a lot of posts out there using LISP. I hope this can be achieved via a macro.

 

Is there a way I can change the default visibility state of a dynamic block via a macro / commands? My understanding is that I have to move the view state at the top of the list. -BVSTATE command only allows one to create NEW, SET or DELETE. The Visibility States dialog box does have the MOVE UP / DOWN option.

 

Your help would be greatly appreciated.

 

 

0 Likes
Accepted solutions (1)
1,976 Views
5 Replies
Replies (5)
Message 2 of 6

norman.yuan
Mentor
Mentor

Since you use AutoCAD LT, your question is beyond the discussion of this forum: AutoCAD LT cannot be customized/controlled by VB/VBA.

 

With that said, are you saying in AutoCAD LT, you cannot set a Visibility state at top of Visibility state list in block editor (I never used AutoCAD LT)? If so, you might try to find a full AutoCAD somewhere and open the block in its block editor and set Visitility state list in desired order and save the block. Even you have full AutoCAD, set the visibility state list in desired order is much better than trying to write code to just set a state at the top of list: you need to load and execute each time when that block is used.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 3 of 6

Anonymous
Not applicable

Thanks norman.yuan,

 

Apologies for posting in the wrong section of the forum.

 

The problem that I have is I want to insert a predefined series of dynamic blocs. Each block has multiple visibility states. I was aiming to create a macro that would just pick up from the keyboard the visibility state of each block to be inserted. After trolling the internet the conclusion I arrived to is that I would be able to do that by changing the default view state of the blocks to be inserted.

0 Likes
Message 4 of 6

norman.yuan
Mentor
Mentor
Accepted solution

OK, you did sound like need a programming solution to set Visibility state based on user input (choosing a keyword), be it is VBA macro, or LISP, or other. Unfortunately, it is not possible when you are using AutoCAD LT. You need full AutoCAD.

Norman Yuan

Drive CAD With Code

EESignature

0 Likes
Message 5 of 6

Anonymous
Not applicable

Now I know what I need.

 

Thank you for your response.

0 Likes
Message 6 of 6

g.garzaTWU6P
Explorer
Explorer

need a programming solution to set Visibility state based on user input (choosing a keyword) or from an excel sheet?

could you help, please?

0 Likes