Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make bloks via VBA

Status
Not open for further replies.

spown

Electrical
May 28, 2005
9
Hi,
I want to make bloks with several attributes. I use Bloks.add() metod and it's work but evry new block that I create is added in the same block collection. When marking one of them they have all marked.
I'm doing the same thing with autolisp routine. Inserting block via autocad command end it's work fine. But via VBA does not work.
Please heilp me!

 
Replies continue below

Recommended for you

Are you giving each new block a unique name? Make sure any references to a block object in your routine is set to nothing before creating a new block.

"Everybody is ignorant, only on different subjects." — Will Rogers
 
NO. I use ThisDrawing.Blocks.Add(insertionPoint,"Eltablo") evry time.
 
With the way you are doing it, you are redefining the block definition each time you do something to this named block. If you want to add different blocks in the drawing, you will have to name them uniquely when they are added.

"Everybody is ignorant, only on different subjects." — Will Rogers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor