Please follow the MicroStation Programming forum best practices.
Identify Your Platform
Please identify the version of MicroStation, or other product such as PowerDraft, that you are using. What is the 8-digit version number (e.g. 10.xx.yy.zz) of MicroStation?
If you're using MicroStation in a ProjectWise (PW) managed environment, let us know that too.
Code Syntax Highlighting
When you post code, use the Forum advanced editor's syntax highlighting tool. That's the icon that resembles a pencil: