Jump to content
yrnomad

Find/Replace the level on Room/Door numbers

Recommended Posts

yrnomad

I have a project where the architect used a typical plan for floors 4-7. The equipment I provide will be different on each of these floors, so I'll need to cread correct room and door numbers for each floor.

I tried to use Find/Replace with wild cards, (I.E. U404 / U504), but a couple problems came up.

 

If I try just (4 / 5) I would have the U404 replaced with U505.

 

If I use a wild card. (U4## /U5##) I end up with # in my replaced number.

 

To complicate things, Unit numbers start with "U", Strairs start with "S" and other common areas have no letter as prefix.

 

The only compromise I can think of is to replace all the 4 with 5 then go back and manually edit the 4 or so per floor that change too much.

 

Anyone with other ideas?

Share this post


Link to post
Share on other sites
BIGAL

You need a find / replace text that takes into account a prefix, change 4 to 5 but ignore U4 at at start, not sure if Lee mac's replace has a prefix / suffix option.

 

I have nothing at hand you would get the text check prefix matches then search rest of string and change number.

 

Found a nice function for "U404" (setq newstr (vl-string-left-trim "U4" ans)) so this returns "04" then do a replace 4 with new number join the strings result "U405".

 

Need a sample dwg with some before after examples.

Edited by BIGAL

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×