Replace one block content with another block at same location

Replace one block content with another block at same location

Anonymous
Not applicable
4,316 Views
6 Replies
Message 1 of 7

Replace one block content with another block at same location

Anonymous
Not applicable

Hi, here is the small description of the help I need..... I have one block (Say block  A) which contain a table in it, but the quality of that drawing is not good so now what I am doing is I am creating new Table drawing in another .dwg file & creating new block (Say block B)...... now I want to copy the block B content into block A using block editor...... this I can do it manually.... Also  using BLOCKREPLACE the position of block A will change as inside the block editor the drawings are not at the same location................If someone can help me with LISP or VBA script it will be so helpful......  

0 Likes
Accepted solutions (2)
4,317 Views
6 Replies
Replies (6)
Message 2 of 7

RobDraw
Mentor
Mentor

You shouldn't need to resort to code for this simple exercise. If this were something that was needed on a regular basis, then maybe it could be automated.

 

It sounds like you may be struggling with the relationship of the origin and/or the insertion point and the entities within these blocks. If that is so, post the two blocks and someone will suggest a good workflow for you.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Message 3 of 7

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

Can you share the two drawing files? I am happy to show you in a video how you can redefine the existing block with another one.

 

I would keep the new version the same name and use a simple block substitution. You can also use Design Center to browse to the new block and redefine the existing.

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
Message 4 of 7

Anonymous
Not applicable

Hi, Thank you for your reply.... Right now I am using my Tab to reply so not able to send the cad files..... I am sorry for that.... If you could please take any two blocks for an example & send it to me I will really appreciate it..... I am really looking for some script as these replacement I need to do a lot time..... Thanks for understanding...............

0 Likes
Message 5 of 7

john.vellek
Alumni
Alumni
Accepted solution

Hi @vranjanikar,

 

I made a quick video that shows how to use Design Center to redefine a block using a block with the same name from a different drawing file.

 

 

 

If you want more of a commandline approach that you could script or create an Action Macro, I also show how -Insert, blockname=blockname can do this too.

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.

 

 


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 6 of 7

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

Did the video I produced for you help to understand how the block substitution might work for you?

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 7 of 7

Joe.Gio
Advocate
Advocate
Accepted solution

Use 'Cntrl+2' to open Design Centre, go to the folder where you're new block is. Expand on that until you get to the 'Blocks' folder and you can see the new block. Right click on it an use 'Redefine Only'. After type in ATTSYNC and select the new block. This will synchronise you're attributes with the new block so it all lines up.

0 Likes