Anthony's MicroStation Tips
Get more out of your MicroStation.
Intensify Pty.Ltd.
Anthony's MicroStation Tips

This is a single, long, simple text formatted page containing a collection of tips and general knowledge gained over the eighteen years or so that Anthony has been using MicroStation. The newer tips are at the top of each section with the older tips at the bottom.

Instead of being in separate shorter subject based pages, it is in one long page to make searching easier. Besides, categorising the tips is often hard as they cut across categories.


Please note that these tips date back over many years and individual pieces of information may not apply to later releases of MicroStation.  Please let me know if there are any updates that you think should be made.

 

General Drawing

Ø The default behaviour out of the box in MicroStation XM for panning on screen is to hit and hold the mouse wheel button while dragging. This operation is not compatible with the middle button of the mouse being assigned to the Tentative Point. Bentley’s thinking is with that AccuSnap working so well the Tentative Button is hardly needed anymore, and with the drag panning being just so easy, that it would be preferable to change the middle button operation.

If your system has the Tentative Point set to the Middle button and you want to change it back to the new default behaviour:
o    Workspace > Button Assignments.
o   Hit Remap Buttons.
o   Set XButton 1 to be the Middle Button and hit OK.
o   In the list ensure XButton 1 is set to "pan drag". OK.

Ø  Elements that cannot be selected on screen are often referred to as Phantom elements. This happens because of an error where MicroStation thinks that the element is bigger than it actually displays on screen. If you think you have a phantom element, try using Element Selector with Method set to Block Overlap. If this fails, then zoom out a long way and try again.

o   To check out how big MicroStation thinks your element is key-in "set range toggle;update all". This will turn on what is called the Range Block for each element in your file. The Range Block is a rectangle surrounding an element: usually it sits nice and tight around the element, but bad range blocks can display many times larger than the element it bounds. Use the same key-in a second time to display off the range blocks.

o   You can attempt to reset this range block to the proper size with a utility called Fixrange. Enter "mdl l fixrange" at the key-in prompt. If MicroStation/Powerdraft cannot find it, search your network or the internet for fixrange.ma and try again. Fixrange has no other key-ins: it runs its check and fix routine automatically and then unloads itself when complete. This application is pretty successful, but not always. Elements that started their lives as Archicad elements and were then translated to DWG and then to DGN can present range issues that can be quite stubborn.

Ø  A recent problem arose where we had a project begun on Archicad that was converted via DWG to 2d MicroStation. In the sheet files the drawing title labels came through as shared cells that contained tags instead of text elements and the range blocks for all these labels were very large. This made selecting elements very problematic. The Fixrange application did not solve the problem. Dropping the shared cells meant that the tag text was lost. As the cells were shared, we could not practically edit them all.

The solution was to;

o   Use the key-in "set range toggle;update all" to display the range blocks. This allowed us to see where the problems were.

o   Select all instances of the errant shared cell labels.

o   Key-in "change tags droptext" and data to the screen. This changed all the tag elements to text elements.

o   Ensure all the labels are still all selected.

o   Call the Drop Element command and check off all options except Shared Cells. Set its option to Normal Cell. Data to screen. This should then reset all the range blocks to the correct size.

Ø  There is now an almost built-in utility to change text case in MicroStation. Try “vba run [textexamples] changecase” and  dialog box should open. If not, you may have to search for a .mvba file. By default it is located in ...\Workspace\System\Vba\examples\textexamples.mvba. 

Ø  In XM when an element is deleted from the screen, any elements previously obscured by this element are immediately refreshed, unlike in previous versions where you were required to update the view to see the elements underneath. To revert to a behaviour similar to the pre XM versions use the keyin: "set healing on | off | toggle".

Ø  Hold down the Shift and Control keys to temporarily suspend AccuSnap. Or, if AccuSnap is disabled then this option will temporarily enable it.

Ø  If you are sick of inadvertantly deleting raster references because they have been selected, then use the following keyin:

o   raster disabledelselection seton | setoff

o   This will prevent the raster from being selected and therefore prevent deletion. This is not a file based command but would appear to be a user preference setting.

Ø  You cannot use the Change Element Attributes command to change the colour | style | weight of associative pattern elements. Instead, from the Patterns toolbox, select the Change Pattern command and check on Attributes. Now you can identify and change the appearance of the pattern elements.

Ø  To have MicroStation update your current dgn file with multi-line definitions from your defined dgnlib file, use the keyin "mlinestyle dgnlibupdate".

Ø  In 8.5 on a twin screen setup MicroStation will always open cell selector file dialogs on the primary screen.

Ø  In XM the Tab key allows you to cycle through identified elements occupying the same screen space.

Ø  When modifying elements by dragging the edit handles, tap (down and up) the Alt key to enter a different modification mode.

Ø  When selecting objects and having the handles showing, you can make a Secondary Selection by clicking on a handle. Additional Secondary Selections can be made by holding down the Ctrl key.

Ø  Element selection handles only appear on elements in the active file.

Ø  Unlike the DGNLIB UPDATE LEVELS command, there is currently no key-in to update line style definitions from a library file because the definition origin does not exist in the dgnlib file, it exists in the resource file. 

o   In a few cases, it has been necessary to remove all instances of the old definition, whether that be used in an existing element, a level Style attribute, a Dimension Style setting, etc.  Once all instances of the old definition are removed, you will have to run the Compress utility to Delete Unused Line Styles from the file.  After the old definition is removed, you can then go back and set all previous instances of that line style to the new definition.

o   The ability to "read" a line style from the dgnlib was implemented to support AutoCAD line types, more than for MicroStation line styles.  Many users work in both formats and require access to the AutoCAD line types.  Importing the definitions into every dwg or dgn file directly from the .lin file was a step they wanted to avoid. But again, should the definition be altered, the embedded line type definition will still take priority over the new one, and to update the user will have to remove all instances, compress, then reimport.

Ø  If you have the occasion to copy individual or groups of elements from a reference file to the same location in the active file, then your methodology may be: Select Element, hit Copy command, Datapoint in space to define start point, second Datapoint to the same spot to define finish point, clear Selection.

o   An option to consider might be to use the Change Element Attributes command with the Method set to Change and all other options set off except for Class (assuming that you are not changing Class) and Make Copy. A single Datapoint to the referenced element will copy it to your active file in the same position.

o   If you usually operate with all the options in this dialog set On, then setting them all off might be too much trouble. Alternatively then you could set the Method to Match/Change and set Make Copy to On and this time hit two Datapoints to the desired element. The first datapoint matches the element and the second changes it and this time copies it through from the reference to the active.

Ø  The Compress function does not work on dgnlib files.

Ø  If you have no elements in your design file except for Multi-line styles defined (but not placed), then the levels used in the definitions of the components of the multi-lines will show not bold in the Level Manager dialog box. Indeed you can delete these levels with Level Manager. But be aware that when you do those level assignments will be stripped from your Multi-line definitions. You will be left with Multi-line components set to the Default level. To be safe it might be a good idea to keep an instance of each multi-line visible in your file. This way the levels won't be unused - and in addition the multi-lines won't be unused either (remembering that there is also a Delete Unused Multi-line option for the Compress command that may inadvertantly be checked on one day.) No one likes disasters.

Ø  To rotate a text element from an unknown angle to be square to the screen - if you are in a rotated view:

1, Select the element.

2, Hit the Rotate Element tool.

3, Change the Method to 3 Points.

4, Snap to the text justification point as the pivot point for the rotation.

5, AccuDraw will now have the focus: enter R E to call the Rotate to Element shortcut.

6, Move the cursor towards the other end of the text element and see the AccuDraw compass align itself with the element rotation.

7, Datapoint to accept that angle for AccuDraw.

8, Hit a second datapoint at that rotation to accept the angle at the start point for the Rotate command.

9, Hit the AccuDraw shortcut of V for View to rotate the AccuDraw compass back to being square to the screen.

10, Move your cursor back down and allow it to key into the horizontal axis.

11, Datapoint to accept the end of the rotation.

Ø  To rotate a text element from an unknown angle to be square to the screen - if you are in an unrotated view:

1, Select the element.

2, Hit the Element Information tool.

3, Expand the Geometry section.

4, Click in the Angle field

5, Enter 0.

Ø  In crowded situations where AccuSnap is hunting around for something to snap to, remember that it searches according to the update sequence. So if you have a building grid line in line with a brick wall line then AccuSnap may go for the grid line as you probably drew that before you created the wall line. If you are wanting it to snap first to the brick wall lines then consider using Bring to Front on the grid lines. Yes, they will then sit on top of the brick wall, but they appear in the file after the wall lines. Other methods to affect the snapping priority include using element or level priority or even the reference update sequence.

Ø  MicroStation XM introduced new interface options. The old Main Tool Frame can be replaced by any of three options. They are set by each user and controlled in their User Preferences dialog under the Task Navigation category.

o   Set Presentation to Toolbox to have the new smaller Main toolbox on the left and the new Task Navigation toolbox on the right. (Although you can move them to any desired location.)

o   Set Presentation to Dialog to have the Tasks displayed as a large horizontal tabbed dialog docked at the left.

o   Set Presentation to In Views to have the Tasks replace the usual View Ribbon one each displayed view.

Ø  Using the positional keyboard mapping in MicroStation XM is a great way to help speed up command selection. For example: 31 for Copy, 38 for Fence Stretch, 57 for Smart Match, Q1 for Smartline, A3 for Edit Text. Another great tip to keep in mind is that the command currently shown on the Main and Task Navigation tools (which may not be the default tool for that position, but is actually the last used tool) can be selected in one hit instead of two, by hitting <Shift> and the first positional keyboard mapping digit: eg. <Shift>3 will give you Copy (or whatever Manipulation tool is showing at that position.

Ø  In XM if you have "Identify Elements Automatically" checked on in Settings > Snaps > AccuSnap, then you can use <Alt><Data> to an element to match its attributes. This is an alternative to hitting SmartMatch and then identifying an element.

The keyin for this command is MATCH ATTRIBUTES FROMCURSOR. Note that this command does not seem to match the Priority or Transparency of the element. A better option is to use MATCH ELEMENT FROMCURSOR.

Ø  Elements drawn with Transparency set to a value other than 0 will be drawn on top of elements with no transparency.

Ø  If you have a level that you know has elements on it but it will not display, then look in the Level Display dialog. If it lists but is greyed out then Global Freeze has probably been set for the level. To fix this:

o   Make any other level the Active Level (by double clicking on another on in the list)

o   Go to the View Display option button at the top of the dialog and change it to Global Freeze.

o   Display On the affected level.

o   Change Global Freeze back to Level Display.

o   Voila!

Ø  In XM hitting Alt + Data on an element should perform a SmartMatch (match attributes fromcursor). But sometimes it seems not to do it. The documentation indicates you should be in the Home mode, but that does not always do it. What seems to work is to be in a drawing command and not in a view command. In other words, if you have just done a Fit View command then it not work, but if you have just hit Place Smartline then it probably will.

Ø  Using File > Compress with the "Delete Unused Text Styles" option checked may not allow you to select Text Styles sourced from your dgnlib in future. In other words, don't Compress with "Delete Unused Text Styles" as you may not be able to select the text styles not already in your file. This is a known issue with child text styles that will hopefully be addressed soon.

o   An option to try is to set MS_COMPRESS_OPTIONS = -TEXTSTYLES. This however will not prevent the user from turning it back on.

o   This issue has been resolved in V8i by the removal of child text styles.

Ø  When using Rotate by 3 Points, AccuSnap will not snap to elements on Locked Levels. You can get around this by issuing a normal Tentative Point which will snap to locked level elements.

Ø  Hatch and Patterning.

o   When you hatch/pattern an area the elements defining the boundary can be in one or more reference files.

o   If the elements are in reference files and you use Associative Patterning, then a new element will be created in your active file to define the boundary of the patterning. This element will not be linked or associated in to the original elements in the reference files.

If the elements in the reference files are modified then the pattern will be out of date in your master file. You will need to hit Change Pattern, method Reflood to update the pattern. Note that if additional elements have been introduced within the bounding area, then the pattern element may get confused and may not update correctly. You may need to delete it and recreate the pattern.

o   If the elements to be patterned are in reference files and you use Associative Region Boundary, then patterning elements will be created in your master file and will be associated to those elements in the reference files. If those elements are modified, then the next time you visit the master file, then the patterning will automatically update.

o   However, if additional elements have been introduced into the patterning definition area, then you will need to use Change Pattern, method Reflood to update the pattern. As this is easy to do, it is not a great disadvantage.

o   If you use Create Region, method Flood, with Keep Original and Associative Region Boundary checked and you create the region based on elements in reference files (or a combination of the master file plus any number of reference files) then the region will automatically update with any changes to the bounding elements.

However, if additional elements have been introduced into the patterning definition area, then you cannot update the region. You will have to delete it and recreate it again. As this is easy to do, it is not a great disadvantage.

Ø  One method to quickly determine which file an element on screen belongs to is to hit the Copy command and then hover your cursor over the elements on screen. If AccuSnap is active this will display a Tool Tip containing information about the element.

Ø  Sometimes you may have the situation where you are trying to edit level names or descriptions in the Level Manager dialog box while in your dgnlib file, but you are getting the "Cannot change description of a library level" message. If this file is in your dgnlib list path, then MS sometimes does not let you edit it. One solution is to export the levels to a .csv file, edit the names there and then reimport them back into the dgnlib file. Alternatively you could exit MicroStation and restart with an Out Of The Box setup or via a dummy user who has MS_DGNLIBLIST defined to be nothing.

Ø  When placing a Shape (or similar closed element) the keyin to ensure it is unfilled is SET FILL OFF.

o   The keyin to set it to Opaque is ACTIVE FILL ON.

o   The keyin to set it to Outlined and to set the fill colour is ACTIVE FILLCOLOR <NUMBER>.

o   To set the fill mode back to Opaque is ACTIVE FILL ON again.

Ø  If element priority seems to be playing up check the following:

o   Reference Priority, Level Priority, Element Priority, Pen Table Priority.

o   The priority for Priority displays is Reference, Level and then Element.

o   If all of your reference files have the same priority, then it will look to Level priority to determine display order. If all Levels are of the same priority, then it will look to individual elements for priority settings. Well it is supposed to, but sometimes does not seem to be doing this.

o   Within references, also check out the slot order of your references and possibly the defined update sequence as these all affect display order. In addition, printing with Rasterised checked on will affect priority. And then of course there is Level Symbology overrides Pen Table priorities that can affect display. I'm not actually sure how this all works yet as I am getting inconsistent results.

o   Remember also that priority only works in 2d.

Ø  Element and Level Priority is affected by the Priority item in pen tables. Pen table priority was used pre XM to order elements at plot time. This can now be done with element and level priority. Just remember to check off the Priority item in the pen table sections.

Ø  Level priority takes precedence over element priority. This means that if you have an element with priority of 20 on a level that has priority of -50, then the element will display with -50 priority.

o   It also means that if you have elements on this level with 400, 300 and 200 priority, and on another level (that has 0 priority) is an element with 100 priority, then the 100 priority element will display on top, and then the other three elements will display underneath - but in the 400/300/200 order.

Ø  To place an arc tangentially from the end of an existing line, choose Method: Start, Mid, End. Set the Snap Lock (temporarily) to Tangent Point and snap to the end of the line. Now pull away. AccuDraw should appear to help you place the arc.

Ø  When using Batch Process to change the attributes of elements in multiple models or multiple dgn files, as well as setting the appropriate commands in the batch process script file you also need to ensure that the Change Element Extended command's Tool Setting dialog box has the desired items checked or unchecked - and that Save Settings has been hit for each file to be processed.

Ø  Use the linestyle editor dialog box to import linestyles to a dgnlib.

o   Use DELETE UNUSED LINESTYLES [name] to remove linestyles from a dgnlib.

Ø  In XM you can Match an element's symbology quickly by hitting Alt and clicking on the element. This can be quicker than using the Match or SmartMatch command. Just be sure that: your focus is on Home and you do not have Selector, a View command or a Fence command active. This leaves you with the probability that you are in an action command (such as Place Line or Delete), but just be sure that the action command is one that is appropriate for the element you are trying to hit on. In other words, don't try to Match a Feature Based Solid with the standard Modify command. So by the time you have sorted all this out, it just might be quicker to hit 57 which is the new shortcut to get to SmartMatch.

Ø  When using the Level Display dialog to turn on and off the level that contains multi-line fill, note that the display of the fill is not immediate. Unlike other elements that will immediately display or disappear as you make selections in the Level Display dialog, the fill of a multi-line will only display correctly after you call the Update View command.

Ø  If a multi-line is filled then the fill goes on the level of the multi-line element. It cannot be assigned a level in the same way that the components of the multi-line are.

o   Therefore if you would like to be able to turn the fill of your multi-line on and off but to leave all the multi-line components on, you should place the multi-line element on a level that is not used by any of the components. In other words for example, if your multi-line components are on levels Brickwork and Cavity, then set your active level to be WallFill before you place the multi-line. This way the multi-line element and the fill is on WallFill but the components are still on Brickwork and Cavity. Now if you set your active level to be anything but WallFill, you will be able to turn the fill on and off but still be able to see the brickwork and the cavity.

Ø  If you have the ability to create levels disabled in your configuration file(s) with

o   _USTN_CAPABILITY > -CAPABILITY_LEVELS_CREATE

o   then you will not be able to create or delete levels.

o   This also means that if you Match on an element that is A) in a reference file and B) is on a level that does not exist in your active file, then your Active Level will be set to Default.

o   In addition, if you copy the elements from the reference file to your active file they will end up on the Default level.

Ø  In 2004 Edition, when saving V8 as V8 (with merge reference files [this fact may be irrelevant]), and from the Models button on the Filter tab if you select a non-default model only (ie not the default model), then the Default model will merge as well - if its name is not Default.

o   This new output file will therefore have two models in it. The source model you selected will now be the default model and the old default model has just come along for the ride and is now a non-default model. So it can be deleted.

o   If the Default model is named Default, then it will not be saved and the resultant new file will have only one model - the one you nominated, but named as it was in the source file.

Ø  To set snappable pattern on and off with a keyin, use the following:

o   mdl load calculat;calculator tcb->ext_locks.snappablePatterns=0  #'0 = off, 1 = on'

o   The Tool Settings dialog will not update immediately, but the value has changed.

Ø  To change the view display of a view via a keyin use:

o   "set view wireframe|hidden|filled|smooth|phong;selview <num>;update <num>"

Ø  When Associative Patterning has been used, the patterning elements are tied to the element being patterned. Changing the symbology of the patterning elements can not be done with the normal Change Element Attributes command. Instead use the Change Pattern command and check on the Attributes option.

Ø  To attach an entire folder of cell libraries to your design file, from the Cell LIbrary dialog, choose File > Attach Folder.

Ø  When using Positional Mapping in XM to drive the tasks and tools it is normally a two key operation: eg. A to select Text toolbar and then 3 to select Edit Text.

o   To select the tool showing in the task or toolbox in one hit, choose <Shift> + the mapping character.

o   In other words, if Edit Text is the tool showing in the Task Navigation toolbox, then to reactivate it instead of hitting A + 3 again, you could simply hit <shift>+A.

Ø  When you start a drawing command such as Place Smartline and you hit your start point and pull away, AccuDraw takes the focus. Positional Keyboard Mapping is also suspended (and the Focus icon changes to AccuDraw). To get Positional Mapping back again, hit Esc (and the Focus icon changes back to Home). Although I don't quite know why you would do this as all the commands under the positional mapping tools would cancel the Place Smartline command and call another command. It may work if you had changed things to have your viewing commands working with positional mapping, because then you can interrupt the drawing command to change something and the Reset back into the command. 

Ø  The V for View shortcut works well to reorientate the AccuDraw compass back to being square to the current view window. Consider using the B for Base rotation shortcut instead as this one allows you to rotate the AccuDraw compass back to the previous angle by hitting B again.

Ø  AccuDraw shortcuts:

o   To toggle AccuSnap hit J.

o   To suspend AccuSnap for one operation (note not one datapoint) hit U.

o   In XM this has now been changed to HS and HU respectively.

o   If you have Popset disabled and Tool Settings is open, then hitting ESC will take the focus from AccuDraw to Tool Settings. Another ESC will take the focus to the keyin dialog.

o   If you have Popset disabled and Tool Settings is closed, then hitting ESC will take the focus from AccuDraw straight to the keyin dialog.

o   If you have Popset enabled then hitting ESC will not move the focus from the AccuDraw dialog.

o   To move the focus from the AccuDraw dialog to the Tool Settings dialog - whether or not it is open, hit GT. If the Tool Settings dialog is not currently open, it will be opened at the position of your mouse cursor.

o   To move the focus from the AccuDraw dialog to the keyin dialog, hit GK.

Ø  When AutoCad sourced survey files are saved to DGN V8 format and measurements are taken, the results are often presented in metres instead of our preferred Millimetres. To change this readout to Millimetres:

o   From the main MicroStation menu, select Settings > Design File. The DGN File Settings dialog box opens.

o   Select the Working Units category from the bottom of the list.

