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

Re: [V8i VBA] Measure Distance Total

$
0
0

The link provided by Jon Summers shows how to use the Area property of closed element types. I believe what he was suggesting is that you could adapt this to select linear elements and use the Length property of linear element types to get the individual distances. It is then up to you, the programmer, to keep a running total.

Something like this:

Dim elLine As LineElement

Dim dLengthTotal As Double

dLengthTotal = 0

'... code here retrieves line an individual line element

dLengthTotal = dLengthTotal + elLine.Length

Rod


Viewing all articles
Browse latest Browse all 1677

Trending Articles



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