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

Re: [V8i C# Addin] Getting Area of a Fence

$
0
0

zCane75:
BCOM.ElementEnumerator ee = s_comApp.ActiveDesignFile.Fence.GetContents(false, true);

That won't help you, because what it does is find those elements enclosed by the fence.  Some elements (e.g. TextElement) don't have an area.  For those elements that do have an area, there's no relationship between the sum of their areas and the area enclosed by the fence.

Follow Jan's advice to convert the fence to a closed element, then take the area of that element.


Viewing all articles
Browse latest Browse all 1677

Trending Articles



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