#PowerShell, #PowerWiseScripting, #ProjectWise, PWPS_DAB

How To: Update TitleBlocks with PowerShell

Be sure to check out my Scripting4Crypto initiative. It’s a fun way to get into using cryptocurrencies all while getting your PowerShell needs met.

There have been many requests asking for the ability to update titleblocks within MicroStation using PowerShell. The good news is that this can be accomplished. It simply requires you run the Enable-PWTitleBlockUpdate cmdlet which was added to the PWPS_DAB module in version 1.7.6.0.

Get-Help Enable-PWTitleBlockUpdate -Full

The Enable-PWTitleBlockUpdate cmdlet sets a few values within the registry to allow PowerShell to update the titleblocks.

Experiment with it and have fun.

Hopefully, you find this useful. Please let me know if you have any questions or comments.

5 thoughts on “How To: Update TitleBlocks with PowerShell”

  1. I did notice when PWPS_DAB is updating the title blocks it is spawning a new instance of MSTB.EXE for each DGN file but when I do the update manually it will spawn one instance of the EXE and then run all DGN files through it. This is skewing the times and making the automated TB update significantly slower than a similar manual process. I’m using PWPS_DAB 2.1.0.0

    Like

    1. Hey David,
      Thanks for visiting my blog. I hope you find it useful.

      Regarding the titleblock update, I would post something to the Bentley Communities page. This will let the developers of the PWPS_DAB module know there may be an issue with the cmdlet you are using. I no longer work for Bentley and therefore am no longer developing the tool.

      Cheers,
      Brian

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.