Hey Guys, I have a problems when I use microstation file ( including existing and new file) that some element are off grids, it not algin to grid point.
I wonder we have tools or VBA file to identify or highlight point, circle, shape ...if they are girds off. because, Some drawing need to grid on when drawing.
Thanks.
What is the exact version no. (e.g. v10.x.y.z) of MicroStation that you are using? Use key-in VERSION to see the version no. in the MicroStation Message Center, or Help→About MicroStation in the backstage.
VERSION
See this blog that shows you how to obtain MicroStation's version number.
If you're using an additional product (e.g. ProjectWise, OpenXxx) let us know about that too!
Tuan Vo said:some element are off grids
What do you mean by 'off grid'?
Regards, Jon Summers LA Solutions
Hi Jon, I'm drawing electrical schematics & need to know that all my connections land on grid points. i am using drawings that have been previously created & would like to be able to open a drawing & run a command of some sort that would highlight lines whose end points don't land on a grid point.
yes, That I ever think before, but my knowledge with vba is less, so I'm still research it. Thanks your advice.
After looking into this, I can confirm that my initial theory was correct:
(Right-click on the images and choose Open in New Tab to view full-screen)
You can see in the above clip that any elements drawn on a major or minor gridline will not have any of its vertices highlighted, but those which are not, will be. You can also see that once an element's vertices are corrected i.e. positioned back onto the grid, they are no longer highlighted. For clarity and to demonstrate the manipulation of vertices, I didn't have the rogue elements automatically selected but you can see this in effect, below:
That's exactly the answer I need. how you can create them quickly, I lost time with this a lot. you are genius.And That I wonder this code can operate withe all elements ( such as: cell, group cell, ... or marco like that)
The problem with Cells (Shared/Normal or Orphan) is that the only reliable point of interest that can be accessed in code, is the origin point. Where the origin is located relative to the rest of the geometry in a cell, can easily vary between cells, so attempting to use the origin as the point of reference could easily yield undesirable results. It's not that it isn't possible, it would just require an extreme amount of time to cater for every cell. I simply wanted to test if my theory would work, and it appears to do just that.
Awesome Barry do you want to share this macro?
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