o   Now change the Master Unit and Sub Unit items from Meters and Millimeters to Millimeters and Micrometers.

o   OK and File > Save Settings.

o   You may also wish to adjust the Coordinate Readout category further up the list. Files that had been set to measure in metres will usually have their coordinate readout set to 3 or 4 decimal places, whereas when we read in millimetres we don’t need that degree of accuracy.

o   Remember to Save Settings when done.

Ø  Saved Views can now be used to save the levels turned on/off in reference files as well as the active file. Just check on the Reference Settings checkbox in the Apply Options section of the Saved Views dialog box.

Ø  Attach a color table to your file with the following command:

o   CT=_USTN_SITE:TABLES\COLOR\color.tbl;FILEDESIGN

o   This can be plugged into the batch processor to run the command on an entire project.

Ø  For better transparency of raster references, try a black and white scan instead of a greyscale or colour scan.

Ø  Although Saved Views must be unique across models of a dgn file and ones created in one model will not list in the Saved View dialog box of another model, you can still access the saved view with the key-in VI=<ViewName>. You won't change models and go to the model of the source of the Saved View, but you will be taken to the design place space of the Saved View but in your current model.

Ø  Shift + Tentative brings up the Snaps list. Can call this in the middle of a drawing/manipulation command too.

Ø  Custom linestyles are affected by changes to Working Units. If you normally work in Millimetres working units and have your brick hatching custom linestyles etc. set up correctly, but you change your working units to Metres, then you will find that all your custom linestyles will have scaled up 1000 times.

o   This can be solved by keying in "active linestylescale .001".

Ø  From the Level Display dialog, the Change Level button (left side, near the top) opens a dialog that allows you to turn levels off, lock levels and to Set Target.

o   If you hit Set Target and then identify an element, the Taret Tree section of the Level Display dialog moves its focus to the file containing the level the identified element is on. It does not identify the level of the element you have identified, it simply opens the target tree at that reference file - or the active file. This command will show no effect on files with no references attached.

Ø  To place all elements from a Graphic Group into a Selection Set:

o   Set Graphic Group Lock On.

o   Choose PowerSelector, set Method to Individual and Mode to Add.

o   Data to one element of the Graphic Group.

Ø  Measure the area of a number of closed shapes in one hit by selecting them all first and then calling the Measure Area command. Remember that it is going to be in square millimetres format.

Ø  To place a line at a bearing

o   Go to Settings > Design File > Coordinate Readout > Angles > Mode > Bearing. (This is a saveable setting.)

o   When placing a line with AccuDraw, to the Angle field  key in "n45e" or as desired.

Ø  When running SelectBy from key-ins - ie. usually in a batch process text file - check the following rules and syntax:

o   SELECTBY LEVEL XXXX, YYYY, ZZZZ; SELECTBY EXECUTE

o   SELECTBY LEVEL ALL; SELECTBY EXECUTE

o   SELECTBY LEVEL NONE; SELECTBY TYPE NONE; SELECTBY EXECUTE

o   List levels by number -  SELECTBY LEVEL 2,4,7,9

o   Range(s) of levels - SELECTBY LEVEL 2-4

o   SELECTBY LEVEL 2-4,9-15

o   Level and level group names -  SELECTBY LEVEL plumbing

o   The levels section should be cleared before using the key-ins so that no existing selections are included. You can do this with the SELECTBY TYPE NONE key-in.

o   Another option to consider is to manually set up Select By Attributes and execute a selection set once, then run batch process. Note that you must execute a selection - it is not good enough to make the choices in the Select By dialog.

Ø  When placing a line perpendicular from an existing element you can use the Perp or Perp Point snap options. Be aware that these snap points only seem to work with the Place SmartLine command and not with the basic Place Line command.

Ø  When your Graphic Group Lock is On, if you select an element that is part of a Graphic Group with the Element Selection tool, then that element only will be added to the selection set. Whereas if you select an element that is part of a Graphic Group with PowerSelector, then all element in the graphic group will be added to the selection set.

Ø  To get MicroStation to report the total area of a number of shapes in one hit, select them all and call the Measure Area button. But be aware of duplicate elements within your selection as this will lead to incorrect results.

Ø  When using  Batch  Converter, the Save As  V7/V8 Options allows you to specify for references to Copy Levels During Merge:

o   If Not Found - merges all elements onto one set of named levels.

o   If Overrides Exist and Always - means bring the elements from each reference on its own set of newly created levels named for the now-detached reference file.

o   Using the first option, all levels are usually displayed at the end of the process, where as the second two options finish the process with the levels turned on/off according to the source view.

o   If you wanted to delete the elements on the displayed off levels you could:

·         Make an empty level active.

·         Use the Level Display dialog to invert the level display seletction.

·         Select all the visible elements and delete them.

Ø  With the Selection tool you need to click and drag completely around desired elements to select them.  If you use the Shift key while dragging, it will work in overlap mode instead of inside mode.

Ø  To place all elements from a Graphic Group into a Selection Set:

o   Set Graphic Group Lock On.

o   Choose PowerSelector, set Method to Individual and Mode to Add.

o   Data to one element of the Graphic Group.

Ø  Measure the area of a number of closed shapes in one hit by selecting them all first and then calling the Measure Area command. Remember that it is going to be in square millimetres format.

Ø  To reselect your just dropped selection set, key in Choose Previous.

Ø  If you have a Complex Chain or a Complex Shape element that contains only line elements - ie no arcs - then you can convert that complex element to a Line String or to a Shape (as appropriate).

o   Use the Modify Element command and set the "Smartline Modifications" to "Minimize number of linear elements" and then do a quick nothing modification on the element.

Ø  To help repair element range issues, the following may help. From the system prompt:

o   <path>ustation -vrg <filename> to verify and repair a file.

o   <path>ustation -verify <filename> to verify only.

Ø  Right click in the blank space near the top of the Level Display dialog to get access to its Properties.

Ø  Select Workspace > Preference > Input > Allow ESC key to stop current command. In addition to its stated function, this will allow the escape key will traverse tookboxes until the keyin dialog has the focus (AccuDraw > Tool Settings > Keyin). Shift + ESC will reverse this direction.

Ø  Linestyles can be imported to a dgn from a rsc file via the linestyle editor dialog. But it does not appear they can be modified from here. Nor does the act of drawing in a linestyle result in it being copied from the rsc to the dgn (In other words, if you view the file without the symbology var defined, then the line will appear as lc=0). If you've got all your linestyles copied to a dgn and you then draw with a few of them, and then view the dgn without the symbology var set, then you will see the linestyles. But then your consultant could then easily export your linestyles to a rsc file. Setting a dgn file with all your linestyles within cannot be used as a dgnliblist file.

Ø  To drop an ellipse into x number of equal length facets (the straight lengths of the facets to be equal, not the length around the curve), use the Drop B-Spline tool and set it to Lines, Equal Chord Length.

Ø  When working in DWG files, the magic level for the ref boundary shapes so they don't get plotted is "Defpoints".

Ø  If a dialog box has become stuck up under the top of your MicroStation application window and you can't get it back out, an alternative to the Bentley Logo > Cascade All trick is to hit Shift + Data on anywhere on the dialog border to drag it back down. Data straight on the border of a dialog will normally resize it, but the Shift key turns it into a move command.

Ø  The easiest way to temporarily suspend AccuSnap is to hit and hold <Ctrl>+<shift>. This works in reverse on Place Fence for which AccuSnap is by default suspended.

Ø  Settings > Design File > Coordinate Readout > Azimuth

Ø  The ACTIVE LINESTYLESCALE key-in is used to set the global scale factor for custom line styles. The specified scale factor has the same effect as the Scale Factor setting in the Line Styles dialog box.

Ø  The CHANGE LINESTYLE SCALE key-in is used to scale an element's (custom) line style by a specific factor — for example, CHANGE LINESTYLE SCALE 2.0. The specified scale factor has the same effect as the Scale Factor setting in the Line Styles dialog box. If you do not specify a factor, a factor of 1.0 is assumed. Key in CHANGE LINESTYLE SCALE [scale_factor].

Ø  Global Freeze in a nutshell: If Global Freeze is on, it freezes the selected level(s). When a level is frozen, elements on the level are not displayed. And, typically if the levels are not displayed they are not plotted. Also, if a cell placed on the level has elements on other levels, none of the elements are displayed.

Ø  Highlight info in ref dialog - or models dialog - and Right-click+Copy. Open Excel and paste. Cool.

Ø  To get AccuSnap to work on fences: try shift & control keys during the fence snap

Ø  Hatching, Flood Method supports Selection Sets: put all the elements you want considered in the Flood Method in a Selection Set, and any element not in the Selection Set will seem invisible.

Ø  To allow MicroStation files with extensions other than .dgn appear as thumbnails in the MM dialog:

Ø  To save a backup to the directory you are in, key-in BACKUP. The file will be saved with .bak.

o   To save a backup to the directory you are in with a different extension, key-in BACKUP .ABC (for example) and the file will be saved with a .abc.

o   To save to a specific name and directory, key-in BACKUP C:\MYDIRECTORY\THISNAME.XXX

o   To save backups to a specific directory, set the variable MS_BACKUP = C:\TEMP etc.

o   To save backups with a non-default extension by settng the varable MS_BACKUP = .ABC and then BACKUP will save files to your current directory with the .abc extension.

o   You don't appear to be able to define a new directory and a new extension together. It looks like you can do one or the other.

Ø  match level fromcursor: Use with Accusnap on, with an element highlighted under the cursor, call from function key and it sets the level to that of the highlighted element.

Ø  When placing multi-lines with association lock on, in order to ensure there is an association between two kissing multi-lines, be sure to snap to the centre line of the existing multi-line and not to its end cap.

Ø  We now don't have to do wset add; wset drop to bring elements to the front. Simply select them and hit Edit > Bring to Front.

Ø  When entering feet an inches distances into MicroStation, you now dont have to enter 1:2 for 1 foot 2 inches, you can simply enter 1;2 which saves using the Shift key. Also try 1'2.

Ø  When a command prompts to select a view, you can use the keyin, xy=,,,3, the fourth coordinate being the view number.

Ø  When you use Associative Patterning an instance of the pattern cell is stored in your dgn file as a shared cell - whether or not you have Use Shared Cells checked in your Cell Library dialog box. If you edit the design of the pattern cell in the cell library you will not be able to update pattern elements of that cell in dgn files to reflect the new design until you:

o   Attach the library containing the pattern cell.

o   Check on the Use Shared Cells box.

o   Place an instance of the cell in the dgn file. (The old design will be placed.)

o   Uncheck Use Shared Cells.

o   Use Replace Cell to update the cell to the new design.

o   Now delete this cell.

o   Update the screen and existing pattern elements should update to the new design.

Ø  Good idea for function key:

o   "active angle pt2;%d;%d;rotate original"

o   Sets active angle pt2 and then calls rotate command.

Ø  Good idea for function key:

o   "copy element;xy=0;xy=0;change element extended;xy=0;choose none;xy=0"

o   This will copy selected elements, change them to actve symbology, then drop the selection set. Good for getting elements from reference file to active file and changing appearance.

Ø  Good idea for function key:

o   "copy element;xy=0;xy=0;choose none;xy=0"

o   This will copy selected elements then drop the selection set. Good for getting elements from reference file to active file.

Ø  When editing AutoCad files in DWG workmode, many MicroStaton settings are not saved. However, some can be saved by checking on Preserve MicroStaton Settings in the DWG Optons dialog accessed from MicroStation Manager.

Ø  TO GET AN arc tangent out of the end of a line,

o   Select Place Arc, Method = Edge, all other options Off.

o   Select Tangent Point lock and tentative + data to end of line and pull away.

 

Ø  To rotate your view to the current ACS, keyin the following (or add it to a function key):

o   rotate view points;ax=0,0,0;ax=10,0,0;ax=0,10,0;ad=0,0,0

o   TriForma has this on a button - but it would be good to extend it to rotating to the front/back/left/right views too.

Ø  Use AccuDraw to help with ACS work:

o   R+A and hit 3 points to define a drawing plane.

o   W+A to save this plane as an ACS - give a name.

o   G+A to recall this (or other) ACSs.

o   Rem to use R+, R+Y, R+Z when rotating the AccuDraw compass with an ACS.

Ø  If Windows Task Manager reports that the CPU is sitting at only 50% during a heavy process, such as rendering or hidden line removal: highlight ustation.exe in the Processes tab and right-click, Set Priority > High. This setting last for this MicroStation session only.

Ø  Save a click when using Extend Elements to Intersection: Instead of click on element to extend and then click on element to extend to, just click and hold on element to extend, then drag over to element to extend to then release. Presto.

Ø  If you would like a toolbox to be near the side of your screen but not to be docked, hold down the CTRL key as you move it around. This will prevent docking of the toolbox.

Ø  A good Dimension Driven Design (DDD) tutorial is located at http://selectservices.bentley.com/technotes/miscdocs/tut1.htm

Ø  Good Dimension Driven Design (DDD) examples can be seen at ...\Bentley\Workspace\projects\examples\generic\dgn\.

Ø  A quick way to add multiline text to a function key is to use the ascii newline character \10 in your text string. For example: "This is a two line\10text node element."

Ø  To change the direction of a custom linestyle, keyin: "change direction", data to the line and then confirmation datapoint near one end of the line.

Ø  If you have a levels file (*.lvl) for use on your project, remember that this information is stored within each and every design file and is not automatically loaded when you start MicroStation. Therefore, if a change is made to the levels file, you will have to manually load this into each and every one of your design files AND THEN HIT "SAVE SETTINGS"!!

Ø  Use the keyin dx=0|80 to speed up creating complex shapes when you have collections of adjascent but individual elements. Select Create Complex Shape and hit and accept the first element, then key in dx=0|80 or some other appropriate number.

Ø  Delete unwanted duplicate elements in your Microstation files with MDL L DELDUP.

Ø  The "Construct Points Along Element" command allows you to place a specific number of points (or characters or cells) along the length of an element. This command does not allow you to define the distance between each point, but rather it asks you for a start and an end point. Microstation then equally spaces your required number of points along the element.

o   If you wish to define the distance between points, for example to place a series of trees 10m apart along a path:

o   Firstly, measure the length of the element and do the math to determine the number of points (trees) you will get.

o   (eg. if the road is 85m long then you will get 9 trees along the element: one at the start and then one at each of the 10m intervals to 80m.)

o   Then set your lineweight to be really fat and use the "Construct Point @ Distance Along Element" command to place a single point at the finish position of the run.

o   (eg. set the "Distance" to be 80m and identify the start point of the element.)

o   Now select the "Construct Points Along Element" command, set the "Point Type", "Character" or "Cell" values as desired.

o   (eg. set the "Cell" to be your tree cell and set "Point Type" to be "Cell".)

o   Set the "Points" value to be the required number.

o   (eg. 9 trees: one at the start and then one at each of the 10m intervals to 80m.)

o   Identify the start of the element, then select your fat point as the end point. (Remember to delete the fat point when complete.)

Ø  To copy an element (or group of elements) a specific distance a certain number of times, use the AccuDraw shortcut "P" to open the "Data Point Keyin" dialog box. Select the "View Delta (dx=)" option, and keyin a|b, where "a" is the distance you wish to copy and "b" is the number of times you wish to copy. For example 100|5 will give five copies each set 100mm to the right.

Ø  Drag a .dgn file from Explorer and drop it into an open Microstation window to open that design file.
Drag one or more .dgn files from Explorer and drop it/them into the Reference Files dialog box to attach those files.

Ø  When copying elements in a Graphic Group from a reference file to your active file, you will need your Graphic Group lock switched ON to maintain the Graphic Group.

Ø  You can Lock and Unlock a group of elements in one hit by selecting them and choosing Edit->Lock or Edit->Unlock.

Ø  The Level Names from a design file can be saved to a .lvl text file. From the Level Names dialog box (Settings->Level->Names), choose File->Save. This text file can then be attached to other design files with File->Open from the Level Names dialog box.

Ø  Selections from the Settings Manager dialog box can be keyed in, therefore allowing them to be placed in pulldown menus. The syntax is ACTIVE SETTINS <COMPONENT_TYPE> <GROUP_NAME>:<COMPONENT_NAME>. For example to place a dimension called MYDIM from the group named MYGROUP, the keyin would be ACTIVE SETTINGS DIMENSION MYGROUP:MYDIM.

Ø  You cannot have the fill of an element on a different level to the element because the fill is an attribute of the shape and not an element of its own.

 

Modelling

Ø  Near the right hand end of the View Ribbon is the Clip Volume command. Like clipping a reference file, this command now allows you to clip the active file.

Ø  When moving objects around 3d space it is not always convenient to use AccuDraw (although it usually is!). When you do have to resort to the old key-in of Xy=x,y,z note that you can substitute # for a number in any of the three fields. This will preserve the current value of that field for the object being moved. For example, keying in xy=0,#,# will move the element to the 0 point on the X axis while preserving the current Y and Z values.

Ø  Be aware with extruding shapes to be Feature Solids that if you select a bunch of shapes and extrude in one hit, that the result will be one single feature solid that is made up of many separate 3d objects that may or may not touch each other. They cannot be disassociated, are not in a graphic group or a cell.

Ø  To convert Feature Solids to SmartSolids, select the elements and enter CONVERT PREP. (There is no way to change them back again, of course.)

Ø  When exporting a 3d file to hidden edges, and the output turns out to be b-splines instead of arc elements, try the Export Visible Edges dialog, General tab, Method change from MicroStation to Parasolids.

Ø  Try Place Free Form Surface to make a surface going through a number of defined points.

o   Try Catmull-Rom, Define Poles and Through Points methods.

o   You can use the standard Modify Element tool to modify the shape of these surfaces.

o   Try Modify Surfaces > Project Trim to cut a hole through a surface.

o   You now can't modify the element with Modify Element.

o   Try 3D Construct > Thicken To Solid to take this surface to a solid with a defined thickness.

o   You now can't modify the element with Modify Element.

o   You can use Cut Solid to remove portions of the solid.

o   Check out if there is a way to copy the surface 500mm down to simulate a thickness for now, but with the advantage that you can modify the element with Modify.

Ø  If when starting TriForma the following messages appear: 'Unable to create resource file for storage of dynamic menus', then TF is not able to write out the $(MS_TMP)tftmp[n].rsc file.

o   Check for writable priviledges on the $(MS_TMP) directory, and check that this directory exists.

Ø  In TriForma there is a tool in the "Display Drawing" toolbox called "Fit Element". If the "Exchange Design File" option is checked on this tool allows you to select an element and change to whatever reference file the element is in.

Ø  To get a Surface from Contours: Preselect your contours, then key-in "facet triangulate contours" to generate a Mesh Element.  Then, if you want the Mesh Element to render smoothly, hit it with the Facet Smoothing tool (key-in "render shape icon"). from NG

Ø  If you are using Construct Difference (Tools > 3D Main > 3D Modify) to remove the area above a Surface but instead the area below is being removed, try using Change Normal Direction (Tools > Surface Modeling > Modify Surfaces).

Ø  To extrude from one shape to another try Construct Skin Solid/Surface tool, in the Create Surfaces tool box, or the Skin Solid Feature tool in the Profile Feature Solids tool boxes.

Ø  To make a solid earth object - i.e. the block of land you are building the house on:

1. Use Place Slab (Tools > 3D Main > 3D Primitives) to make the base rectangular block - higher than the gound level.

2. Ensure contours are linestrings or construct your own site height linestrings. The extent of these need to be larger than the slab created above.

3. Use Construct Surface by Section or Network (Tools > Surface Modeling > Create Surfaces) to create the ground surface.

4. Use Construct Difference (Tools > 3D Main > 3D Modify) to remove the portion above the surface cut plane.

Ø  To display ACS coordinates in accudraw, Go to settings>Accudraw>coordinates Set Rotation:Auxiliary

Ø  When in TriForma and you have used the DEM to visit the extracted file, return to the model with the Navigation tool: TriForma > Tools > Display Control - Drawings > Navigation toolbox.

Ø  From View Control toolbox in a 3d file, use the Apply Clip Volume tool to identify a shape or solid that will define the area of a file to be displayed. This is good, but also check out display sets.

Ø  According to Bentley Select Support, there is no way to extend a line to where it kisses a Surface. You can only use the nearest b-spline points to get a close approximation.

Ø  For the TriForma extrusion of an extended parabolic curve problem: try changing some of the settings in the Preferences tab in the drawing extraction definition. Increase accuracy, turn off curve hiding etc.

Ø  When you dynamically rotate you views in 3D, do your objects quickly spin off the screen, instead of allowing you to spin around them? To solve this, hit a tentative+data point to a vertex of your object and you will spin around that point.

Ø  To perform a 3D datapoint:

o   Set your self up with two perpendicular views, usually a Top and a Front view.

o   Hold down the Alt key, data point at the desired location in the Top view.

o   With the Alt key still down, hit another data point in the Front view.

Ø  When using the 3D Modify SmartSolids tools, you may find that the rendered view does not modify. Microstation may have successfully made the modification but not updated the rendered view. Confirm this by checking a wireframe view. If the wireframe view looks like it should, try closing and reopening the rendered view. If that does not work, close and reopen the file.

 

Cells

Ø  When placing cells do you sometimes find that they do not display in dynamics but immediately appear when you hit the data point? If so, you may be placing cells with the Relative option checked on. The level(s) of a relative cell is taken from the current active level, however they do not display on this new level(s) until the data point is hit. When in dynamics they display in their true level(s) (the level(s) in which they were created). This means that if your cell was created on the Default level, then you should ensure that the Default level is displayed On when placing this cell with the Relative option checked on.

Ø  In the Cell Library dialog box you can get quick access to cell definitions. Highlight the target cell in the list, then right click and select "Open for Editing".

Ø  Shared cells in a dgn file can be captured and placed in a cell library. Use the keyin "export cells shared <new file name>"

Ø  Note when placing cells with Relative off: If an element in the cell is on a level that does not exist in the destination file, the level is copied through. However, any elements on the level Default will end up on the current Active Level.

o   Also, when placing cells with Relative on: cells with all elements on one level are placed on the current active level. But, cells with elements on multiple levels are placed on the active level and subsequent levels according to the level NUMBER (not Name!) of the other elements. This placement will not work at all if the level number is not an attribute of a level in the destination file.

o   There is no keyin to toggle on and off the Relative check box in the Place Cells dialog box. Neither is there any value in the tcb to change. Placing cells relative is an old concept and does not appear to be in widespread use today.

Ø  You may have some cells that are mostly placed on the one level, such as trees, but on occasions these cells may need to be placed on another level, such as existing trees or trees to be demolished. One solution is to duplicate the cell library and change all the cells to the new level (and colour/style/weight perhaps).

o   Another solution may be to have all the appropriate cells created with their colour (and possibly style and weight too) set to ByLevel. This way when placing the cells in the normal fashion they will be placed on their desired level. However, to have them placed with an alternate level and symbology, place the cells with the Relative option from the Place Cell Tool Settings dialog box checked on. This will place the cell on the currently active level and the symbology will adopt the ByLevel settings for that level, thereby changing the appearance of the cell. For example existing trees might be a different colour and demolished trees might be dotted too.

Ø  If you are defining cell selector files and you have elected to see the cell name on screen, then you may see the situation where the cell name is visible but not legible for numerous reasons.

o   Cell names in lowercase are hard to read as the portion below the line is not displayed. Fancy fonts can be hard to read too. Avoid this situation by setting the font to 127 in the Define Defaults dialog (From the Cell Selector dialog, choose Edit > Defaults) and then reload the cell library into the selector file. Font 127 is a single linework font in uppercase only.

o   While the current text size does not affect the size of the cell names displayed in the selector file, the text height and text width proportion does affect how the text is displayed. If you see tall and thin text or short and fat text in the cell selector file, then call the Place Text command, check out the Height and Width values and then set them to be equal.

Ø  When setting defaults to use when creating Cell Selector files (from the Cell Selector dialog hit Edit > Defaults), setting "Show" to "Cell Name" or to "Cell and Name" will produce selector files with the name of the cell displayed in the dialog. In that same dialog, specifying a "Font" that has upper and lower case will mean that cell name will display in the case as stored. Be aware that lower case cell names can be very hard to read in selector files. It can be better to use a font that has only uppercase, such as font 102.

Ø  If some squares in your Cell Selector file appear blank then it may be that the cell library needs to be compressed. We know that elements deleted from design files are not actually removed from the file until Compress is run; if a cell is removed from a cell library and a new one is created with the same name, then there are actually two cells in the library with the same name - albeit in different models. This appears to confuse the Cell Selector routines. Issuing the Compress command will remove the deleted cell from the file. If you then reload the cells into the Selector file, all should be well.

Ø  The Cell Library dialog box displays a list of cells in the currently attached cell library. An extended list of cells can be displayed in one of two ways: Firstly check on the Display All Cells in Path checkbox on the dialog. This will show the cells in all libraries in the your currently defined MS_CELL configuration variable. Secondly, from the menu on the Cell Library dialog box, select File > Attach Folder. This will display cells from all libraries in the nominated foleder - but not subfolders.

Ø  If you reload a cell library to re-populate the image squares of a cell selector file and all the images go blank, then the cell library is not being read correctly. Go to the cell library and compress the file. Be sure to check on all the appropriate compress options.

Ø  Even though you can place cells from anywhere in your Cell Library List, the Replace Cell commands only works on cell libraries in your cell path.

Ø  Graphic cells are placed in the symbology of the cell when it was created. Point cells are placed in the active level and symbology. When associative patterning is used, patterning goes on the level of the element being patterned.

Ø  The situation can develop in MicroStation where you have a normal cell X and a shared cell X in the same dgn file with different elements in them. Normal Cell X may be a door and Shared Cell X may be a north point. This is probably undesirable practice, but not an issue with MicroStation. However, AutoCad will not understand this at all. So use caution when you  save a file lilke this to DWG.

Ø  Remember that you cannot fill the enter data fields of Shared Cells. They need to be normal cells. If you have got a bunch of shared cells, then  highlight them and hit the Drop command and choose the settings Shared Cells > To Normal Cells.

Ø  AutoDesk has developed i-drop technology whereby you can drag stuff (cells/blocks, dwg/dgn) from the net to an i-drop aware application. A Select  Enhancement from Bentley now makes MS i-drop aware if you need it.

Ø  When cells are copied from a cell library, they use the closest RGB colour match.  You can force it to keep the same colour number by toggling off Workspace > Preferences > Reference > Remap Colors on Copy. It's under references because it applies to copying elements from a reference as well. (NG)

Ø  In a cell selector file, graphic cells are displayed as created, but point cells are displayed with the active linestyle. Therefore if you active linestyle happens to be a very complex style and you open a csf file with many complex cells, then your update time for that display may take many minutes.

 

References

 

Ø  The keyin to turn specific levels on or off in the active file is: OF|ON=TEXT <level name>;POINT ABS.

Ø  The keyin to turn levels on and off in a reference file is: REFERENCE LEVELS OF|ON <levelName> <ref logical name>;POINT ABS;CHOOSE NONE

Ø  If you open your Models and References dialog boxes at the same time, you can drag models from the Models dialog to the References list to create attachments in the current file.

Ø  If reference elements appear in incorrect symbology and/or report that the level of the element is level 0 or perhaps even blank, then you may have stumbled across an issue with 08.05.02.35 and level tables. It is difficult, but it can be fixed. To do so see the Bentley tech report locate at: http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+V8/08.05.02.xx+-+Technical+Bulletin.htm

Ø  When displaying raster references in 2d design files in XM we have the ability to set the raster in one of three planes: Foreground, Design and Background planes. As raster refs are now placed on levels, Level Priorities will come into play with rasters that are placed in the Design plane, however they are ignored for the Foreground and Background planes.

Ø  The Raster Manager dialog box does not permit manipulation on multiple rasters in one go - like you can do with the normal References dialog. There is a workaround where by if you use PowerSelector to select he desired rasters, then comeback and click and hold on the boundary of one of the rasters then drag to a new location you can get multiple rasters to move in one hit. Also, if you hold down <Ctrl> while doing this you can get copies of the rasters. There is still no way to scale/rotate/clip multiple rasters.

Ø  If using Reference Presentation "True Hidden Line" and the symbology of the presented Solid elements appears to be different to what you were expecting, then there may be a problem with the Solid element. There is a known issue where if you extrude a profile to create a Solid element and then subsequently change the level/symbology of the element to another setting. On these occasions, the Solid element may get confused about how it should display itself. Try recreating the Solid from the profile again, but this time set the profile to the correct level before performing the extrusion.

Ø  Keep the References dialog box tidy and easy to understand by deleting unnecessary References. If you have many references, then consider using sensible coded Logical Names and/or Descriptions and sort the list of References by the Logical Names column.

o   Remember that you can also now edit the reference slot number. This will affect how the references appear in the dialog box allowing you to group them. In addition, it will affect the display order on screen and when plotting.

o   Consider using Settings > Adjust Colours to help distinguish between active and Reference elements on screen. Try using the Hue Fixed For All Colors option.

o   Check out the different Settings > Highlight modes to see which one is preferable to you.

Ø  If you wish to change the file that is referenced for another one, (eg. SectionB.dgn > SectionC.dgn), then double-click on the attachment in the References dialog to open the Attachment Settings dialog box. In the File Name section, key-in the name of the different file, or hit Browse to go search for it.

o   Consider combining this procedure with Copy Reference in order to create an additional reference in your file. Eg. add a second floor plan to your sheet file by copying the ground floor plan reference attachment and then changing the attachment settings to look for the first floor instead. This is especially useful if you have spent time selecting which levels to display on/off in the first reference.

Ø  When you attach a reference and nothing appears on screen, remember to hit the Fit View button to see all elements displayed.

o   If this does not solve the problem, remember that design files can have multiple Models within the dgn. Double-click on the attachment in the References dialog to open the Attachment Settings dialog box and look for the Model option button and check to see if there is another model that you can choose.

o   If this does not solve the problem, remember that references will be initially attached with levels on/off as they are in that file. This means that if the last time you (or another team-member) were in that file and you hit Save Settings with all levels displayed off, then they will be displayed off here too. Use the Level Display dialog to check the display of levels and turn them on if necessary. (Remember that if you leave this file without hitting Save Settings yourself, then these levels will return to the previous setting.)

Ø  When you attach a reference file, use the Directory history menu on the Attach References dialog box. The top directory listed will always be your current directory. This can save time hunting down the desired folder.

Ø  When attaching a reference file, if once you have selected the file MicroStation immediately places the file without first showing you the Reference Attachment Settings dialog (to allow you to choose scale or Saved View etc.), then you will need to ensure on the Attach Reference dialog that the Attachment Method is set to Interactive. If set to the other methods, such as Coincident, then the file to attach will be immediately placed and displayed.

Ø  To modify reference clipping boundaries: set your Hilite mode on the References dialog box toolbar to Boundaries.

o   Select the desired reference in the list. It should then appear with the dotted boundary.

o   Select the dotted boundary and the four handles should appear.

o   Click and drag a handle to modify the clipping boundary.

o   Shift + click multiple handles then click + drage to modify the clipping boundary again.

Ø  The key-in RF=<filename> opens the Reference Attach dialog. However if your filename has spaces in it, you will need to enclose the name in "". eg. RF="FILENAME WITH SPACES.DGN"

Ø  You cannot edit the Reference Attachment of a reference displayed with True Hidden Line Presentation in order to change to another file. You will first need to change the Presentation back to Wireframe, then swap out to a different file, and then change the Presentation back to True Hidden Line.

Ø  In XM when using two references of the same element in order to show an outline with one ref (by using Hidden Line Presentation) and then the internals of the element with the other reference (by using Level Symbology to set the internal linework to thin and dotted), be sure that the reference slot number of the outline reference is lower than the number of the internals reference. If not the internals will not display.

Ø  In XM when using Reference Presentation of True Hidden Line, ensure that the Level Display and Level Symbology of that reference is set on/off as desired before you select the Presentation. Otherwise you may get undesirable levels and symbology displayed.

Ø  In XM, both raster references and dgn/dwg references can be selected like normal MicroStation elements. Whilst you may be able to move them around with the normal element manipulation commands, be aware that they do also respond silently to the Delete command!

Ø  Reference Presentation Hidden Line: In a sheet model, the Presentation menu has one additional option: True Hidden Line. Unlike the other reference presentation options, True Hidden Line generates a new vector model of the reference, with hidden lines removed. In the sheet model, a reference set to True Hidden Line looks similar to a reference set to Hidden Line. However, when you print the sheet model, a reference set to True Hidden Line will print as a true vector image. A reference set to any other presentation option (such as Hidden Line) will print as a raster image. But notice that when this happens, the visible elements seem to be now shown as being on the Default level and not their actual/original level(s).

Ø  Sometimes MicroStation will not reload a reference file because it thinks it does not need to. Get tough with the keyin REFERENCE RELOAD FORCE.

Ø  reference levels off all all ; selview all ; reference levels on spider all ; selview all

o   Will turn off all levels in all reference files on all views and then turn on the level name "spider" in all reference files in all views. The thing to watch out for, though, is that you don't name a level or reference "all". To overcome this you can use the wildcard "*". Your command could be re-written as: reference levels off * * ; selview all ; reference levels on spider * ; selview all

o   Wildcards can also be used for dgn names or logical names: reference levels on spider dog*.dgn ; selview all

o   Will turn on the level "spider" in all reference files starting with "dog" in all views.

o   reference levels on spider dog* ; selview all. This will turn on level "spider" for logical names starting with "dog" in all views. This can also be used in the same way for model names.

Ø  If you are using nesting of references it can be confusing to know which reference is important as it is being used in a sheet file and which reference is just a working file for your information. Consider devising a code for yourself to use as either the  attachment Logical Name or Description so you know that this particular reference is needed by a sheet file up the line. Descriptions my be prepended by SHT or A04 or MUST BE ON or DON'T CHANGE LEVELS DISPLAY.

Ø  To set the transparency for a raster reference, open the Attachment Settings for that reference, under the Color tab set the transparency to a value up to about 51%. Anything over that value and the image may disappear. I understand this is a "feature" in development.

Ø  Using Adjust Colours for references is great to use to differentiate references on screen. However, the Print Adjust Colours button is not compatable with our standard pen table that turns all elements black. It won't even work to define a section in your pen table to pick up this reference file and get it to print with no adjustments hoping that it will then print as it displays on screen; it will print at it is stored. The solution here is to have it display with whatever colour you wish on screen, but then to define a section in the pen table that picks up this reference and prints it all at a defined colour.

Ø  When MicroStation opens a file, it searches for references files in the following places, in order:

o   If the file specification contains a configuration variable, look in that directory first, using the relative path, if any.

o   Search a list of directories which consists of all of the directories for the parent file(s) of the reference. If a reference is attached directly to the master file, the search path consists only of the directory of the master file. If it is a nested reference, the path consists of the directories of each parent file, starting with the most deeply nested. Starting with Version 08.00.01.xx, the directories searched include the relative path, if any, in the file specification.

o   Search all the directories in MS_RFDIR, again retaining the relative path, if any, in the file specification.

o   Search the "current" directory. This is the MicroStation directory if MicroStation is started from the MicroStation program group, or the directory of the DGN file that is double clicked on from Windows explorer. This is rarely useful.

o   Use the full file specification in the reference attachment, if there is one.

o   This search algorithm is designed to maximize the chances that each project participant will find the correct reference file. There is no way to go up the tree when searching. You can only go down so the simplest solution it seems would be to set the directory further up the chain.

Ø  Regarding linestyle scales in reference files:

o   You cannot change the scale "within the element" for elements in a reference.

o   However you can do a few other things....

o   You can adjust the active linestyle scale (key-in: ACTIVE LINESTYLESCALE <value here>)

o   This will, however, effect the active file and the reference file in the same manner.

o   OR

o   You can set a linestyle scale at the "level".

o   Open level manager

o   Select the reference in the target tree

o   Right click on the level that the elements to change are on, select properties.

o   Go to the "Styles" tab.

o   Enable "Scale Factor" either under "Bylevel" or "overrides" and set a desired scale value.

o   Note: to see the scale in overrides, you will have to have Level Symbology enabled in the view.

Ø  Reference dialog Tools > Merge Into Master command will only  bring through elements visible in the attached reference files. IOW, any reference file elements on levels displayed Off will be left behind by the merge command. The data point to the screen to kick off the command defines which set of levels On/Off to use.

Ø  "By default, MicroStation checks "cycles" and discards [duplicate reference attachments]. In other words if File A attaches File B which attaches File A, and we didn't check the cycles, the only think that would limit the number of times that File A and File B appear is the nest depth. By default, MicroStation is cautious and doesn't live nest the File A attachment. We treat self references as a special case, allowing the cycle when the file references itself directly, but we cut off the cycle at the next level. Some users have good reasons why they want such cycles, so in 08.05.00.64 we added a "hidden" configuration variable that allows you to turn off that check - MS_REF_CYCLECHECK. Set that to 0 and I thnk you will get something closer to what you want, although I think you will probably want to cut down your nest depth as you will see when you try it." Barry Bentley.

Ø  When editing the name of a reference to change to a different file, you may find that the levels are not as they were in the previous attachment. Without Save Settings, re-enter the file and possibly the levels are restored.

Ø  This is culled from TechNote 8350....

o   "There exists the potential of a dynamic relationship for view display changes. In fact, the relationship is dynamic from the outset and is not broken until changes to the nested attachments view display are made while working in the active file. This should come as no surprise given that it is also the default relationship for nested level attributes. Returning to our example, when parent.dgn is attached to master.dgn with a live nesting value of 1, the view display for nested.dgn will appear in master.dgn just as it does in parent.dgn. This is because the view mask (the element that controls view display) for nested.dgn is not in parent.dgn, so USTN must continue down the reference hierarchy until the view mask is found. This relationship is broken when nested.dgn's view mask is changed while working in master.dgn and the settings are saved. Once broken, changes to nested.dgn's view display through parent.dgn will no longer appear in master.dgn.

o   To understand this fully, it must be mentioned that the nested attachment's view mask will only remain in the active file if the mask is different between the active file and the parent attachment. Conversely, if the view mask for the nested attachment is the same in parent attachment as it is in active file, savings settings while in the active file will remove the nested attachment's view mask.

o   For instance, if level ONE in nested.dgn is turned off while working in parent.dgn (let's assume a save settings unless noted otherwise), level ONE in nested.dgn will be off in master.dgn. Now, if level ONE in nested.dgn is turned on while working in master.dgn, nested.dgn's view mask is written to master.dgn. This means that changes to nested.dgn's view display as made while working in parent.dgn will not display in master.dgn. However, if level ONE in nested.dgn is turned on while working in parent.dgn and master.dgn is opened and settings are saved, nested.dgn's view mask will be removed from master.dgn. This occurs because the view display for nested.dgn as viewed through both parent.dgn and master.dgn is the same. What this means is that the dynamic relationship is once again in effect."

Ø  To attach the same ref file to a number of other files - say a legend to a sheet file, key in:

o   rf=<filename>,<logicalname>,<description or blank>,<saved view>,<scale>

o   eg. rf=01-641-legend,legend,,1,20:1

o   This brings in the ref file and waits for your data point to place it.

o   Then you just move to the next file, hit Up-arrow to get the keyin again, and hit Enter.

o   The key in to attach a filename coincidentally is rf=<filename>,,,,,

Ø  An alternate to refalign.ma, mentioned in the previous tip, is to use the Copy Attachment feature now standard with Microstation. From your Reference File dialog box, choose Tools->Copy Attachment. Then edit the name of the new ref file. You now have a new reference file attached with the same position, rotation, levels etc. as the original ref file.

Ø  Refalign.ma is a third party mdl application that rotates, scales and clips multiple reference files to an existing reference file. Get Refalign.ma from http://www.brmw.com/~brmw/

Ø  If you have a design file called MYFILE.DGN with several self-reference files attached and you need to change the file name to MYNEWFILE.DGN, you will find that the reference files in your new file will not be self-reference files but will be pointing to the original file MYFILE.DGN.

o   To fix this you will have to double-click on each entry in the Reference File dialog box and edit the file name to be MYNEWFILE.DGN.

o   Avoid this problem by creating your self-reference files by issuing the keyin command "RF=." The filename is stored as "." in the Reference File dialog box and Microstation will attach the active file. If at a later stage you need to rename the file, the reference files are still listed as "." and Microstation will be looking at the active file.

o   Note that you must use the keyin as this cannot be executed from the Attach Reference File dialog box.

o   Note also that you can specify a different extension for your reference file by keying in "RF=.SA3". This will attach a file of the same name but with extension .SA3.

 

 

Imaging

Ø  Remember that there is an alternative to raster referencing of images. You could use from the main MicroStation menu File > Import > Image. This will embed the image into your dgn file. You can scale, rotate and move the image here.

Ø  In MicroStation XM the Material table is internal and no MAT table is needed. This is why palettes will list in the Materials Editor dialog box even though no .mat file is present. Having said this, XM does sometimes create .mat files: go figure.

Ø  Performing a Ray Trace rendering of Feature Solids elements can produce results where the elements move themselves to other locations in the file! In Wireframe or Filled Hidden Line they behave correctly, but when rendered, some may move to a new location. This can also be apparent when printing to 3d pdf. To be able to obtain good images:

o   Select affected elements,

o   Task List > Feature Based Solids Modeling > Modify Feature > Re-Evaluate Tree,

o   Data to screen.

o   If this does not work then copy the file (or model) to protect your original; then select the affected elements and key-in CONVERT BREP. This will convert them from Feature Based Solids to normal Solids. Therefore your feature tools will not work on these elements any more - hence the backup copy.

Ø  If having trouble getting enough light to shine from an area light: Try turning off all the lights (including the global lights), except the area light in question.  Then render to see if that light is producing (enough) light to be seen.  If it is shining as desired when all other lights are off, it could be that the solar light is drowning out the area light (this is a common issue users run into).  In this case, increasing the Area light intensity and/or lowing the solar intensity will help.  Also when using "Real World Lighting", it auto-attenuates all lights.  This can cause a light to not shine enough distance to have much of an impact on the surfaces that are further away, which is again compounded by brighter (solar) light sources near by.

Ø  Ray Trace rendering of a scene made up of numerous referenced models. Materials are assigned by level in each model. No Level Symbology overrides are used. when the image is rendered on screen it appears OK. When the image is rendered with the Image > Save Multiple dialog and a script populated, sometimes elements on one level of one referenced model do not render in their assigned material, but rather in the colour of the element.

o   Drilling down to the reference levels in Level Manager showed that the level of that element in that reference file has the Modified triangle checked and indeed the material for that level was set to None. However there was no way to change it. I could not modify the material.

o   I then visited the file of the reference to check on the material assignment there and saw that it was OK. Returning to the destination file, the level's material now displays correctly. Strange. I'll update when I find a solution.

o   I thought it was fixed, but just ran Save Multiple images routine and the offending coloured panel has returned.

Ø  The Assign by Level and Color icon: To assign a material by level and colour. Choose Table, Palette and Material. Hit on an element and then all elements that have the same level and colour combination that this element has will be affected. Or use the little icon at the bottom right of the dialog to open the Material Assignments dialog. In this dialog you can make level and colour assignments. Can also select multiple levels.

Ø  The Attach Material icon: use it to apply a material to a particular element. This will override any level + colour assignments set. If the element you identify is a SmartSolid, then you can elect to attach the material to certain faces of the element.

Ø  Issues affecting the processing time with rendering images:

o   DETAIL OF DESIGN; HOW MUCH IS BEING RENDERED.

o   RENDERING MODE BEING USED

o   ROUNDED OR CURVED SOLIDS, B-SPLINE CURVES OR SURFACES, ELEMENTS CONSTRUCTED OF CLOSED SHAPES (TRIANGULATED MESH).

o   ANTIALIAS.

o   LIGHTS. - Each light requires time to process.  Area lights typically take longer than others.  The sample value in the light will exponentially increase the processing time.

o   VIEW WINDOW/OUTPUT SIZE.

o   MATERIALS. -             High detail or large patterns bump maps, transparency and/or reflectivity.

o   STROKE TOLERANCE. - Default is 0.500, smaller value = more time.

o   RPC DATA.

o   Toggle off "Render all objects".  This will only render the objects that are currently in the view.

o   Save the RayTrace solution and then reload it at a later time as long as the geometry has not changed and this should significantly reduce the re-render time as it is the same lighting solution.

Ø  When Ray Tracing consder Real World Lighting. Display Contrast values can be between 1 (for hard contrast) to 5 (for soft contrast), default value is 2.6.

o   When Phong rendering, Phong Shadow Tolerance values range between 0 and 0.1 (default 0.02) and Phong Shadow Size values range from 0 - 15 (default 2)

Ø  If rendered images of white objects appear grey,

o   Check Settings > Rendering > View Attributes and make sure you are not using any

o   Distance Cueing such as Fog or Depth Cueing in the view where you are creating the ray traced solution.

o   If the Distance Cueing is set to None then it is off for the view and no distance cueing will be used regardless of the sliders. [Jerry Flynn on NG]

Ø  For Environment Mapping in Rendering, from the newsgroup:

o   Don't use a cylinder. Use a sphere! And get a panorama sky image, like the ones @ www.1000skies.com .

o   First mirror the image horizontally (increase height 100%) (1000skies has some dome images). Then place the sphere around the model (placing it from the bottom to top, not from left to right, and keep the center a little below the model), and attach the sky material, which is set to cast no shadows. And there you have a perfect sky.

Ø  To fix camera roll on a fly through: Home resets roll, second hit resets Tilt, third hit set to North.

Ø  When running a Solar Study (Utilities > Render > Solar Study) the light in the scene mimics the light in the real world meaning that the light on a winter afternoon is much less than the amount of light, and therefore the brightness, of a midday mid summer. To help the amount of light in the scene constant, try setting the Ambient light high and the Solar light low. Might also like to try Add Sky Light to all Slar and Distant Lights from the Global Lighting tab. Or even wind up the Cloudiness setting (same place) - but this may darken the image and slow down the rendering process.

Ø  When running MicroStation Solar Studies (Utilities > Rendering > Solar Study), be sure to save your rendering setup (Settings > Rendering > Setup) before performing the Solar Study. That is, don't just adjust the onscreen settings and run the Solar Study, adjust the settings and save them first.

Ø  Use a light with a short attenuation on the time stamp when doing shadowing.

Ø  For microstation shadows to work, the objects casting the shadows need to be visible in the view. Its not good enough to have them turned on but just off screen: they need to be visible in the view for their shadows to be cast.

Ø  For Solar Study.

o   Ensure a rendering setup has been established including north set.

o   Use Utilities > Rendering > Solar Study.

o   To set up an animation with a frame for every 15 minutes from 9.00am to 3.00pm, set 25 frames, 9am start and a 6hr duration. Also set AntiAlias, Solar Shadows, Ray Trace and save to AVI(Windows standard) instead of FLI (MicroStation required.)

o   The Speed setting works in reverse: low numbers and the animation plays back fast, higher numbers play back slow. (Perhaps the number is the pause between frames.)

Ø  Sprint Digital's large format HPGL printer will not print TIFF unless it is in "B+W with CCITT Group 4 Compression"

Ø  TIFF images will not print via HPGL2. Need to use other Windows based drivers.

Ø  Rendering TriForma models uses the TriForma part information for each element to get the rendering attriutes. To override this an force renderings to behave in the normal MicroStation level and colour mode, set the config variable TFPART_RENDER=0.

Ø  For transparencies to work there are 3 places the set the parameter:

o   The element's material has to be set to a transparent material.

o   Settings > Rendering > View Attributes. Check on Transparency option.

o   If you are Ray Tracing. Settings > Rendering > Ray Tracing. Check on Transparency option.

Ø  When experimenting with different rendering methods, be aware that applied materials will appear differently for Phong shading, RayTracing and Particle Tracing.

Ø  If you are preparing Phong images with shadows to save, but the shadows are jagged, fuzzy and appear to float above the ground, then save them as RayTracings. Phong's process means that shadows get less accurate the more of them that needs to be rendered. RayTracing produces wonderfully sharp images with small JPEG files.

Ø  When trying to create images for shadow diagrams, using Phong will probably produce shadows that are fuzzy, jagged and floating. However, sharp shadows can be achieved if in the Save Image dialog box, you set the "Format" to "JPEG" and the "Shading" to "RayTrace". Each saved image can take a while to process so do a couple of tests and adjust the "Resolution" for your needs.

Ø  For materials to be transparent in MicroStation, check out:

o   Set transparency in Define Materials db. see Settings>Rendering>View Attributes.

o   Set view attributes to transparent. see Settings>Rendering>View Attributes.

o   If raytracing, set transparency on in settings box, see Settings>Rendering>Raytracing.

Ø  You can adjust the darkness of raster images in Microstation by selecting the image with Utilities->Image->Display. Then choose Image->Gamma Correction and adjust the slide control.

Ø  Create .emf images from your Microstation files by plotting with the emf.plt driver file selected. The resolution of the image can also be improved by adjusting the Resolution line in the plot driver file. Use your Preferences to change the Background from Black to White. EMF images can be a good format to use to paste into a PowerPoint presentation.

Ø  Create .tif images from your Microstation files by plotting with the tiff.plt driver file selected. The resolution of the image can also be improved by adjusting the Resolution line in the plot driver file. Use your Preferences to change the Background from Black to White.

Ø  Create .jpg images from your Microstation files by plotting with the jpeg.plt driver file selected. The resolution of the image can also be improved by adjusting the Resolution line in the plot driver file. Use your Preferences to change the Background from Black to White.

 

Printing

Ø  The Rasterized checkbox on the Print dialog remembers its status from the last time you checked it on/off. A line can be added to your plot configuration files to automatically check or uncheck  this box.

o   To check the option but allow the user to override the setting:
output_mode=prefer_rasterized

o   To uncheck the option but allow the user to override the setting:
output_mode=prefer_nonrasterized

o   To check and disable the option:
output_mode=force_rasterized

o   To uncheck and disable the option:
output_mode=force_nonrasterized

Ø  If using the printer.plt driver file and you wish to save the output to a file, then in the Print dialog select Create Metafile and save the file with an .emf extension. But be careful as the file may be pretty big.

 

Ø  Print output colours and weights can be defined in pen tables as well as in print driver files. Assignments made in pen tables will override those made in driver files. See the Global Actions section of the Modify Pen Table dialog box.

Ø  To have your pen table respect Level Symbology Overrides, from the Modify Pen Table dialog hit on the Pen Table Options button. From the dialog that opens change "Element Symbology Comparison Mode" to "As Displayed In View". (Remember to File > Save)

o   As an alternataive to using a pen table to change your elements black at print time, try using the following in your print driver files:  PEN(1)=(1-127)/RGB=(0,0,0)

o   In versions prior to XM, you may also have used your pen table to send any filled colour shapes behind black elements on your prints. These sections will still be needed even if using the above PEN(1)... line. Remember too, that your last catch-all section in the pen table that sent all remaining elements black, will still be needed but only for the priority setting.

o   Pen table prioritizing may be more complex but can give better results than simple Reference Update Sequencing. And this is all redundant now with the introduction of element Priority in XM.

Ø  One of the differences between the 2004 and XM print drivers is that MicroStation and PowerDraft XM do not accept the /units or the /offset records in .plt files.

Ø  If you are creating a 3D pdf file with MicroStation's print to 3d option in XM, you may experience a situation where the objects in your output image appears to have see-through sides - as if they were filled hidden line, but that you could see through to the other side as well. When this happens then in Acrobat go to Edit > Preferences > Category > 3D > Render Options and check on Enable Double Sided Rendering.

Ø  If you have a situation where Printing does not seem to be correctly recognising reference clip boundaries set for a reference file, then the issue may be the dimension of the reference file. A 3d reference file displayed in a 2d file with a shape of more than 4 vertices defining the clipping boundaries, will display correctly in normal viewing, but under Print Preview will give erratic clipping results. An example was an Autocad survey file saved to MiroStation and then referenced into a site plan plot file. A shape with many vertices was used to clip the boundaries of the reference. It displayed correctly normally, but when the Print dialog was called, the Print Preview displayed this reference only with 4 clipping points forming a standard rectangle. The additional points were ignored. The problem turned out to be that the survey file saved from AutoCad to MicroSation was still in 3d. The solution was to open the AutoCad file again but this time with the DWG Open Option of "Create 2D Models for Model Space" checked on. Then save to DGN and you have a 2d file.

Ø  An error has been known to be generated when printing to PDF with XM. A dialog box opens with "Unhandled exception has occurred..." The pdf file is produced which appears OK, but we can't be sure. Bentley have seen the problem but as yet cannot solve it. To help ignore the problem for now, on the Print dialog select Settings > Preferences, and check off Show Print Status Dialog.

Ø  When editing print driver files, ensure that the line to call the paper size appears after the line to designate the printer name.

o   sysprinter /fullsheet /orientation=landscape /form=oce A1 /name=\\myPrinter size=(594,841) /units=mm /penScale=1.0 /name="A1" /default

Ø  To have a pen table process all elements in certain reference files, you can set regular expressions for the reference logical names. To do this, in the Modify Pen Table dialog, Element Selection Criteria tab, hit the Files button and the Identify Files dialog opens. In the lower keyin field enter <criteria>.* (eg. grey.*) and hit Add to add this entry to the Reference Logical Names section.

o   For example, this will match references with logical names of grey, grey-2, greydog, greyABC.

o   Note that these expressions can be added manually to the pen table in Notepad with the line: LOGNAME = grey.* etc.

Ø  When editing pen tables, to have MicroStation look for elements on specific groups of levels, use the "Level Regular Expression" section of the Modify Pen Table dialog box. To look for all levels beginning with L use the expression L.*  (note, not L*, but L.*).

o   You may at sime time in the future find that this pen table will have all the levels that matched your regular expression now populating the "Level" item in the Modify Pen Table dialog box. This may be OK, but it may produce unwanted results as the levels in your current file may now be different. To avoid this, consider making the pen table file readonly when you have finished editing it.

o   Note that level regular expressions can be added manually to the pen table in Notepad with the line: IN_LEVEL_EXPR = L-.* or as appropriate.

Ø  Printing elements with transparency can be done with normal printing. Printing elements with gradient fill can also be done with normal printing. However, printing elements with transparency and gradient fill will require Rasterisation at plot time; see the check box on the Print dialog. Be aware that rasterised plotting is slower and if printing to PDF will produce larger files than normal.

Ø  When starting printing via a menu button or item, sometimes the "Select Pen Table File" dialog box opens. This is despite the fact that the pen table has been defined in the plot driver file. This error usually happens after a system change has been made or after you changed workspaces. When this happens just hit Cancel on that box. When the "Print" dialog opens, select File > Reload Printer Driver Configuration and the correct pen table should now be found.

Ø  If you are going to use a pen table to order your elements (for example to have filled shaped print first) AND if you also have Text elements with a clear background, then you will have to set a separate section in the pen table for the text. Your priority should be Filled Shapes, then Other Linework, and lastly Text.

Ø  If you have some mystery elements that refuse to plot and you have checked out the tips above, then:

o   Select the plot area differently.

o   Try placing your fence by points instead of to the border element.

o   Try placing the fence by eye without snapping.

o   Try placing the fence on another diagonal (eg, place it from top left to bottom right instead of bottom left to top right etc.)

o   These things should not make a difference, but sometimes they do.

Ø  If you have some mystery elements that refuse to plot, check that:

o   Levels are displayed On or Off correctly.

o   Elements are not placed in a non-plotting level.

o   Level symbology set or not set as desired.

o   Pen table interfering with elements - such as making them print white.

Ø  Most colour printers must perform dithering to generate all the required colors when there are only 3 or 4 inks available. So setting raster resolution to a value greater than 1/2 (or even 1/4) of the plotter's resolution, may not improve image quality but may increase the time required for plotting.

Ø  The XM version of printer.plt has some changes administrators should be aware of.

Ø  You specify printer and paper sizes in plt files with the line:

o   sysprinter /fullsheet /orientation=landscape /form=A3 /name="my-printer-address"

o   Note that the form name has to match the name of the form in the printer's Paper list, eg it might be "ISO A1", or "841x594".

o   Sometimes, some office network systems seem to have trouble selecting the paper size. The xm version of printer.plt has some new lines that might help in this situation, eg. see the following:

o   size=(594,  841) /units=mm /penScale=1.0 /name="ISO A1" /default

Ø  If your Pen Table Text Substitution format for dates switches to American format of month/day/year, then define an environment variable to set it back to day.month.year.

o   MS_PENTABLE_DATE_FORMAT=%d.%m.%Y

o   (Note: case sensitive!)

o   (Had to use . as / always came out \)

Ø  When using pen tables to send all elements black, text elements are sometimes treated differently because of colour issues (such as allowing white on black background text to print correctly). If these textstyles are placed with the Place Note command then they may not be picked up with the pen table and therefore will plot as black blobs. In order to have these elements treated correctly, go to the Pen Table Options button on the lower left of the Modify Pen Table dialog box, hit it and select Explode cells and Explode Shared Cells.

Ø  When plotting using the Area item set to Sheet in the General Settings section of the Print dialog, note that the View item is still active. Therefore you must still select the correct view from which to plot, being careful to ensure that the correct levels are displayed and level symbology is correctly set.

Ø  When printing from XM, be sure you have the View Attribute of Transparency OFF, otherwise some(?) elements may appear in greyscale.

Ø  MicroStation XM can now print to PDF in 3D format allowing you to view models in 3d: Great for sending images to clients remotely. All lines in the models appear to be straight vectors - no curves. Curves are approximated with facets - and sometimes not very nicely. There are two methods to decrease the facet length, both from the Print dialog Settings > 3d Plotting Options dialog box.

o   The Mesh Resolution is a sliding value of 0 to 4000 with a default value of 1000. Try increasing this value.

o   The Mesh Tolerance default value is 0. If the value is non-zero, it overrides the Mesh Resolution. Mesh Tolerance directly controls the maximum distance from the mesh to the surface it approximates. A small value will produces a more precise mesh, with a subsequently larger file. Try 0.1.

Ø  In the Modify Pen Table dialog box, is a tab entitled Element Output Actions. To the right of the Style Scale item is a checkbox labelled Adaptive. Turning on Adaptive ensures that dashed lines in the printed output do not display with gaps at vertices.

Ø  When defining text substitutions in plotting pen tables, be aware that:

o   You can define "$USER$" = "$(_USTN_USERNAME)" to catch the microstation user name instead of using the system variable to catch the system user.

o   You can define "$FILEABBREV$" = "_FILEA_" to use the abbreviated filename of up to 30 chars.

o   Remembering of course that $FILES$ does the filename + extension only, and $FILEL$ puts out the entire path and filename + extension.

Ø  In PDF.plt driver file: The following entry controls the DPI resolution of the plot.

o   Resolution(MM)=(0.04233333333333333333333,0.04233333333333333333333); 600DPI

o   The maths for the figure here is = (1/600)*25.4

o   Changing this figure to 300 for a small drawing has little effect on the output PDF file size. It will have a greater effect on a larger drawing.

o   Note that changing this figure will have an immediate mathematical effect on the length of your dotted lines as these are defined in DPI units with the following entry:

o   style(1)=(18, 18)                  ;/nohardware     ;style = dot

o   etc. Remember this figure is DPI as in Inch irrespective of whether you used resolution(MM)=....  or  resolution(IN)=...

o   Also:

o   ;=================================================================

o   ;RGB Raster compression

o   CmdName /appname="pdf" /command="RGBRasterCompression" /qualifier="jpeg"

o   ;CmdName /appname="pdf" /command="RGBRasterCompression" /qualifier="zipped"

o   ;zipped by default

o   ;=================================================================

o   Swapping these entries (ie making the value "jpeg") will dramatically reduce file size with only a small trade off for lost resolution.

o   In the last group of entries:

o   pixel_resolution=300    ; Resolution of pixels on output (dpi)  Default=300

o   Changing this value changes the resolution of any raster images in your file. This will change the output file size. This value has no effect on the resolution of the MicroStation linework.150 DPI gives a reasonable onscreen resolution.

Ø  There is a known issue When printing raster references overlaid with filled colour shapes to PDF. The result is that the raster is on top, obscuring all elements underneath. Specifics of when and why it happens have not been clarified, so it happens some times but not all times. I will be solved in XM.

Ø  When printing with raster references, in the Print dialog select Settings > Raster Options and Set Monochrome Background to No Invert. You may also need to adjust the Update Sequence in the References dialog by setting the rasters to update last. And note that this is a global setting applying to all rasters: you can't manipulate them individually.

Ø  When plotting with raster reference files, try using the RIP drivers for better results.

Ø  When designing a pen table to change the output colour of elements (usually to black) it may be a good idea to set the output colour by RGB instead of by Index. If you choose RGB then you define the output colour and that's it. However, if you choose the Index and assign it to your black colour it will work fine but if another colour table happens to be attached, then you cannot be assured of the output colour.

Ø  Is it the case when defining pen tables that Element Selection Criteria > Fill Colour does not refer to background text colour, but Element Output Actions > Fill Colour does?

Ø  When designing a pen table to change the output colour of elements (usually to black) it may be a good idea to set the output colour by RGB instead of by Index. If you choose RGB then you define the output colour and that's it. However, if you choose the Index and assign it to your black colour it will work fine but if another colour  table happens to be attached, then you cannot be assured of the output colour.

Ø  The magic code, usually for plot driver files, to define a filename to be the same as the current file but with a different extension is: $(_DGNDIR)$(basename(_DGNFILE)).XXX

Ø  If you are trying to print and AutoCad file (or a MicroStation file saved from an Autocad file) but you are getting no image in your print preview, then:

o   Check that the portion of your pen table that turns all elements black is preventing the elements from displaying. Pen tables can turn elements black by sending all colours to color 0. However, if your file has an autocad colour table, then the colour 0 may be printing white. To fix this change the colour mix of colour 0 to be black. Alternatively, you could make a new pen table that sent the colours to another colour in the colour table instead of colour 0 - pick one that is as black as possible.

Ø  Another suggestion for calling print dialog from menu system:

o   MDL LOAD PLOTCFG;DIALOG PLOT;SET PLOTTER Q:\CADD\DRIVER\123.plt;PLOT ENTITY FENCE

Ø  Suggestion for calling print dialog from menu system:

o   place fence;%d;%d;print driver konica_03.plt;print pentable attach sc_pentable.tbl;print

Ø  Some plotters produces grey scaling with big dots rather than the beautiful greyscaling produced by newer inkjet printers. Bentley suggested to change the “largest polygon” line to 20000. This produced a marginal improvement in greyscaling dot size. Their other suggestion, using -1, resulted in all greyscaling and all TTF text being suppressed. Not a good result.

Ø  Here is a way to get your associative pattern to display without displaying the element that bounds it. It involves a pen table and your colour table.

o   In your standard colour table, designate a colour that is rarely used (probably a high number) and set it to be very faint grey. (You may already have greyscaling options set up with your colour table whereby you have already defined several colours for greyscaling. Using the lightest one of these will probably do.) Now in your Pen Table, create a new section like:

§  BEGIN <name>

§  IN_DISABLESECTION = 0

§  IN_USESECTIONNAME = 0

§  IN_COLOR      = <colourNumber>

§  PRIORITY      = 0

§  RETURN        = 3

§  END

o   Where <name> might be NOT_PATTERN_BOUNDARY and your <colourNumber> may be 240.

o   Having done this create your shape in your designated colour. Then change the Active Colour to 0 and then pattern the shape.

o   Any of course this will only work if people use the section

§  BEGIN All_Black

§  IN_DISABLESECTION = 0

§  IN_USESECTIONNAME = 0

§  OUT_COLOR     = 0x0

§  OUT_FILLCOLOR = 0x0

§  PRIORITY      = 10

§  END

o   to turn all their other elements black.

Ø  Had a situation where some text in a sheet file was not plotting. Not whole text or text node elements but assorted characters within the elements would not plot. After much investigation it turned out to be that the ref attachment of the sheet file was corrupted. So detach it and reattach and it all worked fine.

Ø  If printing to file (000) when using Batch Plotting and it does not seem to be working for one project but does for another, then it may be a config variable problem. In the Printer Specification of Batch Plotting, if you do not specify an Output Directory, then MS_PLTFILES will be used regardless of the default_outFile/auto_overwrite specified in your plot driver file. If MS_PLTFILES is not defined, or points to a non-existant directory, then the plotting will fail - and you will be given no reason. Check out your project config file for a correctly specified MS_PLTFILES variable.

Ø  When printing MicroStation files for use in Windows applications, try using the following drivers: cgm.plt, pscript.plt, wmf.plt, emf.plt.

Ø  Pen Tables can be used to change the appearance of linestyles at plot time. For example, lets assume you have a custom linestyle with text in it and you have scaled the linestyle to plot correctly at 1:100. If you now wish to plot that line again on a 1:20 detail plot the text will now be 5 times too large.

o   One way to work around this problem is to have a copy of the line on another level with a different linestyle scale set for the copy. Then in the plot file simply turn off the level not required for each plot scale.

o   A pen table entry can be set to find a specific linestyle type and rescale it accordingly. The downside of this method is that you will need a pen table entry for each linestyle scale in your resource file you may wish to resymbolise, plus a different pen table file for each plot scale you will need.

Ø  If wishing to modify your plot driver file to save postscript output to a file to print later, use the line: default_outFile = "$(MS_PLTFILES)$(basename(_DGNFILE)).ps"

Ø  Does your pen table sometimes suddenly play up by not changing the colour of elements as it usually does? For example your pen table has a global command to send all linework black, but it is now coming out blue! Or you have a series of tonal grey shapes that are now coming out red or yellow!! And it it only happening to one file in your project and not affecting any others! The problem may not be with the pen table or with the design file....

o   The solution may be with colour tables: Be aware that the output colour of your plotfiles is taken from the last displayed reference file you have attached. Therefore if you have just received a file from an external consultant and attached it to your plot file, then check its pen table. If it is different to yours, then you may have to attach your pen table to that file. Or you could swap the order of your reference files in the list in the Ref File dialog box so that this new file is not listed last.

o   Another solution is to:

§  Select Workspace > Preferences from the main menu. The "Preferences" dialog opens.

§  From the list on the left select "Reference File".

§  From the list that now appears on the right check OFF "Use Color Table".

§  Hit "OK".

 

Batch Print

Ø  Batchplot has been replaced in V8i by Print Organizer. Even though it has been removed from the File menu, Batchprint will still fire up with the keyin "mdl keyin batchplt".

Ø  Batch plot definitely will not work where a model has the + character in its name. eg. MyB+WModel. Best to stick to alphanumeric model names and avoid using \ / : * ? " < > or |.

Ø  When editing batch plot specification files in XM with Notepad (or other text editors):

o   When specifying the "paperSize=" record, be sure to show the full paper name such as "ISO A3" instead of just "A3".

o   The line "usePrintSetupForm=" set to 0 or 1 controls the "Use paper size and orientation from Windows Print Dialog" option on the batch print printer Properties dialog. Setting this to 0 will give you control of the paper size chosen.

Ø  In the Batch Print Print Area Properties dialog if you wish to set one of the Print Boundary attributes off, then the keyin for it is -1. This does not set it to byLevel.

Ø  When setting up batch plotting: In the .spc file you can use %x.%x, XXX: and $(XXX) methods to specify paths and/or files in some of the fields but not all. There is no written information on which method is preferred nor on which one is applicalbe for which field.

Ø  In the Batch Plot Specification .spc file, the following section shows the format for a successful single file pdf output plot job.

[Printer=PDF-A4-Doc-Set]
driverFile=_ustn_site:\plotdrv\mypdf.plt
isSysPrinter=0
paperSize=ISO A4
units=mm
orientation=as-is
outputDestination=file
outputPort=
outputDir=_dgndir:
fileFormat=%d.%e
fileExt=pdf
postPlotCmd=
isDocumentSetCapable=1
isDocumentSet=1
docSetOutputFile=_DGNFILE:.pdf
stopOnError=1
usePrintSetupForm=1

Ø  To get an output from many shapes in one dgn file (model) use the following:

[Printer=PDF A4 Multiple Output Files]
driverFile=_ustn_site:\plotdrv\mypdf.plt
isSysPrinter=0
paperSize=ISO A4
units=mm
orientation=as-is
outputDestination=file
outputPort=
outputDir=_dgndir:
fileFormat=%d-%b.%e
fileExt=pdf
postPlotCmd=
isDocumentSetCapable=1
isDocumentSet=0
docSetOutputFile=
stopOnError=1
usePrintSetupForm=1

Ø  You will also need to edit the PlotArea section to set multiplePlots to 1:

[PlotArea=Multiple Shapes]
viewNum=1
viewName=
areaMethod=shape
cellName=
shapeLevel=myLevel
shapeColor=-1
shapeWeight=-1
shapeStyle=-1
searchMaster=1
searchRef=1
refName=
multiplePlots=1

Ø  Note here that the shapeColour, shapeWeight and shapeStle option when set to -1 do not mean byLevel. It means that the checkboxes are checked off and searching is not done by that field. I don't believe it is possible to set these fields to byLevel.

Ø  To load batchprint via a keyin: mdl keyin batchplt

Ø  To add the active design file to the batch print dialog: batchplt addactivedgn

Ø  To select a printer specification: batchplt selectspec printer=<specification_name> (no " "s)

Ø  Batch Print has difficulty addressing the different paper sizes in system printer devices. The solution is to set up print config files (.plt) for each paper size used and then have a corresponding print section for each in the batch plot spec file. This does not apply to the PDF driver as Batch Print can address the different paper sizes.

Ø  If you are using BatchPlot and are defining you plot area with a shape on a certain level, then you should ensure that you only have one title sheet drawing (border) in your title design file. If you have multiple title sheet (for different sizes for example) then BatchPlot will grab the shape of the first border it finds.

Ø  When converting to DWG you can define View 1 to be the window to take to determine which levels are on or off in the output DWG file. To do this hit the Options button on the Save As dialog box. Go to the General tab, Basic section and set the Level Display option to the view desired.

o   When the conversion is made all elements are converted but those on levels displayed off do not appear immediately. They can be turned on with the usual display tools.

o   If you want to only convert to DWG the levels that are displayed you will need to suppress the conversion of those elements displayed off. There is not button to do this. Instead you will need to use an undocumented feature and define the environment variable MS_MERGE_DISPLAYEDLEVELSONLY to be 1 and restart MicroStation.

 

Import/Export

Ø  To automatically set the Default Destination field on the Batch Convert dialog, define the variable MS_DGNOUT to be the desired folder.

o   Note that by default this variable is set to be an expansion of _USTN_OUT.

o   Note that you could define MS_DGNOUT in your standards.cfg to be $(myProject)Out/ where myProject is subsequently defined in your pcf.

Ø  When converting to DWG you can define View 1 to be the window to take to determine which levels are on or off in the output DWG file. To do this hit the Options button on the Save As dialog box. Go to the General tab, Basic section and set the Level Display option to the view desired.

o   When the conversion is made all elements are converted but those on levels displayed off do not appear immediately. They can be turned on with the usual display tools.

o   If you want to only convert to DWG the levels that are displayed you will need to suppress the conversion of those elements displayed off. There is not button to do this. Instead you will need to use an undocumented feature and define the environment variable MS_MERGE_DISPLAYEDLEVELSONLY to be 1 and restart MicroStation.

Ø  In V8 cells are stored as separate models within one dgn file. The AutoCad equivalent for cells are blocks and they are stored in a folder, one drawing per dwg file. To convert a MicroStation cell library to a collection of AutoCad blocks, use the Save As DWG Options, go to the Advanced tab and set Non-Default Models to Create Separate Files.

Ø  If files you have exported to dwg cannot be opened by your clients/consultants on their Autocad systems, then ensure that no elements in your donor files are on level 0. Move them to Default or any other level. For some reason elements in files originally converted from dwg/dxf to dgn sometimes do end up on level 0. MicroStation does not seem to mind this - and indeed it will happily export them again, but it would appear that AutoCad (plus other reader programs such as IrfenView, Sketchup) do not like elements on level 0.

Ø  Defining a dgn file to be your MS_TRANSEED does not make the dwg file open with the colour table of the dgn file - it keeps the colour table of the dwg file.

Ø  When trying to save dgn files to dwg, or when trying to open dwg files you may get the message: "Unable to locate and open seed file required to open this file. Check the MS_TRANSEED configuration variable."

o   Confirming this variable is correctly defined may well solve the problem.

o   If however, the variable looks OK and the file pointed to by it is there, then the issue may be that you have redirected your user preferences variable.

o   If you have defined either _USTN_HOMEROOT or _USTN_HOMEPREFS to be somewhere other than the standard location (probably on your network in order to allow users to swap machines in the office while still having access to their preferences), then for some reason the DWGDATA files contained therein may be the cause of the problem.

o   Firstly, try commenting out that line in your standards config file and check out the result.

o   If it now works and allows you to open dwg files then this is the cause of the problem.

o   Use the Configuration dialog box to determine the current location of the _USTN_HOMEROOT or _USTN_HOMEPREFS folders (You will need to have previously defined _USTN_DISPLAYALLCFGVARS = 1 in order to see the _USTN_* variables in this dialog.)

o   It is probably going to be a long gobbledegook address like C:\Documents and Settings\Anthony\Local Settings\Application Data\Bentley\MicroStation\8.9\s0_tIuz1-SOIbXHdlUtOuQ\prefs\.

o   Note this address and then go there in Explorer.

o   You will see this folder contains another folder named DWGDATA. Copy the contents of this folder and paste them in the corresponding place in the area you had defined for your user prefs, possibly Z:\Workspace\Users\prefs\ for example.

o   Now, uncomment that line in your standards config and try again.

o   An alternative to this instruction is to note that the file ...dwgdata\DwgSettings.rsc can become corrupted, especially in a network environment. Instead of copying information from another location, try deleting this one file: it will be recreated automatically when a translation is next performed.

o   The file may be located similar to C:\Documents and Settings\<username>\Local Settings\Application Data\Bentley\MicroStation\8.9\alphabetsoup\prefs\dwgdata\

Ø  When Saving a plot file to DWG where some of the References have Level Symbology turned On, then be sure to check in the Save As DWG?DXF Option dialog box that:

o   General tab > Basic section > DWG Version is as late as possible.

o   General tab > Basic section > Level Display is View 1.

o   General tab > Basic section > Use Level Symbology Overrides is checked.

o   References tab > all Attachments options are set to Merge.

o   References tab > Copy Levels During Merge is set to If Overrides Exist.

Ø  When trying to edit a DWG file with MicroStation, sometimes you won't be able to edit text elements - or indeed to modify any elements individually. Often elements are grouped as one big, or a series of shared cells. Dropping the shared cells can produce problems of elements - especially text, dimensions and tags - disappearing. One possibility is that the shared cell is in a sheet model and has been scaled down by the appropriate drawing scale. If this is the case, try scaling the shared cell up to its original size before dropping it: the text and dimensions may now still be visible. You then have the possibility to work on the information there, then group it and scale it back down into the plot sheet.

Ø  When using Save As DWG note that the Drop Unsupported Linestyles option does not always mean exactly that. There are no user controls for this function and for any linestyle MicroStation might drop it or change it to something else altogether. The solution is to define a CSV conversion file and in the Linestyles tab, list all your custom linestyles and use the keyword “%drop” in the output column for each. This might be annoying, but it does appear to work.

o   Background: Autocad line styles are very simple and are created in a text file. It looks a bit like this:

o   - - - - - - -  This would be a dashed line

o   -/--/- this would be a fence line.

o   AutoCAD cannot do something like our railway lines for example.

o   The standard MicroStation numbered linestyles cannot be dropped.

Ø  Consider using File > Export (Same as File > Save As [except that in Export you stay in the source file rather than end up in the destination file as you do with Save As]) to create a freeze/shapshot file of your work.

o   Set References to Merge.

o   Choose a filename that will be helpful, eg. if the file is A23 Issue B, then make the file fA23b.sht where "f" is for Freeze, and "b" is the issue letter.

o   If you have used Level Symbology in the project then you will need to set Copy Levels During Merge to If Overrides Exist in order to maintain the correct viewing of your information. Remember also to make sure Level Symbology is enabled in the destination file.

o   Remember also that the Default model will always be exported along with any additional selected models.

o   Try to think of a way to automate this procedure: take into consideration Merge/Retain references, new file names, selected models, level symbology. Hmmm.

o   Determine a temporary/permanent destination location.

o   Call Batch Convert.

o   Set appropriate reference, symbology and destination options.

o   Add files.

o   Run the process.

o   Use DOS to batch rename files from *.sht to f*.sht

o   [Edit filenames as appropriate to add issue letter, eg. fA23.sht to fA23b.sht.]

o   [Visit files and delete unwanted models.]

o   [Move files to final location.]

Ø  When we create a new MicroStation file, we can elect to set its dimension to be 2D or 3D. AutoCad files are all 3D regardless of whether they contain a three dimensional building or a two dimensional elevation or survey.

o   It is often preferable for us to view these AutoCad files as if they were 2D.

o   To do this:

o   When preparing to enter a DWG from the MicroStation Manager dialog or from the Open dialog, select the desired AutoCad file and hit the DWG Options button.

o   The DWG Open Options dialog opens. In this dialog check on both the Create 2D Models for Model Space and Create 2D Sheets for Paper Space options.

o   Hit OK and enter the file. Try using your Rotate View command and see that you are viewing the file as if it was 2D.

o   The above settings are not pertinent to this DWG file, but are part of your User Preferences. This means that all future DWG files you open should also view as 2D – until you change this setting again.

o   Note also, that if you now save this file from DWG to DGN the resultant file will also be 2D!

Ø  Merging references into the master file brings only those elements that are displayed on at the time. However, export to V8 (as well as dwg/v7) takes all elements on all levels.

Ø  AutoCad has only one view whereas MicroStation has up to 8. This is why Save Settings will not save that you have multiple views open on a DWG file.

Ø  When you get dwg files with a .rsc of the same filename, append this file name to your MS_SYMBRSRC variable and see  what happens.

Ø  Dgnlinestyle.shx is the AutoCad shape file needed to create the point symbols in linestyles in DGN files that are saved to DWG.

Ø  To get MicroStation files into a PowerPoint presentation use the OLEserver capability that is in MicroStation V8 2004 Edition. To use it, use these steps...

o   MDL LOAD oleserve

o   OleServe viewcopy

o   Select the view to *copy*

o   Task switch to or open a PowerPoint presentation

o   Edit > Paste Special and select MicroStation View Object

o   This process uses the EMF.PLT driver, but results in a dynamic view that can be updated at a later time (using OleServe update). (Phil Chouinard from NG)

Ø  When working on a project that needs to be converted back to V7: start with a correctly set up V7 file and upgrade it to v8. Don't change any settings such as working units as this will affect how it goes back to v7 later.

Ø  Importing Models works on dwg files too. So if you receive a bunch of details as dwg files, you can import them straight into a cell library.

Ø  Bentley Tip: Converting DWG Files to 2D DGN Files

o   By default, AutoCAD DWG files are 3D. Therefore, when you export or convert them to a MicroStation design file, they'll end up being 3D.

o   If you would rather have a 2D DGN, before you open the DWG file, turn on Create 2D Models for Model Space as well as Create 2D Sheets for Paper Space in the DWG Options box.

Ø  The msbatch utility is used in V7 to convert multiple files from dwg/dxf to and from dgn. It is run from the command line at ....Bentley\program\MicroStation\.

o   To get a list of the commandline arguments for the msbatch utility, keyin "msbatch dwgin".

o   Remember that MS_TRANSEED is used as default for the the creation of dgn files. You can override this with the -iseeddgn:[filename] argument.

Ø  To find all msbatch switches, go to the dos prompt, navigate to c:\bentley\program\microstation\

o   and key in "msbatch dwgin" or "msbatch dwgout".

o   When specifying switches in a Batchfile, they need to be preceded with a -i. Up to nine options may be switched through.

Ø  More Translating tips:

o   Map fonts, cells and LineStyles.

o   Map color to weight.

o   Use level symbology and level names.

o   Don't clip or self-reference files in Ustn.

o   Don't nest paperspace in ACad.

o   Use the same fonts (and numbers) in both packages.

o   Translate shapes to polylines.

Ø  As AutoCad has unlimited levels, it is a good idea to choose the "Purge unused DWG levels" option when importing.

Ø  Whilst MicroStation does provide three AutoCad file filter options on the Open Design File dialog box, this is not the recommended way to open an AutoCad file. It is best to create a new empty file from your seed file and then choose File > Import > DWG or DXF.

Ø  To convert a directory of dwg files to dgn, go to the dos prompt, navigate to c:\bentley\program\microstation\ and key in msbatch dwgin input:c:\cadd\projects\....*.dwg outdgn:c:\cadd\ createdgn

Ø  When importing from DXF leave the "Use Line Styles" box unchecked in the "Import Drawing File Settings" dialog to map Autocad linestyles to standard Microstation linestyles (0-7). Check the "Use Line Styles" box to make custom linestyles of the Autocad linestyles.

 

 

Miscellaneous

Ø  In V8i both Tools and Tasks are on the left hand side again. Their display can be changed between a simple horizontal icon bar, a vertical listing like in XM, or to a matrix type layout. To do this, hover your cursor in the area and Right Click > Layout Mode > Icon | List | Panel.

Ø  With the new Trust licensing regime at Bentley some customers are finding that a Bentley sales person is contacting them saying that they are using more licenses than they are entitled to. According to Bentley “...the usage reporting is averaged out over fairly long periods (3 - 6 months) so it would have to be an extended period of over usage for your account manager to be flagged of a possible over-usage occurrence.”  There is no way for the site administrator to be notified as soon as an over usage occurs. Further information regarding Trusted Licensing can be found via the following link:  http://www.bentley.com/en-US/Products/SELECT+Server/Pooled-Trust.htm

Ø  To get to the section of Bentley’s web site that holds the Select log information use the following link: http://selectserver.bentley.com/bss/admin/default.aspx When prompted, log in to the site and you will be shown the reports for that user.

Ø  The row of icons immediately to the right of the Start button is known as the Quick Launch toolbox. You can drag shortcuts to this area to have then added to the toolbox.  The toolbox is controlled by the contents of the folder C:\Documents and Settings\<username>\Application Data\Microsoft\Internet Explorer\Quick Launch\. This folder can be filled with shortcuts of your favourite applications.

Ø  To create the Show Desktop button for your Quick Launch toolbox:

o   Start Notepad and enter the following:

o   [Shell]

o   Command=2

o   IconFile=explorer.exe,3

o   [Taskbar]

o   Command=ToggleDesktop

o   Save it to a file on your desktop named Show Desktop.scf. As soon as it hits the desktop it morphs into the Desktop button. You can then drag it to the Quick Launch toolbar.

Ø  Use a web browser to check out your Select Server license situation by entering http://<servername>:3999

Ø  When using Workspace > Preferences > View Windows > Black Background to White, note that this setting only works if your colour table defines that the background colour is RGB=0,0,0. If you have set your background to be any thing other than this setting then this option is ignored.

Ø  When you need to run a batch process that involves changing attributes, remember that only those attributes whose items have been checked in the Tool Settings dialog box will be changed. Remember also that this is a saveable setting: In other words, you will need to set the check boxes as you wish and then hit Save Settings - for each dgn file that you wish to process.

Ø  The keyin "accudraw shortcuts default" can be used to wipe out any customized shortcuts an operator may have made. "accudraw shortcuts readfile" can be used to relog the text file without restarting MicroStation.

Ø  On a networked computer with USB ports there can be conflicts with the drive letter allocated to different devices or network locations. This may manifest itself when you plug in a USB memory stick and it does not registed itself with Explorer: it may be attempting to use an already allocated drive letter.

o   Go to Control Panel > Admin Tools > Computer Management > Storage > Disk Management. Locate the drive or usb in the list and right click it. Select "Change Drive Letter and Paths" and choose a free slot.

Ø  An alternative method to importing models to your current dgn is if you have multiple sessions of MicroStation running at the same time, then open the Models dialog in both sessions and drag a model from one to the other.

Ø  Design Links in XM cannot be edited. To change a link you must delete and then recreate.

o   Multiple elements can be selected and a link added to all in one hit by right-clicking and selecting Add Link to Element.

o   It is preferable to use Design Links instead of Engineering Links as the latter is unlikely to see future improvement whereas the former is new and under development.

Ø  Tools > Engineering Links opens the E-Links toolbox.

o   Attach Engineering Link allows you to attach a link to a web page to an element. Use full filenames, eg. J:\myFolder\myImage.jpg and not simple filenames. What about File://pathandname...?

o   Show Engineering Links will highlight in dotted blue any elements linked in the file.

o   Follow Engineering Link will open our browser and take you to the page.

o   Edit Engineering Link is used to modify the link information. (See also Edit Tags from the Tags toolbox.)

o   Use the following to open the target files directly instead of opening them within a browser.

o   ustnkeyin://%<fullfilename>

o   may be ustnkeyin://!start <application> %<fullfilename>

o   eg ustnkeyin://!start notepad f:\myfolder\myfile.txt

o   In fact, any MicroStation command can be executed this way:

o   eg ustnkeyin://rd=filename,  ustnkeyin://xd=filename,  ustnkeyin://rc=filename,  ustnkeyin://macro filename,

o   or even

o   ustnkeyin://rd=filename;vi=myView;point absolute

o   or even

o   ustnkeyin://rd=MYVARIABLE:myPath\myFile.dgn

o   A better way to handle this might be with Project Explorer and Link Sets in XM. This will require clients to use XM too. An advantage is that you do not have to use the Engineering Links toolbox to follow links, you just right click on the elements and choose Follow Link from the Reset popup menu that appears.

Ø  If the default output folder listed in the Batch Converter dialog is not to your liking or does not exist on your system, then define the variable MS_DGNOUT to be your desired location.

Ø  The Area Tools application (atool.ma) is a Bentley program but it is not delivered with MicroStation - it has to be downloaded from the Bentley website. It is a useful program but not particulary stable and does not always work as it should. In particular, it does not always handle the Flood method very well. Where possible just use the Element method. You may need to use the Create Complex Shape command to create a single element from many elements defining your area.

o   Also, sometimes when using the Element method it does not recognise the Shapes and Complex Shapes that it normally should. It will report "Element type not valid for this tool". (This often happens right after you have used the Create Complex Shape command.) If this happens, simply hit a tool from the Manipulate, Modify or Change Attributes toolboxes and then come back and select Atools's Measure Area command.

Ø  If you find that double clicking your wheel button in XM is not executing the Fit View command, then check out your button assignments. Go to Workspace > Button Assignments. On the dialog that opens select Remap Buttons. From the Button Mappings dialog that opens ensure that the Middle Button is assigned to XButton1.

Ø  The default setting for Workspace > Preferences > Look and Feel > Single Click is Locked. This means that when you select a tool it stays selected. In other words, if you choose Place Line then you can place lines all day hitting Datapoints and Resets to your hearts content. However, if you have the Single Click set to Single-Shot, then the action command only stays active for one instance and then the Selection tool will be called - and often the element you just created will be highlighted. This behaviour can be temporarily reversed by double clicking on the tool to select it.

Ø  From the Sixth Annual Harnessing Information Technology Workshop held in Washington, D.C., May 9-10 2007.

o   Information technology (IT) is viewed as an enabler of increased sales and a driver for collaboration, productivity improvements, knowledge retention, recruitment, and other business functions.

o   IT ranks among the top three investments of design engineering firms and has a place at the corporate strategic table.

o   IT rollout rates in firms are currently limited by knowledge transfer rates.

o   Training has become a key requirement for IT investment success and consequent productivity gains.

o   Collaboration and security are equally essential to a firm's viability.

o   The CIO's role within infrastructure firms is changing - from technology guru to more of a business strategist (with more than half of the CIOs in attendance coming from the project-delivery side of the business).

Ø  Using File > Import > Image will allow you to paste an image directly in to your MicroStation file thereby bypassing the need to use the Raster dialog box. Be aware however that the quality of the image displayed is not as good though.

Ø  Don't confuse Bentley MX with MicroStation XM. MX is a Civil and draining application where as XM is the latest version of MicroStation.

Ø  It is rare for V8 files to become corrupted. If you do get a file that you suspect may be corrupted, then run the following application:

o   MDL L VERIFYDGN  to load the application.

o   VERIFYDGN VERIFY to check out the file and report any issues.

o   VERIFYDGN REPAIR to check out the file and repair any issues found.

Ø  See http:\\whatismyip.com to find your current ip address.

Ø  To change dgn file working units: MDL LOAD CALCULAT;calc tcb->subpermast=100;calc tcb->uorpersub=10

Ø  From within MicroStation, to open Microsoft Explorer at the current folder you are working and with the active design file highlighted, key-in the following: $ % explorer /e, /select, “$(_DGNFILE)”

o   Note that $(_DGNFILE) will recognise paths with spaces. However enclosing $(_DGNFILE) within “” allows other characters such as commas (,) to be in the file or path name.

Ø  When using Batch Process, if you wish to select all files in a folder and all files in subfolders from that point, instead of selecting the files from the list at the left of the "Select Files and Directories to Process" dialog, try selecting the top desired folder from the "Directories" list on the right, then check on the "Include Subdirectories" box and then "Add" to the "Selected Files" list.

Ø  When using Design History to restore elements from previous revisions that have been subsequently deleted from the file, you must use the Fence method to identify the elements because Selection Set and identifying the element(s) will not work (because they are not in the file anymore).

Ø  Initialise Design History with Utilities > Design History > Initialise.

Ø  With default button mapping (two button chord for Tentative and Middle Button set to XButton1 in Button Mappings dialog) you can then do:

o   Double click wheel = Fit.

o   Click + drag wheel = Pan.

o   Click + hold wheel still for a second or two = Pan with your finger off.  

o   Alt + Click wheel = Initiates Rotate View in your current mode as previously set in Rotate View, Method Dynamic.

o   Shift + Click wheel = Quick and ugly Rotate View mode.

o   Ctrl + Click wheel = Another quick and ugly Rotate View mode.

o   Alt + Click = Match.

o   Ctrl + Tentative (two button chord) = Tentative + O for Origin shortcut.

o   Ctrl + Reset or F3 = main (left side toolbox) at cursor.

o   Ctrl + Shift + Reset or F4 = current task (right side toolbox) at cursor.

o   Ctrl + Spacebar or F10 = Tool Settings to cursor.

o   Spacebar or F11 = focus to AccuDraw.

o   Enter = key in browser.

o   AccuSnap to an element then Ctrl + Reset = quick element info at cursor [infosnap?].

o   Hold Reset = Manipulate popup menu at cursor.

o   Shift + Reset = View popup menu.

o   F2 = Top task list to cursor.

o   F5 = View Attributes.

o   F6 = Saved Views.

o   F12 = Managed focus home. - but what this all does I am not exactly sure right now.

o   When Focus is on Home, PgUp + PgDn will cycle through tasks (right hand side).

Ø  In XM, in MicroStation Manager, right-click (or possibly left click) on the File History icon (the big B) and hit "Set Default Seed File". This utility will allow you to define the seed file used when you use Windows Explorer to create a new file.

Ø  Regarding Save As from within a DGNV8 file to another DGNV8 file and Copy Levels During Merge: If Overrides Exist option.

o   The setting "If Overrides Exist" is a bit misleading.  In the case of merging reference levels, overrides refers to any ByLevel or Override attribute settings that are different in the reference file than those of the same level in the active file.  It does not refer to level Overrides being turned on.  In other words, if the active and reference file both contain a level named test1, and the ByLevel color for that level is Blue in the active file but Red in the reference file, the reference file level will become a new level in the resultant file, prefixed with the reference file name then the level name, and will use the ByLevel color assigned to the reference file prior to merging.  If all attributes, both ByLevel and Override, are the same in both files, the reference level will be merged into the active file level.  Level Display is not considered an override, so if the level is off in the reference file but on in the active file, the elements from the reference file will be displayed when the level is merged into the active file.

o   In any file, the only method for displaying Override symbology is to turn on Level Symbology in the View Attributes.

o   Now, when you do a Save As and merge the levels of those with Overrides set, you still have to have Level Symbology turned on in the output file to see the new symbology. It does not rewrite the symbology of the element to be the overrides - you still need to have Svl Symb turned on.

o   Remember also that if you turn Level Symbology on in the Master file to be able to see the desired overrides - make sure you hit Save Settings before you do the Save As. Otherwise when the output file is created Level Symbology will not be turned on in View Attributes and the output will appear as though the overrides were not brought through.

Ø  Remember that when you use Batch Converter and set options in the Save As DGNV8 dialog box that these are the options that will be used in future for all Save As DGNV8 operations - both with Batch Converter and with single Save As operations!

Ø  When using XYZ Text tools, suppress the X and Y values with the keyin "label hidexy toggle". This way you can use the tool to give height values only.

Ø  To make it more useful in an architectural firm who normally use Working Units of Millimetres, temporarily change your working units to Metres before using the XYZ Text tools. Ths way you can place heights as 1.234metres instead of 1234mm.

Ø  To change your Working Units between metres and millimetres, use the keyins:

o   "set units millimeters micrometers"

o   "set units meters millimeters"

o   Append ";filedesign" to the keyin to have the change made permanent. Without issuing Save Settings, the working units will revert to their original setting when you leave the file.

Ø  If your view border is stuck up under your menu area and you can't get it out: point at one of the view's visible edges and either

o   shift + click to drag it out, or

o   shift + double-click to maximise the window.

Ø  Use the Snapshot tool in later versions of Acrobat Reader to copy a portion of a pdf file and then paste it into MicroStation. Only works with what you can select on screen and appears to be a bitmap copy, therefore the quality is not very good. But it's a start.

Ø  To hide a worksheet, hit Format > Sheet > Hide. To get it back, hit Format > Sheet > Unhide.

Ø  To make some drop down boxes in excel to supply data for a cell, do the following:

o   Make a new worksheet within your current file and call it Data or similar.

o   Enter the data you wish in a column; one cell for each options you wish to present.

o   Select these cells and give them a name in the box above the "A", eg Clients, or DeliveryOptions.

o   Now back in the first worksheet, select the cell you want

o   Data > Validation, Settings tab,

o   Change the "Allow" option to "List".

o   In the "Source" section, enter an = followed by the name you gave your  list, eg. =Clients.

Ø  To make an excel spreadsheet work more like a form whereby only certain cells can be selected and edited we need to go through a two stage process: firstly we determine which cells are to be locked and which are to be unlocked, and secondly we protect the worksheet.

o   Select a group of cells that you do want to be able to edit (ie, the form data and not the form headings).

o   From the main menu select Format > Cells and a dialog box opens.

o   Hit the Protection tab.

o   By default the "Locked" option is always checked. Now we want to uncheck it for the selected range of cells. So switch this option off and hit OK.

o   Repeat this process if necessary for other selections of cells in the worksheet.

o   When all data cells have been identified and unlocked,select Tools > Protection > Protect Sheet.From the dialog box that opens check on "Protect Worksheet and contents of locked cells".

o   In the lower list box ensure that "Select unlocked cells" is the only item checked.

o   Choose and enter a password to protect your work with and hit OK.

o   You now should find that you can only enter and edit the cells  you identified as being unlocked. You also are prevented from adjusting columns and rows as well as borders.

Ø  Check out: http://selectservices.bentley.com/en-US/Support/Support+Tools/TechNotes+and+FAQs/MicroStation+V8/Index.htm

Ø  Occasionally a dialog box somehow expands itself so that its corners are off the edge of your MicroStation application window. This makes it impossible to grab a corner to resize the dialog to a smaller size. Hitting the B symbol at top left will allow you to hit Cascade All, but this will wreck your dialog box layout. A better way to get out of the situation is to point to the border around your offending dialog box and hit <Shift>+Click and drag to a new position. This will allow you to see a corner which in turn will allow you to resize the box.

Ø  For problems when copy and pasting Office documents in to MicroStation, consider the following:

o   Microsoft Word does not copy horizontal complex data that it thinks is outside the width of a typical printed sheet of paper. This limitation is due to the physical space and not to the number of columns.

o   To determine the limitation of a Microsoft Word document In Microsoft Word, select all the entire document.Hold down the <Shift> key and choose Edit > Copy Picture. To enable the Copy Picture option, you must hold down the <Shift> key. In the Appearance section, select As Shown on Screen. In the Format section, select Picture. Click OK.

o   If the message, "The picture is too large and will be truncated" is displayed, you have exceeded the page size limit. To correct this problem, you should reduce the size of your document using the Format menu. Keep in mind that this does not apply to spreadsheets brought in from Excel 2002.

Ø  Graphics Acceleration on most cards will not give true real-time rendering of materials defined as jpg/tiff etc. Your brickwork may scale incorrectly or they may go up the wall instead of along it. Cut out of Graphics Acceleration to see your views render correctly. I understand that Bentley are in the process of swapping over from using OpenGL to ActiveX for their Graphics Acceleration. So when you get the new version and a new computer, then you may see images update correctly.

Ø  Example ntbang! syntax: "null;mdl load ntbang;% c:\progra~1\Calc98\Calc.exe"

Ø  The keyin to attache a new settings file (.stg file) is: setmgr file open ms_data:ab-settings.stg

Ø  If the MDL Fixrange.ma will not solve your range errors in a design file, then its time to use EDG. See the article on EDG Range Errors in Microstation Manager, June 2000, page 73-74.

Ø  Bentley file translation service @ US$10 per file. See http://selectservices.bentley.com/filetranslation/index.htm

Ø  Find Microstation cells for sale at http://home.att.net/~george-nichols/MSCELS/

Ø  You can copy and paste text between MS-DOS and Windows NT. In the command prompt window, right-click anywhere on the title bar to see a menu, click Edit, and then click Mark. This allows you to select text as you would in Windows applications. Select the text you want to copy and press ENTER to copy the text to the Clipboard. You can then paste the text into your desired application.

Ø  Has one of your dialog boxes become wedged up under the top of the Microstation screen and nothing will shift it? To fix this, hit on the Bentley "B" symbol on the top left side of the Microstation Screen (not the view window). From the menu that pops down, select "Cascade All". You will lose the arrangement of any other dialogs you had on the screen but you will have rescued your trapped one.

Ø  The Microstation Community is your local group of likeminded Microstation professionals looking to learn more about their product my sharing information with other users. Find out more information on TMC worldwide activities and your local community at http://www.tmc.org

Ø  Subscribe to ControlAltDelete magazine. Its purpose is to give users of technical information regarding trends and techniques in the Microstation CAD industry. It has well writted feature articles, information on new programs, user group meetings pluse address of web sites of interest. See them on the web at http://www.penbrush.com.  

Ø  Use Utilities->HTML Author to create a simple web page of your cells saved as .gif images. When looking at that page in your browser, right-click over an image and Save As to save the images as .jpg or .bmp format.

 

Configuration

Ø   In your Standards.cfg is the line:
MS_DEF > $(_USTN_SITE)dgn/  # Design files.
This is not always appropriate and can lead to unwanted error messages when using Project Configuration Files. Try commenting out this line.

Ø  It may be advisable to start every project with a fresh *.upf. You can do that by creating another shortcut to the MicroStation executable: add the switch: " -RestoreDefaultsQuiet" (without the quotes, preceded by a space) at the very end of the target line in a copy of the shortcut to start XM and fire it whenever you want to delete the .upf file and dwgdata files. This will change the MicroStation- WorkSpace>Preferences and DWG Options settings back to the defaults.

Ø  If you are running multiple versions of MS (eg. 8.5/8.9/8.11) on your system and are sharing the same standards.cfg file plus the same user config files, but are using an %IF statement to split the location of the interface files, then you may find that your selected Interface keeps changing back to Default. This would happen when you close one version and open another. On these occasions your user config is looking for a particular interface folder name. If that interface name does not exist in the new location, then the Default will be selected instead.

o   In other words, you may have under ...\Workspace\Interfaces\ the folders MicroStationXM\ and MicroStationV8i\. Under MicroStationXM\ you may have Default and MyXMInterface. Under MicroStationV8i\ you may have Default and MyV8iInterface. Your standards.cfg may direct     _USTN_USERINT and MS_GUIDGNLIBLIST to these folders as appropriate for the version started. This all sounds good so far and indeed if you stay using XM then your user config file will remember that you are using the myXMInterface folder. But when you exit XM and start V8i, the user config file will still be looking for myXMInterface, which it will not find in the MicroStationV8i\ folder. When this happens it will use Default by default.

o    The solution is to have the same interface folder names for all versions (8.5/8.9/8.11) eg. just the name myCustomInterface for all versions.

o   Alternatively you could hard code the interface name into your user/site/project config file, with a test for the version and then lock the variable.

Ø  If you have successfully used the License Management Tool and the Product Activiation Wizard to register your copy of MicroStation/Powerdraft, you can still appear to be in demo mode. If this happens, on the License Management Tool select Tools > Activation Status. The status should report as Activated. If it shows Deactivated then close that dialog and hit Tools > Send Logs Now to force a connection with Bentley. This usually clears the problem.

Ø  When writing MicroStation configuration files, the syntax is all important. A common statement is:

%if exists ( file name )
 do something
%endif

eg.

%if exists (C:/myProject/Project-Pen.tbl)
 MY_PENTABLE = C:/myProject/Project-Pen.tbl
%endif

Be aware that the "%if exists" statement should not have any spaces in the filename

eg

%if exists (C:/my Project/Project-Pen.tbl) will not work.
Instead create a variable of the path and then use that in the %if exists statement.

eg.

MYPROJECT = C:/my Project/
%if exists ($(MYPROJECT)Project-Pen.tbl)
MY_PENTABLE = $(MYPROJECT)Project-Pen.tbl
%endif

Strange but true.

Ø  8.5 users who like sscloud.ma may wish to stop it adding all the junk lines to their ucfs. Do this by adding the following to your site config file.

MS_DGNAPPS > sscloud
MS_CMDTABLE_LOAD > sscloud

Ø  The background colour of a sheet model is controlled by the variable MS_DEFAULTSHEETRGB = a,b,c where a|b|c are the rgb values. Note that 1: this will only work on future created sheet models, and 2: will only work if there are no other existing sheet models in the current dgn file.

Ø  User preference files always seem to grow. It is now possible to compress them if they get too large. Define MS_COMPRESS_USER_PREFS = 1 and MicroStation will compress your upf it it gets over half a meg.

Ø  Even though you can only define one env. var. path for the cell selector files, you can call a cell selector file by its full path and filename.

o   Office selector files usually reside in the Standards\Cell\ folder, but you may wish to have project specific cell libraries stored with those projects. If you have set up a menu system that opens your standard cell selector files, then this can be modified to call the project selector file for which ever project you are in. To do this:

o   Decide on a standard location within each project to store your cell libraries, probably myProject\cell\.

o   In the Standards.cfg file add the line

o   MS_CELL < $(_USTN_PROJECTSROOT)/Cell/ or as appropriate to define this path. When each new project is selected from MicroStation Manager this variable will be redefined to be the folder for the new project. Without this variable set, the selector file may open, but the cells will not display as MS won’t be able to find them.

o   Add the new menu item to call the project selector file. The executable line is:

o   expand keyin mdl l cellsel "$(_USTN_PROJECTSROOT)\cell\project.csf"

o   Note the differing slash directions. Note the inclusion of the inverted commas.

Ø  When creating output pdf files with the pdf driver you can specify the filename and location with the following line in the driver:

o   default_outFile/auto_overwrite = "$(_DGNDIR)$(basename(_DGNFILE)).pdf"

o   Filenames containing the [ or ] characters will have those characters replaced with the - char if you are not using the Windows File Open Dialogs. Go figure?

o   See Workspace > Preferences > Look and Feel.

Ø  MS_ALWAYS_CREATE_UPF = 1 will cause a new user preference file to be created each time you start MicroStation.

Ø  Defining MS_COMPRESS_USER_PREFS = 1 will cause MicroStation to compress user preference files once they hit 500kb.

Ø  The location of the UPF in XM is usually CSIDL_LOCAL_APPDATA\Bentley\MicroStation\8.9\  which normally expands to C:\Documents and Settings\<login name>\Local Settings\Application Data\Bentley\MicroStation\8.9\

Ø  Raster reference attachments are now placed on a level. Help control the placement level with the variable MS_RASTER_DEFAULT_LEVEL.

Ø  If you modify you desktop shortcut with a " -wcXXX.cfg" This will include that file in the default ...config folder. Be aware that if this file cannot be found, then all the config files in that folder will be read in alphabetical order. This is not the order that mslocal.cfg directs them to be read in and you may get unexpected results (such as it saying it can't find a certain .ucf file).

o   Note also that if the config file you edit is in the normal config path, then omit the path name and only specify the filename with the -wc qualifier. Sometimes it seems not to correctly read the path and therefore the above rules apply, leading to bad results.

Ø  If working on configuration files and you wish to define MSDIR yourself, be careful of using _WORKDIR or _ROOTDIR. MicroStation may fire up and look OK with these variables, but the Help files may not open. It may be safer to use that line defined in the current mslocal.cfg ie.

o   MSDIR : ${MSDIR_INSTALLED}

o   Not doing so may lead to _USTN_BENTLEYROOT being not defined. This in turn will leave _USTN_DOCUMENTATIONROOT being not correctly defined, which will result in the Help files not opening when called.

o   Best results seem to be achieved by having a minimal change to mslocal.cfg pointing _USTN_WORKSPACEROOT to your network location. Then you can put all other config info in your standards.cfg file.

Ø  A pen table to use can be specified in a plot driver file with the line:

o   pentable=myPenTable.tbl

o   A pen table can also be specified with the config variable:

o   MS_PLOTDLG_DEF_PENTABLE = myPenTable.tbl

o   Note that the latter will take precedence over the former.

Ø  To get rid of the annoying dialog box that asks you to take ownership of another workers changes, define the variable MS_DESIGN_HISTORY_OWNERSHIP_WARNING = 0.

Ø  _USTN_PROJECTDATA is a variable that usually points to the head project directory. Sub folders of this one could be cells, dgn files, materials, pen tables etc.

Ø  In config files the + operator can be used to build strings. eg.

MYVAR =  Micro
MYVAR + Station
will produce a variable containing <<Micro Station>>

Ø  To build a string contianing <<MicroStation>> use the following:
MYVAR1 = Micro
MYVAR = $(MYVAR1)Station

Or you can do:
MYVAR1 = Micro
MYVAR2 = Station
MYVAR = $(MYVAR1)$(MYVAR2)

Ø  The following lines are valid in configuration files.

%if $(MY_VAR) == "ABC"
#do something
%endif
This can be used to test the value of a variable.

o   Note 1 Any leading spaces will be removed from the first definition.

o   Note 2 One space will be placed between each definition.

o   Note 3 Any multiple space groupings will be replaced with a single space.

o   %if defined VAR and %if exists FILE can be used to qualify assignments

o   Finish these off with %else, %elif and %endif

o   %lock to prevent a variable from being subsequently changed.

o   %undef to remove a definition.

o   VAR = <space> will keep the definition but assign it the NULL value.

Ø  There are no issues with MicroStation and PowerDraft using the same configuration files, ucf, pcf, upf, standards folders and interface files. Just be aware of what resource and support files are being included as a result of your various config files: you may need to do some conditional tests to determine which app has fired up.

o   Remember also that the contents of the Default interface folder is always included in any other interface you select from the MicroStation Manager dialog. So if you have a myMS and a myPD interface, then any modifications you have made to the Default interface will be seen in both those other interfaces.

Ø  Numerous palettes can be opened in the Materials Editor dialog box. Materials can be moved or copied between the opened palettes. Where a duplicate material name exists in two or more palette files, only the first one in the list is used - the other instances cannot be assigned to elements.

o   The order in which the palettes appear in the Materials Editor dialog box has nothing to do with the variables MS_PATTERN or MS_MATERIAL. The palettes list in alphabetical order. Therefore if you want your project palette to list first, consider naming all project palettes with a _ character prepended to the name, eg. _MyPoject.pal. This way all project palettes will list ahead of all the other named palettes.

Ø  The material search hierarchy:

o   MATERIAL TABLES: 1. Stored full path (stored in the file). 2. Location that MicroStation was started from (_WORKDIR). 3. Location of active file (_DGNDIR). 4. MS_MATERIAL. 5. MS_DEF.

o   PALETTE FILES: 1. Stored full path (in MAT file). 2. Location that MicroStation was started from (_WORKDIR). 3. Location of active file (_DGNDIR). 4. MS_MATERIAL. 5. MS_DEF. 6. Stored full path of .MAT file.

o   IMAGES: 1. Stored full path (in PAL file). 2. Common files location (C:\Prog ram files\common files\...). 3. MS_PATTERNS. 4. MS_BUMP. 5. MS_IMAGE. 6. Location of active file (_DGNDIR). 7. MS-D EF.

o   If two palettes have same material name...first one found is used in all cases, regardless of what is listed in MAT.

Ø  Plot driver files have a line that can specify a pen table to use. It can often be specified as follows: pentable=$(MS_PENTABLE)myPenTable.tbl

o   This is fine if you always use that pen table only. In order to give you flexibility to use different pentables for different projects you may wish to do the following:

o   In the print driver file change the pentable line to: pentable=MY_PEN_TABLE:

o   In the office Standards.cfg file, define the following: MY-PEN-TABLE = $(MS_PENTABLE)myPenTable.tbl

o   Then in projects where you have a project specific pen table, you can define the following in your project config file: MY-PEN-TABLE = $(MY-PROJECT)myPenTable.tbl or similar.

o   or you may wish to have a blanket entry of:

%if exists ($(MY-PROJECT)myPenTable.tbl)
MY-PEN-TABLE = $(MY-PROJECT)myPenTable.tbl
%endif

Ø  If a project config file you may be defining several entries for MS_DEF, one for each folder in your project perhaps. You may then have followed that will a similar number of entries adding those folders to the MS_RFDIR variable. These folders could be added with one line: MS_RFDIR = $(MS_DEF)

Ø  If you are editing your desktop MicroStation shortcut in order to specify certain configuration files, then note:

o   when specifying a general configuration file to use with the -wc qualifier, that the file extension is optional,

o   when specifying a project configuration file with the -wp qualifier, or a user configuration file with the -wu qualifier, that the file extension must not be used. eg specify -wpMyProject and not -wpMyProject.pcf.

Ø  If you are using a Bentley hosted license setup for XM, then to allow pre XM versions of MicroStation to run on your system download and install the Select Server software. The system will probably not allow you to install the full program but will allow you to install something called Gateway. Do this. When this completes fire it up from the Start menu and verify that the settings are correct. Next edit your old MicroStation license file (msv8.lic, ms.lic) to read SERVER = <NAME-OF-COMPUTER-WITH-GATEWAY>. eg. SERVER = MYCOMPUTERNAME.

Ø  _WORKDIR is defined very early in the config process and points to the directory where MS/PD/View are installed. So you could set:

MSDIR = $(_WORKDIR)
and then include
%include $(MSDIR)config/msdir.cfg

This way MicroStation, Powerdraft and View could all share the one configuration file.

Ø  _ENGINENAME is defined to be "MicroStation", "PowerDraft" or "View". So you could do the following:

%if $(_ENGINENAME) == "MicroStation"
do something
%endif

%if $(_ENGINENAME) == "PowerDraft"
do something
%endif

%if $(_ENGINENAME) == "View"
do something
%endif

Or you could use:
%if defined (_MICROSTATION)
do something
%elif defined (_MSDRAFT)
do something
%else
do something
%endif

The %else is only needed if you want a default to catch anything that may have been missed.

...

%if defined (_BENTLEYVIEW)
Do something
%endif

Ø  To remove the MicroStation on the web splash screen when you fire up MicroStation, try defining the following: MS_OTWREG_NOCHECK =1

Ø  When you attach references the starting folder is always the one you attached from previously. You can force it to open in a specific folder with the MS_REF_DEFAULTATTACHDIRECTORY variable. A useful entry would be to have it open at your current folder. Do that with: MS_REF_DEFAULTATTACHDIRECTORY = $(_DGNDIR)

Ø  Set MS_LEVEL_EDIT_NESTED_ATTACHMENT_LEVELS to 1 to allow you to change the symbology override settings of nested reference files. Note that if this variable is subsequently undefined - or the file is viewed on a system where this variable is not defined, then changes will again not be possible however the previous changes will be honoured.

Ø  In the Cell Maintenance dialog box, if you click on the File menu and the list of cells (defined by MS_CELLIST) is long enough to make the menu fill the screen from top to bottom then the ones that are off the bottom edge of the screen are inaccessible. But even worse than that, you cannot select any item that is above the File label.

Ø  When you select No Project in the MicroStation Manager dialog box, does the folder change to your Standards\dgn\ folder? If you would prefer it to change to your project head directory, then add MS_DEF=$(_USTN_PROJECT) or MS_DEF=<drive+path> eg. MS_DEF=H:/Projects/ to your standards.cfg file.

Ø  When you hit New in the User section of the MicroStation Manager dialog box in order to create a new user on your system, MicroStation does not use the untitled.ucf file as a template but instead takes the Username that was selected before you choose New. Be careful of this as if you are the office administrator and you create a new user, you will be giving them all the variables you have defined in your user config file. It may be an idea to keep a templact.ucf file, or similar, that you select first before you create new users on your system.

o   The template user preference file taken when you create a new user is defined by $(MS_USERPREF)$(MS_USERPREFSEED).

Ø  In order to have one or more basic macros run automatically at startup time, you will need to edit either your user or standards config file. Firstly add the line:

MS_DGNAPPS > runmacro

This tells MicoStation to start an internal program that will look for and run any macros that are defined by:
MS_DGNMACROS > macroName
MS_DGNMACROS > nextMacroName
MS_DGNMACROS > antherMacroName
etc.

Ø  A cool line for your user cofig file is: _USTN_USERDESCR   = Workspace for $(_USTN_USERNAME)

Ø  A note about %ifdef statements in MicroStation configuration files. These statements must be on a line by themselves. No comments can follow.

Ø  Workspace > Configuration opens the Configuration dialog box. Any changes made are reflected in the current ucf file. The key-in "mdl silentload CFGVARS PROJECT" (case sensitive) will start the same dialog but with the current pcf loaded instead. This will allow you to edit the pcf from within MicroStation. However, like they are in ucf files, any new variables are appended to the end of the file, which may not suit some project administrators. Also be aware that it was said that any %ifdef startments within the pcf would be stripped out when the file was updated. However, this does not seem to be the case anymore.

Ø  When editing configuration files remember that priority is usually given to resources found first in a list of alternatives. However, be aware that symbology resources are overridden with each alternative. Therefore to ensure your site resources are read after the system resources, make your resource entry:

MS_SYMBRSRC > $(_USTN_SITE)symb/*.rsc
and not
MS_SYMBRSRC < $(_USTN_SITE)symb/*.rsc

Ø  When defining MS_DEF or MS_RFDIR in PCF files, ensure that your slashes are / and not \, and ensure that you finish the path with a /. They will appear \ in the Configuration dialog box.

Ø  To allow yourself to use the Project > New feature on the MicroStation Manager dialog box:

o   The new projects will be created in the directory pointed to by _USTN_PROJECTSROOT eg. Z:/Projects/.

o   New Project configuration files will be created in the directory pointed to by _USTN_PROJECT eg. Z:/Projects/.

o   A text file in this directory named project.template will be used as the seed for your new pcf.

o   The sub-directories created within the project are defined by the configuration variable _USTN_PROJECTSUBDIRS. Set it in your standards.cfg eg.

_USTN_PROJECTSUBDIRS=dgn
_USTN_PROJECTSUBDIRS>dgn/plot
_USTN_PROJECTSUBDIRS>tranIn
_USTN_PROJECTSUBDIRS>tranOut

Ø  To adjust the width of the level picker item in the Attributes toolbox, set the veriable:
MS_LEVEL_PICKER_WIDTH = <width in pixels>.  eg. MS_LEVEL_PICKER_WIDTH = 230

o   To have the level picker item in the Attributes toolbox display the description or number instead of the name use the variable:

o   MS_LEVEL_DISPLAY_FORMAT = <X>  where X is N for Name, D for Description or C for the level number.

o   eg. MS_LEVEL_DISPLAY_FORMAT = D

o   You can have a combination of two by using the following:

o   eg. MS_LEVEL_DISPLAY_FORMAT = D(N)

o   or  MS_LEVEL_DISPLAY_FORMAT = N: D

o   If the above have been set in the site config file, you can reverse the changes in your user config file with:

o   %undef MS_LEVEL_DISPLAY_FORMAT
%undef MS_LEVEL_PICKER_WIDTH

Ø  Use _USTN_HOMEPREFS instead of _USTN_HOMEROOT to set user preferences to a network location.

Ø  Define an environment variable from a desktop icon target line with:
-ws<VARIABLE>=<NUMBER>
eg. -wsMY_PROJECTS=J:/

Ø  Define a configuration file to be included at startup from the icon target line with:
-wc<FILENAME>
eg. -wcF:/Config/config.cfg

Ø  Define a specific username to use in the session from the icon target line with:
-wu<USERNAME>
eg. –wuanthony

Ø  The AccuDraw shortcuts text file is located by default at ...Workspace\system\data\shortcut.txt.

o   If an operator wants to use their own shortcuts, consider adding the following line to their UCF: MS_ACCUDRAWKEYS = $(_USTN_USER)$(_USTN_USERNAME)-shortcut.txt

o   This will cause MicroStation to look for the AccuDraw shortcuts text file in the same folder as the UCF and named for the user but with -shortcut.txt appended. eg. michael-shortcut.txt.

Ø  _USTN_PROJECTDATA is defined in msconfig.cfg to be $(_USTN_PROJECT)$(_USTN_PROJECTNAME)/.

o   _USTN_PROJECTNAME is the filename of the selected PCF and

o   _USTN_PROJECT is the folder where your PCF's reside.

o   The default installation assumes that your project head folders and your PCF files are in the same place.

o   If this is not the case then you can define (probably in your standards.cfg file) _USTN_PROJECTSROOT to be the location of your projects.

o   If your project head folder name is always going to be that of the PCF filename (eg. if 123.pcf will always refer to project name 123) then you can define the following in your standards.cfg file.

o   _USTN_PROJECTDATA = $(_USTN_PROJECTSROOT)$(_USTN_PROJECTNAME)/

o   If, however your PCF names will not always be the same as the folder name, then you can define the above line in your pcf files. This will give you the option to change the _USTN_PROJECTNAME portion if required.

o   The PCF should also contain the line

o   MS_DEF < $(_USTN_PROJECTDATA)dgn/

o   With these variables set, when a project is selected from the Projects section in the MicroStation Manager dialaog box, you should find that MicroStation changes directory to the correct folder.

o   The advantage of this system is that there is often no need to modify any lines within each PCF. To create a new PCF for a new project, simply copy the template PCF (or an existing project PCF) and rename the file to the name of the new project head folder.

Ø  CAPABILITY_LEVELS_CREATE                    280 /* Allow the creation/delete of levels */
CAPABILITY_LEVELS_ALLOW_DELETE              281 /* Allow user to delete a level - if CAPABILITY_LEVELS_CREATE is enabled */
CAPABILITY_LEVELS_ALLOW_CREATE              282 /* Allow user to create a level - if CAPABILITY_LEVELS_CREATE is enabled */

Ø  For a list of MicroStation capability configuration variables see ...Program Files\Bentley\MicroStation\config\system\capability.list, or possibly ...\workmode.cfg

Ø  When editing a configuration variable file, insert a carriage return at the end of the last line to ensure the entire file will be processed. Press <Enter> to insert a carriage return. See also tip 80.

Ø  When MicroStation starts it attempts to use the last used user configuration file, unless a user has been specified in the configuration process (usually the Windows login name), in which case it attempts to use that file.

o   On both these occasions if the ucf file is not found then MicroStation will attempt to use the file untitled.ucf. Therefore to prevent the ugly system window error from appearing, ensure you have a untitled.ucf file in your user config folder.

o   No environment variable exists to redirect the location of or name of this file. Nor will it be used by MicroStation as a seed file for use when "New..." is selected from the User item on the MicroStation Manager dialog.

Ø  When using Project Configuration Files to help locate project reference files, note the following: When a project is duplicated on the network (eg. to move from the DA to CC stage of the project, or to archive/backup to another drive) a new PCF file will need to be created and edited to define the new path. This will all work fine EXCEPT:

o   If you exit MicroStation after working on the new project and then re-enter MicroStation you will see the new PCF still displaying in the MicroStation Manager dialog. This might seem good, but it is not. MicroStation's memory of the original location of the reference files may take over and when you do enter one of your new files you may find that your references are still being drawn from the old location.

o   To counter this when at the MicroStation Manager dialog you should temporarily change the Project displayed to another project and then change it back again to your new project. Now when you enter MicroStation you should find your references are being drawn from the correct location.

Ø  New XM variable: _USTN_SYSTEMDGNLIBLIST

Ø  For project folder structures, consider a top level of: InProgress, Issued, Received, Resources.

o   Under InProgress could be Drawing (or Plots) and Model (which has all the working files. This way, non cad people would only go to the Drawing folder. There is no DA/CC folder, just continual updates of the only model and drawiing information. Snapshots can be copied out and placed in the Issued folder. Store Issued and Received information by discipline not company name.

o   Filenaming = discipline-view-level-content.dgn
A-P-01-Core.dgn Architectural Plan Floor 1 core layout
A-P-01-Part.dgn Architectural Plan Floor 1 partitions layout
A-P-01-Struc.dgn Architectural Plan Floor 1 structure
A-P-02-Core.dgn Architectural Plan Floor 2 core layout

o   _USTN_PROJECTNAME is the var that gets the name of the pcf. So therefore you could define MS_DEF = P:/$(_USTN_PROJECTNAME)/inprogress/model/ (or as appropriate) in the standards.cfg file and not need it at all in the pcf.

o   Could also define in standards.cfg: MS_CELL > P:/$(_USTN_PROJECTNAME)/resources/cell/

o   Consider using ProjectName.cel instead of Project.cel for the project cell library. This can be defined in standards.cfg with  Could also define in standards.cfg: MS_CELLLIST < P:/$(_USTN_PROJECTNAME)/resources/cell/$(_USTN_PROJECTNAME).cel

o   Could also define MS_DEF and MS_RFDIR in standards too:
MS_DEF = P:/$(_USTN_PROJECTNAME)/
MS_RFDIR = $(MS_DEF)InProgress/Model/Plan/
MS_RFDIR > $(MS_DEF)InProgress/Model/Elev/
etc.

o   Then you would only need anomalies in the pcf, such as new folders:
MS_RFDIR > $(MS_DEF)InProgress/Model/NewFolderName/

o   In the site file, you could set RESOURCES = P:/$(_USTN_PROJECTNAME)/Resources/

o   and then could set
MS_RFDIR < $(RESOURCES)Border/ or
MS_RFDIR = $(RESOURCES)SeedFiles/ etc. (And its best not to set seed files to a list of paths.)

o   Or you could get clever and have the standards.cfg file only define the project config if the files exist:

%if exists $(RESOURCES)Seed/$(MS_DESIGNSEED)
MS_SEEDFILES = $(RESOURCES)Seed/
%else
MS_SEEDFILES = $(_USTN_SITE)Seed/
%endif

o   Remember to set paths with a < to set priority but to use > for resources such as fonts, line styles, and dgnlibs.

o   Also consider
MS_DGNLIBLIST = $(RESOURCES)dgnlib/*.dgnlib
and
MS_GUIDGNLIBLIST = $(RESOURCES)dgnlib/*.dgnlib
but perhaps this should be
MS_GUIDGNLIBLIST = $(RESOURCES)interface/*.dgnlib

o   You can define how dwg files are opened with MS_DWGDATA. Best to set this at site level, ie, set it at an office level and resist letting it be set for each project. Check this out to see what it does.

o   MS_PLTDLG_FORCEOUTDIR can be set to define a folder for output files. Can this remove the need to define it in the drivers and batchplot spec files?

o   Check out also MS_PLOTDLG_DEF_PLOTFILE and MS_BATCHPLT_JOBSET_DIR.

Ø  Application to automatically set colour/style/weight to ByLevel when Level item changed MS_DGNAPPS > SynchByLevel

Ø  Define a path to your XM screen menu dgn files with MS_APPMEN. Then load the menu with AM=<file_specification>,<model_name>,s<#>. Where file_specification is the dgn file, model_name is the model within the dgn, and s# is the number in the range of 1–5, indicating the number of the screen menu.

Ø  MS_DESIGNMODELSEED  File containing the design seed model.
MS_DESIGNMODELSEEDNAME  Name of seed model for new design models.
MS_SHEETMODELSEED  File containing the sheet seed model.
MS_SHEETMODELSEEDNAME  Name of seed model for new sheet models.

Ø  MS_THUMBNAIL is usually not defined. If it is defined to be a word, then that word specifies the save view name within design files to be used as the preview image in MicroStation Manager.

o   When this variable is not defined, MicroStation takes the current contents of the lowest View Window open. In other words, if View 1 is open after Save Settings, then the contents of this view will be used as the thumbnail for this design file.

Ø  MS_PLTR is the name of the default printer driver (.plt) file.  Note that in some circumstances, this variable is used both as a search path and as a default printer driver file. Therefore even if you don't have a default printer, still define this variable to be a printer in your site plot driver folder as the path will be used to help MicroStation search for drivers in your folder.

Ø  Setting MS_DISALLOWFULLREFPATH will prevent users from being able to save the full path to references. You will be forced to use environment variables.

Ø  MS_RFDIR also defines the search path to raster references. Remember that there is a setting in rasters whereby your pcf will automatically be edited to add the new path to the raster being attached. I think this would be very bad from a management and archiving/transferring point of view.

Ø  Deny the ability for all users to create and edit levels by setting _USTN_CAPABILITY > -CAPABILITY_LEVELS_CREATE in your site config file.

Ø  To prevent the Level Manager dialog box from displaying the level library name in the Name column, use MS_HIDE_LIBRARY_SOURCE_NAMES = 1.

Ø  See ...system/data/sheetsizes.def to define the sheet sizes used in the Models dialog box. Define a new location for this file with MS_CUSTOMSHEETSIZEDEF.

Ø  MS_PLTR only stores the path to the driver files and not a default file. It will not override what is stored in the upf as the last driver used.

o   To tell MicroStation to always open the plot dialog with a specific Bentley driver, then use MS_PLOTDLG_DEF_PLTFILE = myDesiredDriver.plt

o   The full path shouldn’t be needed as MS_PLTR is used to find the driver.

o   Doing the same with a System Printer driver can't be done. There is a variable: MS_PLT_SYSPRT_PLTFILE = mySysPrinterDriver.plt but it does not fully work. It will open the "Select Printer Driver File" dialog with the correct driver selected, but does not load it.

o   There is a variable called MS_PLT_USE_MRU_DEFAULTS where MRU = Most Recently Used. But it does not really work either. It does not load the desired sys printer driver and it also clobbers all your other printing preferences that you probably would want used.

Ø  Some working environments have MS_DISALLOWFULLREFPATH = 1 set to ensure that you can't save files from other directories to your project files. There are good reasons for this - primarily to ensure that you are always looking at the files from your folder and not another one, possible from a previous stage of the job. There are however, times when you will want to attach a file that is outside the path of MS_RFDIR. To do this check on the "Save Relative Path" option at the bottom right of the "Attach Reference" dialog.

Ø  Bentley View does not contain a Workspace > Configuration dialog box, however you can access it via keying in "mdl load cfgvars".

Ø  You can expand an environment variable within a keyin by appending it with a ":" eg. CT=_USTN_SITE:TABLES\COLOR\color.tbl

Ø  If you edit your MicroStation desktop icon's Target line to be "c:\bentley\program\microstation\ustation.exe" "-wsMY_FILE=%1" "%1", this sets the variable MY_FILE to the name of the file being opened.

o   Then within a configuration file you can set the following lines:

%if $(DevDir(MY_FILE)) == "c:\work\"
#do something
%elseif $(devdir(MY_FILE)) == "c:\temp\"
#do something else
%endif

Ø  The following lines are valid in configuration files.

%if exists (G:/USTN/*.*)
#do something
%endif

A possible use for this is in mslocal.cfg to test for existence of network connection.

Ø  Following is a useful list of variables available for use in MicroStation configuration.

o   _USTN_FIRSTDGNFILE

o   _USTN_NEWDGNFILE

o   dev = device

o   dir =  directory

o   devdir = device and directory

o   parentdir = parent directory

o   parentdevdir = device and parent directory\

o   basename = file

o   filename = file and extension

o   ext = extension

o   noext = complete filespec minus the extension

Ø  Following is a list of MicroStation command line switches.

-A<application name>   Starts the MicroCSL application specified by the application name parameter during the startup of MicroStation. Multiple -a options can be used.  

-MICROCSL<mcsl application name>       Starts the MicroCSL application specified as an offline MicroCSL application. (DOS Protected Mode Only) 

-C<cache limit> Specifies the cache limit in KB    

-R            Opens the design file in read-only mode              

-O           Does not open any reference files          

-I<parameters>                Passes through parameters to INITAPPS              

-U<undo buffer size>    Specifies the undo buffer size in bytes  

-WU<user>        Specifies user configuration       

-WP<project>   Specifies project configuration 

-WI<interface> Specifies interface configuration              

-WD<database>               Specifies database configuration             

-WA<mdl-application>  Specifies MDL application to start at MicroStation initialization (same as MS_INITAPP)   

-WC<configuration file with path>           Specifies the configuration file MicroStation will use on startup (for example, -wcC:\Bentley\Workspace\Config\myconfig.cfg). This was added in MicroStation SE.      

-WR<path>         Specifies _USTN_WORKSPACEROOT (for example, -wrC:\Bentley\Workspace\). This was added in MicroStation/J.

-WS<configuration variable>      Specifies a configuration variable to be defined (for example, -ws_PROJECTBANK=1). This was added in MicroStation/J v7.1.           

-DEBUG                Dumps configuration variables to msdebug.txt and exits              

-S<startup file> Dumps text in the startup file into the command queue after startup    

-DISPLAY<display name>              X Windows ONLY - Directs output to the X Windows display device indicated by display name   

-Q           UNIX ONLY - Enables the command in MicroStation "!" (Exclamation point) which creates a new Shell. This will override the setting in the workspace>configuration>operation>escape_to_O.S. menu.             

Ø  Some MicroStation MDL applications that you have called in you standards.cfg config file will not run under Bentley View. Some of these are just ignored while others cause the System dialog box to open, which is not a good look. To prevent this from happening you will need to identify which applications are causing the problem and edit your standards.cfg file to ensure they are not read when View loads. An example is shown here.

o    #Runmacro not compatable with Bentley View. So ensure it is not called by View users.

%if !defined(_BENTLEYVIEW)
MS_DGNAPPS > runmacro                          #MDL to run at startup.
MS_DGNMACROS > cellSelector
%endif

Ø  If you have a project selected in MicroStation Manager but then change it to No Project, this change will not be remembered if you use Bentley File Open dialog boxes. (This is bad because the next time you start MicroStation the old project will still show in MM but you may enter a file from a project that has no PCF, but you will still get the old project's PCF info loaded. This is bad.) However, if you use Windows File Open dialogs the change will be remembered.

o   That would seem to encourage the use of Windows File Open dialogs, but this must be recommended with caution as on some machines(???) the list of files in the Windows File Open dialog shows in Date order and not in Alphabetical order. This is a real pain. There must be a Windows way of changing this, but noone at Bentley knows how to do it.

o   CRs and SRs have been put to Bentley, but no change has been made.

o   A way to get around it is to create a little dummy NoProject.pcf file that has no entries in it. Selecting it when you wish No Project will work.

Ø  Only one directory can be defined as the cell selector directory. Therefore if the pcf comes along and defines it as somewhere specific for the project, then the project specific selector files will work, but all the standard selector files will not.

Ø  Atool.ma is a third party mdl application available from Bentley's Developer Ware site. Note the following:

o   Versions prior to 8.0.1.2 of 11/1/2 allowed you to call MESAUREAREA as a keyin from a menu or toolbox which would open the tool settings dialog with the commands information. V8.0.1.2 has a new command table that is MEASUREAREA ELEMENT|POINTS|FLOOD etc. and does not allow you to call the tool settings dialog from a menu or toolbox.

o   The resource file atool.rsc usually sits in ...\system\data\ but can be redirected with the variable BSI_ATOOL.

o   The resource file atool.rsc must be readwrite. If it is readonly, then the application will not open the file and will revert to default variable values.

o   In a single user environment this is not really an issue, but in an office situation where you want to protect the data from user changes, one way to manage this is to define a startup macro (eg. MS_DGNMACROS > CopyAtoolRsc) that will copy atool.rsc from the network area to the local C:\temp\ directory. Then also define BSI_ATOOL = C:/TEMP/ to allow the application to look for the resource file on the local disk. Whenever the user restarts MicroStation the file is always copied down from the network thereby overriding any changes that the user may have made to the file.

o   If however, you work in an environment where the local disk is invisible to users, then a course of action would be to create a folder under _USTN_USER for each user, and then to set the macro to copy the .rsc file there, and have atool read it from that location too.

Ø  MS_REF_DEFAULTSETTINGS. This variable controls the default settings for reference attachments. It is set to a comma-separated list of key=value pairs, for example: "snap=1,locate=0,trueScale=1,scaleLineStyles=0", Recognized keys and values include display=0|1, snap=0|1, locate=0|1, useLights=0|1, saveRelativePath=0|1,scaleLineStyles=0|1, ignoreWhenNesting=0|1, displayRasterRefs=0|1, displayBoundary=0|1, nestMode=live|copy|nest, nestDepth=value

Ø  Defining _USTN_PROJECT=$(_USTN_PROJECTSROOT)pcf/ (or some other path) specifies where the PCF files are located. This is usually defined in one of the early config files. However, if you define it in a series of UCF's you can then change user to show a different list of projects in the MicroStation Manager dialog.

Ø  Adding extra paths to MS_DEF in you PCF will add those paths to the Directory pulldownmenu in the File > Open and Reference > Attach dialogs.

Ø  This may help in relation to nested ref levels going on and off by themselved in sheet files. MS_LEVEL_EDIT_NESTED_ATTACHMENT_LEVELS=1

Ø  More on Client specific user interface configuration.

%if exists ($(Client)*.s01)
_USTN_UISTANDARDS = $(Client)
%endif

Ø  Snip from Ron R

o   Create the custom tools/menus etc. in your workspace

o   rename the resulting *.m01 file to *.s01

o   move the *.s01 file to a location on your network

o   set the variable _USTN_UISTANDARDS = yournetworklocation   at a site level or above

o   tools will be listed in the available toolboxes dialog for all users

Ø  There is a difference between ${VARIABLE_NAME} and $(VARIABLE_NAME). According to CFG file syntax, any variable defined by solving a ${...} is more dynamic, in that if the variable inside the { } changes later on, that variable defined by it will have its value updated.

Ø  If you keyin "ustation.exe /?" at the system prompt, you'll see a list of the switches for that particular version.

Ø  <NG>In my experience w/ -debug, the pcf vars are not reported correctly, it seems to me that it doesn't see the <projectname> definition in time to include it (& its dependencies) in the output txtfile. To fix this, use command-line args to specify <projectname>:

o   <path>\ustation.exe<space>-wc<path>\mslocal.cfg<space>-wp<projectname><space>-debug=5

o   or:

o   <path>\ustation.exe<space>-wc<path>\mslocal.cfg<space>-ws_USTN_PROJECTNAME=<projectname><space>-debug=5

o   I keep project-specific "debug <specificprojectname>" shortcuts in my

o   startmenu. If you specify a path in the shortcut's 'Start in:' field,

o   msdebug.txt will be written to that dir instead of \Program\MicroStation\.

Ø  If you are in 08.05.00.64 (or later), set MS_LEVEL_EDIT_NESTED_ATTACHMENT_LEVELS.  This will allow you to directly edit the nested level's attributes and properties.

Ø  Consider the use of If statements in config files. One use may be to test for the presence of a network connection. eg. if network exists, then go this, else do that.

#------ Using Network MM ------#
%if exists (M:/config/config.cfg)
blah blah blah
%include something$(_USTN_PROJECTCFG)
%endif

or

%if !defined (MS_DBDLM)
%if defined (_WINCONN)
MS_DBEXT        : orsrvwin.exe
%elif defined (_msdos)
MS_DBEXT        : orserver.pxe
%elif defined (_winNT)
MS_DBEXT        : orserver.exe
%else
MS_DBEXT        : orserver
%endif
%endif

Find out what "level 3" means in a config file, eg:  %include $(_USTN_PROJECTCFG) level 3

Ø  To have your ustn look for a network startup, if not use local.

[Remember to have an empty line at the end of the file.]
MSDIR = c:/prog....
jfa = //...../V8Workspace/
%if exists ($(jfa))
%include $(jfa)blahDblah.cfg
%else
_USTN_WORKSPACEROOT : c:/program file......./workspace/
_USTN_HOMEROOT c:/...../home/   ??this line needed??
%include $(MSDIR)config\msconfig.cfg
%endif

Ø  MS_USEPREFSEED to define a safe user preference seed file. If Bentley have made a variable of this name then they must know there is a serious problem with the upf's that they cannot fix.

Ø  By default, images created from MicroStation are saved to $(_USTN_PROJECTDATA)out/. If you don't have or use this directory, redefine it with: _USTN_OUT = $(_USTN_PROJECTDATA)...../

Ø  If you are trying to change you dgn file working units but the dialog box is not showing any other options to choose from, then ensure that your ...workspace\system\data\units.def file is out of the box. This is a Notepad editable file. It may have been edited by a system administrator to disallow users from changing the working units. The location of this file can be changed with MS_CUSTOMUNITDEF.

Ø  To enable V7 workmode, set the environmental variable MS_OPENV7 to be 3.

Ø  Consider adding these to your site or project config fles.

MS_DESIGNMODELSEED              < ModelSeed.dgn
MS_DESIGNMODELSEEDNAME  = 2D Design

Ø  To ensure your pattern cell will be found When using the Match Pattern tool, place the path to the cell library that contains this pattern is in your site/project/user config file.
eg. MS_CELLLIST > $(_USTN_SYSTEMROOT)cell/areapat.cel

Ø  The Cell Library db File menu lists cell libraries in the MS_CELLLIST variable. The Attach Cell Library dialog box File menu lists the file history.

Ø  The default background color for a new sheet model can be changed by setting up the configuration variable MS_DEFAULTSHEETRGB to an rgb color value.  For example, 200, 200, 200 would be a  light grey.

o   Keep in mind that a dgn file can only have two background colors: one used by all the design models, and one used by all the sheet models.  If the file already contains a sheet model, the config var is ignored when you create another sheet, and the new one will have the same background color as the existing sheet(s).

Ø  "Workspace > Preferences > Memory usage > Max. element cache" default is 10240, have wound it up to 30000.

Ø  To get a complete list and descriptions of all MicroStation configuration variables, keyin "mdl l cfgvars printCfgVarResource". Look for two new text files in your ...Bentley\program\MicroStation\ directory called cfgvars.txt and cfgvlong.txt.

Ø  The environment variable of the current design file directory is _DGNDIR.

Ø  The environment variable to set your own custom dictionary for the MicroStation spell checker is MS_SPELLINGUSERDICTIONARY=<FILENAME>

Ø  Project or site CAD managers may wish to prevent users from changing the value of environment variables that have been set in the site or project config files. Whilst users may not be able to edit the actual site or project text files they can define the same variables in their user config file. As the user configuration file (UCF) is loaded last at startup its contents therefore overwrite any variables that have previously been set.

Ø  Project or site CAD managers do have another trick up their sleeves: the %lock XX entry. For example, to prevent the MS_RFDIR entry from being changed after it has been set in the project configuration file (PCF) the entry %lock MS_RFDIR should be added to the end of the PCF.

Ø  To understand configuration variables in Microstation Basic see Microstation Manager, June 2000, page 24-25.

Ø  When Microstation looks for workspace support files (such as settings files, seed files or macros), it looks firstly in the .../Workspace/System/... directory and then in .../Workspace/Standards/... directory. This may not be appropriate for any number of reasons.

Ø  To instruct Microstation to looks for these files in the reverse order, edit the ../Workspace/Standards/Standards.cfg file and follow the suggestion contained within about changing the search order.

Ø  .../Workspace/Standards/Data/MyFile.stg Stores all your created Groups, Components MultiLines and Dimensions.

Ø  .../Workspace/System/Data/Scales.stg Stores your output scales for plotting, and working units you create.

Ø  .../Workspace/System/Data/Units.stg Is the Seed file for creating different working units, but does not store yours here. (Go figure!)

Ø  .../Workspace/System/Data/Style.stg  is the Seed file for creating multiline and dimensions, but does not store yours here. (Go figure!)

o   So when distributing your settings file to other users, you will also need to send Scales.stg. Check the dates on the files to see when they were written to.

o   In fact, it is a good idea to store the Scales.stg file together with your MyFile.stg in the ...Standards/Data/ directory. If you have done this, and Microstation does not appear to be reading the scales from you new file, check out Tip 45 to ensure files are being read in the correct order. If Tip 45 has not been followed at you site then you will need to store Scales.stg in the ../System/Data/ directory.

Ø  When adding environment variables to your user configuration files, be aware of the meaning of the five operators used: =, :, +, < and >.

MYVARIABLE = 23                            Set the value of MYVARIABLE to be 23.

MYVARIABLE : MYWORD              If MYVARIABLE has previously been defined, do nothing. If the variable has not defined, set the value of MYVARIABLE to be MYWORD.

MYVARIABLE + NEXTWORD         To the current value of MYVARIABLE, add a space, then add NEXTWORD.

MYVARIABLE > 99                            If MYVARIABLE has previously been defined, to the current value, append a semi-colon(;), then append 99. If the variable has not been defined, then set the value of MYVARIABLE to be 99.

MYVARIABLE < LIST.TXT                If MYVARIABLE has previously been defined, to the current value, prepend LIST.TXT plus a semi-colon(;). If the variable has not been defined, then set the value of MYVARIABLE to be LIST.TXT.

Ø  Have you upgraded to a new version of Microstation but found that you cannot find the new items in the main menubar? This will be because you have previously customised the menubar to suit yourself.

o   You have a decision to make: Do I keep my fabulous modification and not have access to the new menu items, or do it throw away my customizations and get the new menu?

o   When you modify the main menubar Microstation remembers the whole menu and not just the items you modified. This information is stored in a file called USTN.M01 in your User Interface directory  ...ustation\wsui\<my-user-name>\ (for Microstation 95/SE) or in ...Bentley\Workspace\interfaces\Microstation\<my-user-name>\ (for Microstation/J).

o   To scrap your modification and go with the new version menu, simply delete this file and restart Microstation.

Ø  When you upgrade your copy of Microstation/J the installer will zap your license file ..BENTLEY\PROGRAM\MICROSTATION\LICENSING\MSJ.LIC. If you don't have a backup this could be a problem. Protect yourself by having a backup copy. In addition you could save yourself the trouble of retrieving your backup after you upgrade by renaming your license file to, say MY.LIC. In order for Microstation to find this file you will need to define the following environment variable, preferably in your Site Configuration File. MS_USERLICENSE = $(_USTN_LICENSING)my.lic

Ø  The Configuration dialog box (Workspace->Configuration) shows the configuration variables available for use in Microstation. Some system variables are hidden from this dialog box: these ones all begin with the underscore character "_" (eg. _USTN_SITE). To show the full list of variables use the "New" button to create a new variable called "_USTN_DISPLAYALLCFGVARS" and assign it a variable of "1".

Ø  If you have an mdl application that is automatically loading when you start Microstation - and you don't want it to: Firstly check your user configuration file and remove the line MS_DGNAPPS > XXXX where XXXX is the name of the offending application. Failing that, check if the application is located in ..\ustation\mdlsys\required\ (for Microstation95/SE), or ..Bentley\Program\Microstation\mdlsys\required\ (for Microstation/J). If it is, move the file to the \asneeded\ directory

 

Customizing – incl menus, interfaces, programming

Ø  Settings such as "Open Two Application Windows", "Automatically Save Design Changes" etc, are all operational settings. These settings are registry settings. They need to be updated in the registry. Hence, on changing these settings, a restart of Microstation is a must. Settings like "Scroll Bars on View Windows", "Black Background to White", etc are all view settings, so they get applied in the current session, without the need to restart Microstation.

Ø  When programming in VBA and you are attempting to use Scripting.FileSystemObject code to access the contents of a folder you may get an error that says “”. To solve this you need to add a “Reference” to the vba. It is not a line of code to add to the module, but a part of the application’s properties. From the Microsoft Visual Basic window’s menu, select Tools > References. From the dialog that opens, note that your application is show in the dialog’s title. In the list, check on “Microsoft Scripting Runtime” and hit OK.

Ø  When creating a custom toolbox in 2004 edition (8.5) or earlier you want to add a call to it to the main menu, the keyin is "dialog toolbox <num>" where num is the number assigned to the toolbox. When creating a new toolbox in XM or later and you want to add a call to it to the main menu, the  keyin is "customize open toolbox <name>" where name is the actual name you gave the toolbox.

Ø  When tools are displayed in a toolbox, you can right-click to hide the tools individually.  In V8i when tools are displayed in panel layout, you can hide individual tools by hovering in the task space and Right Click > Show/Hide xxx tools > ... and check desired tool.

o   You can hide or remove them permanently by editing the Main Task(s) via Workspace > Customize:

o   Open a configured library (*.dgnlib) to store the customizations in.

o   Open the dialog from Workspace > Customize.

o   Open the Main Tasks section at the right.

o   Open Application Tasks > ustation.dgnlib (the standard interface), right click on the Main task, and copy.

o   Open User Tasks, right click on your *.dgnlib and paste.

o   Browse to the tool you want to remove from the Main task in your *.dgnlib, right click and delete.

Ø  In versions prior to V8i the keyin “dialog toolbox <num> toggle” was useful in toggling the display of a user customised toolbox. Now in V8i the keyin has changed to “customize open toolbox <name>”. There is no toggle facility. A CR  has been  raised with Bentley.

Ø  To load and run a vba macro in one hit use:

o   vba run [projectname] macroname

o   This is to shortcut the following:

o   vba load projectname; vba run macroname

o