Automatically Fit View upon Exit

My supervisor is demanding that I Fit View on all sheets upon exiting.  This is too tedious for the pace that I want to maintain while drafting.  

Can someone please help me understand how to Fit All automatically upon exit?

This question has been answered a couple of times in a few different ways, but none in a way I can understand.  I am 4 months into Microstation learning on the job with AutoCAD and 3DS Max education background.  I am new to editing the config files so you may need to point me in a couple of directions to answer my question.  I really appreciate the feedback.

  • Have a look at the article in AskInga:

    communities.bentley.com/.../run-a-vba-macro-when-opening-or-closing-design-files

    This vb allows you to run things like keyins on the close and open of a file. Easy enough to add the keyins to fit view to run on file close.

    HTH.



    Answer Verified By: Rich Baird 

  • Also, just in case you didn't know already, the key-in to fit view is: FIT VIEW EXTENDED.

    Cheers,

    Erik M.

  • This was great Bear! Great article. I am about half-way there. I can get it to automatically fit view for the sheet I am on when I close, but not the others. I will mess around with it. Any other input is appreciated. Thanks a bunch!

    -----------

    MicroStation V8i (SELECT series 3) - Version 08.11.09.459

    InRoads Suite V8i (SELECT series 2) - Version 08.11.07.428

  • Unknown said:
    This was great Bear! Great article. I am about half-way there. I can get it to automatically fit view for the sheet I am on when I close, but not the others. I will mess around with it. Any other input is appreciated. Thanks a bunch!

    The following  keyin will fit view extended  only the  active view, then saves your settings  and  closes the  drawing but does not exit microstation

    it leaves you in the manager so you can now  open or browse to open and  other  file, I would suggest you sacrifice an unused easy to get to Function key  

    copy and  past the  next line  into the F key editor,  via workspace  function keys

    fit view extended;filedesign;close design

    F key customisation is one of the best things about mstn

    if you want  exit  then  create a shift & F key combo best to use  the same F key as before and add in the shft key

    So the  key in then to do as before but exit  is

    fit view extended;filedesign;exit

    I also use the control F and  control O to get in and  out  of files  but  if you want  to automate the  fitview options then the custom F key  is the easiest and  quickest  work flow, the  vba macro etc is just too much effort.. my  way press a button when you need it cant be easier than that and  its optional! 

    Lorys

    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 (8.11.09.919) dabbler CE  update 16 (10.16.00.80) 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me 

  • If there is NO way possible to FIT ALL to all sheets upon exit, then Bear's answer is what I needed. In sample code in the link that Bear provided, it gives you a VB macro that A. Fits all upon opening and B. Detaches references on closing. I had to learn how to apply VB code to Microstation. Once I had the code in, I simply made the "Detach references on closing" line a "comment" by putting an apostrophe ahead of it, thus disabling that part of the code. This is a great start for me for right now. I will continue to study this thread in the months ahead to try to do accomplish more.

    -----------

    MicroStation V8i (SELECT series 3) - Version 08.11.09.459

    InRoads Suite V8i (SELECT series 2) - Version 08.11.07.428