Using the hash character (#) in configuration files and command line files

This has been posted on behalf of a Be Communities member

In the Batch Proccessor, if the command file contains "#" character then the remaining line is dismissed. Althought in template command file it says that lines are ignored only if hash character is first.

 

  • The command file template states "Lines that start with the '#' character are treated as comments and ignored". It does not contain the word "Only".

    Anything to the right of the hash character (#) is not processed. So if the hash character (#) is at the beginning of a line, the entire line (everything to the right) does not get processed. If the hash character (#) is in the middle of the line, the beginning of the line up to the hash character (#) will be processed and everything after (to the right) of the hash character (#) does not get processed.

    Answer Verified By: Rick Ruth 

  • Unknown said:
    Anything to the right of the hash character (#) is not processed. So if the hash character (#) is at the beginning of a line, the entire line (everything to the right) does not get processed. If the hash character (#) is in the middle of the line, the beginning of the line up to the hash character (#) will be processed and everything after (to the right) of the hash character (#) does not get processed.

    As far as I am aware it has been that way at least since v7. I have config files that have # symbols in the middle of lines to denote definitions for what is on each line.

    Microstation CONNECT - 10.17.2.61

    ORD - 2021 R1 10.10.1.3

    ORD 2022 R1.1 - 10.11.3.2

    ORD 2022 R3 -  10.12.2.4

    Microstation v8i SS 10 - 08.11.09.919

    Power InRoads v8i - 08.11.09.615

    ProjectWise - 10.0.3.453

  • So the v7 is still a gold standard ignoring that much has changed and there is no longer only 63 levels.

    We have some level names containing hash character so it is not possible to do batch processing with level names and it is not invalid character.

    "Level name cannot have one or more of the following invalid characters - <>\/."?*|,='&"

  • We have some level names containing hash character so it is not possible to do batch processing with level names

    That merits a new thread: "How do I batch process DGN files that contain levels that have the hash (#) character in the level name?"

     
    Regards, Jon Summers
    LA Solutions

  • Not really, created another service ticket.