+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Senior Member yrnomad's Avatar
    Computer Details
    yrnomad's Computer Details
    Operating System:
    Windows 10 - 64 bit
    HP Z220
    Intel core I7 3.4GHz
    16 GB
    nVidia GeForce 9600 GT w/dual monitor output
    Primary Storage:
    1 tb SATA
    (2) 22" Acer LCD
    yrnomad's Discipline Details
    Drafting/Design Electrical contractor's shop
    AutoCAD 2017
    Join Date
    Aug 2007
    Vancouver, WA - USA

    Default Find/Replace the level on Room/Door numbers

    Registered forum members do not see this ad.

    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?

  2. #2
    Quantum Mechanic BIGAL's Avatar
    Civil 3D 2016
    Join Date
    Dec 2005


    Registered forum members do not see this ad.

    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.
    Last edited by BIGAL; 10th Jan 2018 at 10:34 am.
    A man who never made mistakes never made anything

Similar Threads

  1. Replies: 6
    Last Post: 13th Jul 2011, 02:19 pm
  2. Find and delete odd numbers
    By SWfangirl in forum AutoLISP, Visual LISP & DCL
    Replies: 14
    Last Post: 29th Apr 2011, 06:00 pm
  3. Updating Door Call Out Numbers
    By Marc5 in forum AutoCAD General
    Replies: 0
    Last Post: 15th Sep 2010, 04:07 pm
  4. room names/numbers
    By runovryou in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 6
    Last Post: 25th Nov 2008, 12:07 am


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts