Switching between blocks by name

Switching between blocks by name

merd94
Contributor Contributor
1,324 Views
6 Replies
Message 1 of 7

Switching between blocks by name

merd94
Contributor
Contributor

Hi, does anyone knnow hot to switch between blocks by name.

For example i've created two blocks, block 'a' and 'b', after inserting 10 blocks of 'a' i need to replace only three of them to block 'b'. Any suggestions?

Replace block in express tools doesnt work, it replaces all of them. However i need to change selected only. 

0 Likes
Accepted solutions (1)
1,325 Views
6 Replies
Replies (6)
Message 2 of 7

imadHabash
Mentor
Mentor

Hi,

 

in general blocks replacement will not serve your issue . i don't exactly how is your case look like BUT as you describe that you want to replace just 3 of blocks to another kind block and this is mean ( some how ) that you have a same base point. i think the fastest way is just to copy block B over block A then erase unwanted ones. you may have different case than the one that i imagine it ... please if you want to share with us your case you can attache a screencast or the CAD file itself to see how it could be done .

 

Regards.

Imad Habash

EESignature

0 Likes
Message 3 of 7

MikeKovacik4928
Advisor
Advisor
Accepted solution

The issue of replacing only selected instances of blocks, can be solved with

this little lisp routine which I got off someone on this forum previously.

Only problem is you have to enter in name of replacement  block by typing in rather than

selection. Then you can choose by selecting, and the blocks you choose, will be replaced.

Appload the routine, and the type BRS to run

 

See attached

 

Michael Kovacik
2d & 3d Autocad and Inventor designer/draughtsman
.
Draughting/Designing (Manufacturing) (31 yrs)
-Drawing Board (3 yrs)
--Cad (28 yrs)
---Cadkey (4 yrs)
---AutoCAD 2d & 3d (16 yrs)
---Inventor (4 yrs)
---Autocad and Inventor Simultaneously (4 years)
---(and recently Autocad/Inventor Customisation)
.
Autodesk Product Design Suite Ultimate 2018
Autocad 2018, Inventor Pro 2018
(personal licensed copy)
.
Johannesburg, South Africa
.
(Impossible only means you haven't
found the solution yet)

Message 4 of 7

StephenThomasGrace
Advocate
Advocate

You can use the clipboard and express tools for this little trick

select all the blocks you want to keep and copy with basepoint, 0,0..

Then delete them.

Now use the express tools replace block.

That will fix all the remaining blocks

Then clipboard > paste to original coordinates to retrieve your original blocks.

 

The clipboard allows you do all sorts of stunts like this.

-steve

Message 5 of 7

merd94
Contributor
Contributor

Thanks, that exactly what i wanted

0 Likes
Message 6 of 7

MikeKovacik4928
Advisor
Advisor

Glad I could help.

 

 

Mike

0 Likes
Message 7 of 7

MikeKovacik4928
Advisor
Advisor

Steve

 

That is a good work around.

It is what I also used to do, until I got hold of the lisp.

the lisp is a lot quicker and less painful!

 

Mike

0 Likes