×
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

Replace block with attributes, VB

Replace block with attributes, VB

Replace block with attributes, VB

(OP)
Help !
Problem: I want to replace a block (OldTitleblock) that have attribute (OldTagValue), with another (NewTitleblock) and transfer the attribute to NewTagValue. The OldTitleblock have Tag which value shall be transfered to another Tag in the NewTitleblock.
I think it should be easy done with a VB code.
Can anyone help?

RE: Replace block with attributes, VB

Hi,

I now that it is posible in vba, but there already exist a lisp routine called attredef.lsp that will do the job. This is how it works:

1 - insert (exploded) your newly created block outside the drawing

2 - start with at or attredef and select the attributes you needed

3 - select the new block

that's it

You also can use blockreplace found in the \support\vba directory, but I have no experience with it.

regards.

RE: Replace block with attributes, VB

(OP)
Thanks vlhijlke!

Actually I made it by combining some vba-samples and specialize them to my needs. I can update four named old titleblocks to our newest.
I've worked a little with vba, but never got into lisp, thats why I prefer vba.

Regards
Claus

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