Registered forum members do not see this ad.
Code posting guidelines
When you are posting AutoLISP or VBA code in these forums, there are some simple guidellines you should observe in order to make life easier for you and for others.
Always place routines or code snippets between code tags. This makes them easier to read within posts by making them distinct from other text. It helps those who may want to copy and paste the code. It also helps to save space because code blocks get a scroll bar beyond a certain number of lines.
To place your code between code tags, type the code first, click and drag to highlight the code and then click the code button on the editor toolbar. That's the one with the "#" on it*. When you submit the post, the code will be displayed as shown below.
Please ensure that you have the right to publish code on a public forum. In most cases, the code you are publishing will be your own and it will be assumed that if no attribution is given, you are the author. However, if you are not the author, you must make this clear and where possible, give credit to the author. Any routines published here must have their header intact, including any title, instructions, author contact details, date and copyright information. If at all possible, please make sure that you have the the authors permission to publish their work.
The code shown above has been published with its header intact. It is important to include this information even if the author intended to make the code freely available.
You may, at your discretion, claim specific copyright over your code. All authors have the right to explicitly claim copyright of their code. We recommend that if you wish to do so, you use a standard form such as Creative Commons.
* If you do not see a "#" button on your toolbar, see this article.