Hello all,
Using V8i, is there a way to grab a whole bunch of closed linestrings and convert them to shapes?
These are map features (buildings, parking lots, etc.) and I need to have them display as filled colors and not just outlines.
Thanks!
Unknown said:Is there a way to grab a whole bunch of closed linestrings and convert them to shapes?
That's a straighforward task for VBA.
We've written an article that describes a VBA project that creates shape elements from closed line-string elements. You can download the project here.
You don't have to be a VBA programmer to use the project. The project is freeware — no license required. Follow the instructions and run the key-in.
Regards, Jon Summers LA Solutions
If the lines are all separate ie not strung together but no gaps there is a polygonisation tool available from http://www.mdlapps.com/sdt.htm
It will polygonise thousands of parcles in seconds provided no gaps... If I remember it too was free but it will still work on plain lines not just closed strings
otherwise ask your acad friends to polygonise it for you.. I think this can also be done in inroads and in Bentley Map... but not plain vanilla microstation ( without VBA)....
Lorys
Started msnt work 1990 - Retired Nov 2022 ( oh boy am I old )
But was long time user V8iss10 (8.11.09.919) dabbler CE update 16 (10.16.00.80)
MicroStation user since 1990 Melbourne Australia.click link to PM me
If you have centroid points for these shapes (point element, cell element, or text element) we have a macro that will work as well. It finds the centroid locations and creates shapes similarly to the Flood option of the Create Region tool.
It will be featured in one of our upcoming newsletters and be available for download then. If you want it early send me an email (rod@envisioncad.com) and I'll send it to you.
Rod
Rod WingSenior Systems Analyst
ooh goody i can hardly wait for next issue of the news letter... will it / we be in time to announce it in the next issue of control alt delete magazine too I wonder?
Lorys, this macro will be in our September newsletter which will come out in the first two weeks of Sept.