Good day,
I was wondering what kind of code I would need to access MicroStation named fences.
I have created a program that counts cells in a particular active cell.
I have saved a number of named fences in my drawing, and would like to apply the same program to them, without having to manually select and activate a fence from the named fences.
What i would like to do would be something like this:
For Each mfence As Fence In ActiveModelReference.NamedFences
scanFence()'already existing function
Next
the above code assumes that i can access the NamedFences as a collection, or array.
I found that the Fence object in MVBA has a ActiveDesignFile.Fence.GetFenceNames as a member, but i could only get a handle of the names,
and could not actually get the fence object itself in order to perform the scan.
What is the proper way to do this.
Thanks in advance
Regards,
Am using Windows 7, 64 bit. MicroStation V8i Select Series 3