hexagon logo

Replace auto-feature Circle ID's by script

Hi,

I would like to replace all of the autofeature CIRCLE ID's by a script. Currently, my ID's are named:

CIR1
CIR2
CIR3
...

I would like to change it to another index start number:

CIR2001
CIR2002
CIR2003

Would it be possible that I search all the ID's with the name CIR inside, and change it to a starting number I declare?

Thanks,
Mihael
Parents
  • CAREFUL with find/replace, especially if you use 'replace all' as it can put Pcdmis into a loop that you can only get out of by using TASK MANAGER and killing the process.

    For example, you want to replace CIR with CIR2, yeah, that will get stuck in a loop.

    proper preplanning and all that. I set my ID's to a specific length due to the way things are sorted by computers (which it looks like you are trying to change to)

    For example, if you have 11 "CIR" features, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 will get sorted by the computer as follows.
    CIR1
    CIR10
    CIR11
    CIR2
    CIR3
    etc.

    Yeah, watch out!
Reply
  • CAREFUL with find/replace, especially if you use 'replace all' as it can put Pcdmis into a loop that you can only get out of by using TASK MANAGER and killing the process.

    For example, you want to replace CIR with CIR2, yeah, that will get stuck in a loop.

    proper preplanning and all that. I set my ID's to a specific length due to the way things are sorted by computers (which it looks like you are trying to change to)

    For example, if you have 11 "CIR" features, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 will get sorted by the computer as follows.
    CIR1
    CIR10
    CIR11
    CIR2
    CIR3
    etc.

    Yeah, watch out!
Children
No Data