Share your favourite F key Scripts with Fellow V8i users

Lets all post our favourite  F key scripts or ones that  we developed and use alot here are some of my  favourite  combos

If you use dimension element then run and your text and arrows fall out side the leaders then I run F6  before placement  or if  I want  the arrows reversed on the fly

I then use the shft F6 and can toggle  between them... note the only  difference is a , 2 and ,1

This combo saves a lot of time and lets me dimension on the fly....

F6 - mdl load calculat;calculator mdlDimStyle_setIntegerProp(dgnDimStyle_getActiveFromModelRef(0),2,716)

Sht F 6- mdl load calculat;calculator mdlDimStyle_setIntegerProp(dgnDimStyle_getActiveFromModelRef(0),1,716)


Fix display depth , this is a great fixer for 3d  when you sometimes cant figure out why  zooming in causes objects to disappear and reappear its often the active depth is outside the display depth range

dd=-10000,10000;dx=,,;reset


This is both a favourite F key and a tip

you just got told you have to add a Raster or and extra reference attachment to a competed set of plans..

Go to the  ref file on the network and use explorer to create shortcut, then  edit the shortcut to get the full file path which will include the quotation marks, copy to clipboard and delete the short cut,

Go to a vacant F key and  put RF= then paste the  full path from the clipboard eg RF="X:\xrefs\survey.dgn"

if you add ,,, at the end it does world coincident , unnested  ( look up references and  keyins for more options in the help file

you now can  open each drawing and press  the F key and it will attach the ref file you still need to tell it interactive mode ( you could even set that but I like the flexibility) and you are then able to clip boundary .. if we put this into the batch processor I cant  figure the  clipping  automation so its not really worth the batch mode)


Deselect the power selection set very handy as mine gets stuck and escape doesnt do it... so this is another Favorite  F key..

powerselector deselect


Paste from the  clip board with an F key is quicker and  less mouse movement  and even works with the  Ninja point (see askinga how to do this)  very nicely almost as good as our acad friends use the copy paste by insertion point...sets the active scale to 1, the active angle to 0 and pastes the content of the clipboard hanging off the end of the cursor or relative to the ninja point object...

as=1;aa=0;clipboard paste


Last but not least one of my most used

Place my North point cell at true north no matter what the view rotation happens to be  with out unrotating the view... the following is all on one line when you copy paste it into your F key of choice.

MDL silent LOAD DGNSET;as=1;ac=mynorthpoint;aa=0;accudraw dialog;accudraw setorigin;accudraw rotate top;%d;accudraw rotate view;accudraw quit;reset

Where I have ac=mynorthpoint; you need to replace this with your own northpoint cell and if your cell lib is not pathed by your config file you'll need to path it 

like AC="X:\ourcells\map.cel\mynorthpoint"    I like the quote marks just incase of spaces etc in the paths...

ok now your turn guys...

  • Had this on F1 for as long as I can remember:
    filedesign

    Toggling construction elements:
    set construct toggle;selview all;update all

    Quick way to use fence stretch:
    place fence;%d;%d;fence stretch;%d;%d;place fence;null;beep

    I prefer a smaller Accudraw compass so I have:
    accudraw settings size (number-default is 40)20



  • My most used F key key-ins are:
    levelmanager level offbyelem (turn off levels by selecting elements)
    choose previous (re-select the previous selection set)
    fit view extended;place fence allfiles;selview 1;print (opens print dialog to print everything visible on view 1)

    Key-in that I have on a mouse button but could be on F keys:
    choose element;powerselector single;powerselector deselect;powerselector mode add;inputmanager home (starts powerselector in single/add mode and deselects previous selection - I prefer this to new mode)

    I like to use accudraw shortcuts but focus is not always there so I use this (can do on F-key or other):
    accudraw dialog
  • e,dialog cmdbrowse;k,XY=#,#, and enter what Z-value you want the element to end up on.
    (a bit tricky click-sequence - but very useful)


    expand set MS_THUMBNAIL = Preview;save view Preview;selview 5;filedesign you can change 5 to any view number
    sets what is shown in the preview.


    vset view
    Best of all - select some elements, hit the f-key, dp in any view > only selected elements are displayed.

    Select another element in another view that is not shown in the 'filtered' view, hit the same! f-key and dp > the element is added in the filtered view.

    Select a element and hit the f-key and change Tool Settings to REMOVE and dp the filtered view > the element is not displayed.

    Hit the f-key with no elements selected and dp a filtered view- all elements are displayed.

    All with one f-key.

    NOT saved so it doesn't mess with you next time you open the file.

    regards / Thomas Voghera

  • Unknown said:

    Quick way to use fence stretch:
    place fence;%d;%d;fence stretch;%d;%d;place fence;null;beep

    thats definitely finding its way on my keyboard! great keyin...

    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 

  • Unknown said:
    e,dialog cmdbrowse;k,XY=#,#, and enter what Z-value you want the element to end up on.
    (a bit tricky click-sequence - but very useful)
     

    This works better for me when I delete the   #,#,   and just  leave

    e,dialog cmdbrowse;k,XY=

    as you have to delete or overwrite the #,#,  anyway... ( and we always use commas between cartesian coordinates right?)

    Unknown said:

    vset view
    Best of all - select some elements, hit the f-key, dp in any view > only selected elements are displayed.

    Select another element in another view that is not shown in the 'filtered' view, hit the same! f-key and dp > the element is added in the filtered view.

    Select a element and hit the f-key and change Tool Settings to REMOVE and dp the filtered view > the element is not displayed.

    Hit the f-key with no elements selected and dp a filtered view- all elements are displayed.

    All with one f-key.

    NOT saved so it doesn't mess with you next time you open the file.

    This is very cool cant wait to start playing with it....

    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