Is there a Named Expression to check for a specific sheet name?

I am looking for info for a Named Expression that determines if a certain Sheet model exists. For example, "BorderSheet"

Or if this isn't possible how about a Named Expression to determine if a specific TagSet exists in the file?

Thanks,

Regan

Parents Reply Children
  • Unknown said:
    Seems like this feature would have multiple applications including printing.

    Why not just use print organizer?  It will find all your sheet models for printing.

  • Hi Regan,

    Unknown said:
    I wonder why they don't have an expression that checks the active file for a sheet model?

    In my opinion your question makes no sense if formulated this way and is not constructive at all. If you think there is a valuable reason why such Named Expression should be added to MicroStation, provide some workflow or a description of situation (scenario) how it would be used. I am quite curious how you would like to use such Name Expression (my assumption is it would be something like DoesSheetExistInActiveFile(string sheetName) returning true/false).

    I guess Named Expressions are treated to be designed to work with current session information, not with anything existing elsewhere. This seems to me more like general concept, not technical limitation. And it's possible to create own Symbol Provider with own Named Expressions.

    With regards,

      Jan

  • The scenario I am trying to solve is as follows. We are finally getting around to utilizing sheets and adding tags to track the title block information within projectwise. I would like to be able to check if a sheet is already present and if "true" hide the buttons that import new sheets into the dgn in order to avoid having two sheets with tags in the dgn and causing confusion for the users.
  • Well if you are using sheet models just put a hide/show test on the task/button to check if the active model is a sheet. Then if it is False it will hide the buttons in a all models other than a sheet model.

    If you are using ProjectWise and title block integration, wouldn't you see if you had title block data in the sheet file, because it would auto populate the tag set with the information from PW? If that is the case then where would the confusion come from?

    Thanks,

    Gerald Piotrowski

  • We have created a series of buttons located in the task bar that import the desired sheet size to aid in the adaptation of the sheet space environment. We have hundreds of thousands of files and we needed a method that made the process as quick as possible.

    The issue we are trying to address is how to prevent multiple sheets with tags from being imported into the same DGN? The importing is going to happen while we are in the default model so searching active model for sheet is not going to get us there. I also don't want to use config variables to drive this because there is a chance that paper sizes will change and I need the test that checks for existing sheet spaces to be more dynamic.

    Granted there might be a better way of approaching all of this, but this is what we have landed on as an organization. So for the time being the question I have is it possible to check the entire file to determine if either a sheet exists or maybe even a tag set?

    Thanks for all the replys!