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
4 - 318
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.
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.
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.
Regards, Jon Summers LA Solutions
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.
Just checked in Connect Powerdraft CE10 in one of my own files: I created a level called 4 with No. 318. Then used key-in LEVEL SET NAME "4" "Text" and it got renamed to Text, no problems, output as desired. Maybe you forgot to put Text in ""?
It works if 4 is the only level in the file. Try create 5 more levels with any names. MS is going to internally number then 1 to 5. Then try renaming 4.
Mohammed Ansari said:I have uploaded the file
It's not visible in this thread!
There are about 250 levels in my drawing with internal numbers... still no problem renaming. There must be an internal No. 4 because I can't renumber (not rename) another new level to "4".