I have two levels with following names and numbers
Level Name - Number
=====================
Roads - 4
4 - 318
Main aim is to use keyin to rename Level 4 to Text, like this.
Text - 318
When i keyin LEVEL SET NAME 4 TEXT, the level "Roads" with level number 4 is renamed to "TEXT". like this:
Text - 4
I tried using quotes LEVEL SET NAME "4" TEXT, but does not work.
I cannot rename using level number 318 because this varies from file to file (I have bunch of files to process). Any suggestions how to rename levels that have 'numbers' as names?
Thanks in advance
- Mohammed Ansari
The syntax for Level Rename key-in is
Level Set Name "OldLevelName" "NewLevelName"Level Set Name "A-1000-Text" "ABC_1000-Text"
Check Wiki Level Naming And Numbering
Level numbers are internal and the above Wiki explains how the levels are numbered.
Leonard Jones said:Level numbers are internal
Each level has a textual user-assigned name e.g. Level 1. Each level may have an optional user-assigned numeric code e.g. 1234. The code may be empty; the code may be zero; MicroStation doesn't care about it.
Each level name and its level code, if present, must be unique in a DGN file or DGNLib.
Internally, MicroStation assigns a unique 32-bit Level ID to each level in a DGN file. The Level ID is not visible to a user or administrator.
Regards, Jon Summers LA Solutions
Hi Leonard,
I did try that Syntax and its not working. I mentioned it. Try creating a level with name "4" and try to rename it using this syntax. It doesn't work.
Regards
Mohammed Ansari
Mohammed Ansari said:I did try that
Please post a sample DGN file that has numeric level names. The file doesn't need to contain any graphics, so you can delete any confidential data.
Use the Forum's Insert|Insert image/video/file menu to attach a DGN file while editing your post.
Hi Jon,
Appreciate your response.
I have uploaded the file.
Objective is to rename level named 4 to 'TEXT'
Also note that I am not able to rename the level 'named' 4, only when there is another level with 'number' 4.
If there is no level 'number' 4 then i am able to rename the level.
Its obvious that even though i specify 'level set NAME', it is acting on the number, if one is available.
Best regards