Hello, I've got a large number of blocks (200x300) where the vertexes have different z values (3D rotation). My task is to drop all vertexes to Z=0 (make all blocks flat) but keep the block dimension & angle.
When changing all Z values to '0', the vertexes are perpendicular projected on the plane and the block gets deformed (new BLOCK DIM 197.65x298.38).
Does anyone know how to perform my task for a large number of blocks by VBA or other way?
Thanks in advance!
yaxo winx said:My task is to drop all vertexes to Z=0 (make all blocks flat) but keep the block dimension & angle
It's not clear what you mean by 'block dimension & angle'.
Can you post a small DGN file that contains a single shape?
yaxo winx said:When changing all Z values to '0', the vertexes are perpendicular projected on the plane and the block gets deformed
That tells us what you don't want to happen to the shape, but doesn't really tell us what you would like to happen.
In your example DGN file, can you add a second shape that illustrates what you want to happen to the original?
yaxo winx said:Does anyone know how to perform my task for a large number of blocks by VBA or other way?
If you want to write VBA, then there'a a Programming Forum where you can ask more detailed questions.
Regards, Jon Summers LA Solutions
For MicroStation V8i: Not sure if this is what you want, but an MDL called CIVTOOLS has a "Set Element Elevation" Icon that works nicely. You type in the elevation 0.00 in the tool settings and it flattens the element to be that specific elevation. (Doesn't work in Connect Edition).
Why not just create a selection set of just the shapes, use the properties dialog to change z to 0.
Connect r17 10.17.2.61 self-employed-Unpaid Beta tester for Bentley
Karl Todt said:An MDL called CIVTOOLS has a "Set Element Elevation" Icon that works nicely. You type in the elevation 0.00 in the tool settings and it flattens the element to be that specific elevation. Doesn't work in Connect Edition
We wrote a freeware ModZ in response to a similar question on this Forum. It works with V8 or CONNECT.
They are not planar so not possible to just adjust Z and expect it to not change dimensions. 200x300 is size in 3D space so flattened it is no longer the same. Easiest would be save the file as 2D and then place a cell elements by center of block and orient them by angle(Place and rotate) afterwards deleting the old elements.
Answer Verified By: yaxo winx