×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to separate bloks?

How to separate bloks?

How to separate bloks?

(OP)
I use VBA to create block with attributes, but Autocad Map 2000 mixed new one with old one. What can I do?

RE: How to separate bloks?

Could you redescribe what is happening?

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: How to separate bloks?

(OP)
I create block with
Set blockTablo = ThisDrawing.Blocks.Add(insertPoint, blockName)
 Then I add attributes.
Set blockTabloAttrib = blockTablo.AddAttribute(0.15, mode, "òðàôîïîñò", blockPoint, "ÒÏ", attrTrafopost)
 All of source is working fine until now. The new block gets a part of old one. And the attributes are mixed. The value of attributes are written in cyrillic.

RE: How to separate bloks?

When you do this, I think you are redefining the BlockReference in the drawing. Are you inserting a block that is already in the drawing? If you are, and you try to add an attribute, you are redefining the Block Object. Being a database (AutoCAD that is), it will redefine the entry the way Autodesk programmed it to. When you add the block, could you give the block its own unique name? That will allow it to be defined differently from existing blocks. I hope I am making sense.

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: How to separate bloks?

(OP)
i give the block name using the following source
    ObjectCount = ThisDrawing.Blocks.count
    blockName = "ELTABLO_" + Str(ObjectCount + 1)
end it was worked.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources