Document Type: TechNote Product(s): MicroStation V8 2004 Edition and PowerDraft V8 2004 Edition Version(s): All versions less than 08.05.02.69 Original Author: Bentley Technical Support Group and Bentley Software
Document Type: TechNote
Product(s): MicroStation V8 2004 Edition and PowerDraft V8 2004 Edition
Version(s): All versions less than 08.05.02.69
Original Author: Bentley Technical Support Group and Bentley Software
Bentley Systems, Incorporated has recently become aware of a software bug that can result in the unintended deletion of certain text elements if the design file "Compress" command is used in certain limited circumstances when a particular non-default option is enabled.
Under certain conditions, when the "Delete Text Elements Containing Only Spaces" option is enabled, the algorithm that is used to determine whether a particular text element within the file contains only spaces can sometimes return incorrect results, indicating that a text element contains only spaces when in fact it does not. This causes the Compress logic to erroneously delete the text element. The text elements at risk are those that consist only of certain single-character ("stacked") fractions and the space character. If any other characters are in the text string, the text element is not as risk and therefore unaffected.
As a precautionary measure and so as to eliminate any risk of text element deletion, Bentley recommends all users immediately turn off "Delete Text Elements Containing Only Spaces" if it has been enabled.
For text elements to be erroneously deleted in this manner, at a minimum the following conditions must all occur:
If you believe you have any design files where the Compress command may have been run under the conditions listed here and have any concerns, please contact Bentley Technical Support via Service Ticket Manager (http://www.bentley.com/serviceticketmanager/) for additional information.
1. Immediately check and turn off the "Delete Text Elements Containing Only Spaces" option, if it has been enabled. Note: The default setting for this option in a new installation of MicroStation and PowerDraft is off.
The "Delete Text Elements Containing Only Spaces" compress option is enabled if the checkbox next to that option is checked in the user interface (which is accessed by using the menu selection File->Compress->Options), or if the string "+SPACE_TEXT" appears in the MS_COMPRESS_OPTIONS configuration variable. The preferred way of turning it off is to put the string "-SPACE_TEXT" into the MS_COMPRESS_OPTIONS configuration variable in your site configuration file. Since the configuration variable overrides any attempt by an individual user to turn on the option, this will ensure that it remains off.
-OR-
2. Upgrade to MicroStation V8 2004 Edition 08.05.02.70 or MicroStation PowerDraft V8 2004 Edition 08.05.02.74 or to MicroStation or MicroStation PowerDraft V8 XM Edition.
- To install it, run the self-extracting program textcheck.exe. When prompted for a location, choose the location of your MicroStation install (default is c:\program files\bentley\). The files will be copied into the path corresponding to \program\MicroStation\mdlapps\. - To run it, you enter these commands in the MicroStation keyin window: mdl load textchecktextcheck setlogfile textcheck analyzecompressfraction The utility will scan through all models of the currently opened design, find at-risk text elements, and log the results by appending the file name and number of at-risk elements to the file specified in .If the "textcheck setlogfile" command is not issued, the output is to the MicroStation console window. MicroStation's Batch Process utility can be used to run the textcheck utility on many files sequentially. If textcheck is run on files where the problem has already occurred, the elements it is looking for will have been deleted and it will report no problems. Thus, you should run the textcheck utility on backups of your design files, and it will give you an idea of whether your work practices produce at-risk text elements.
Product TechNotes and FAQs
Bentley Support Service ticket Manager
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!