Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: Abstract Vertices Coordinates

$
0
0

Hi John,

because in my previous post I wrote that the code is written in a wrong style, I rewrote it to what I think is better code.

I am not sure if I maintain the same functionality, but I guess I am pretty close.

I followed these "good style rules":

  • Structure a code as a short function parts. It's easy to understand a few line code, but nearly imposible to understand long code (over 20 - 30 lines).
  • Use descriptive names (like vertex), not general or API terminology names (like point).
  • Use Option Explicit, co no accidentaly defined variable exist.
  • Don't define all variables at beginning of sub or function.

(Please visit the site to view this file)

With regards,

  Jan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>