I was wondering there is a tool that will measure any linear element AND place a piece of text like ATOOL.MA does for areas.
Thank you
look at this old microstation basic- Select linear element with fence inside or selectionagree toyou can take suggestions from this for a new VBA macro
Answer Verified By: JDJATKHA
Massimo Callegher said:you can take suggestions from this for a new VBA macro
Here's a 21st century VBA line labeller.
It's freeware and should work with both MicroStation CONNECT and MicroStation V8i.
Oto said:Could it honor segment orientation also?
Your wish is granted...
What's more, it labels shapes as well...
Brian V said:May I suggest enhancing this tool even more by placing the text on whatever rotated view is on?
The updated macro lets you place the label unrotated, rotated to match the element or rotated by view.
Regards, Jon Summers LA Solutions
Brian V said:Speaking of VBA, is there a link for newbies to learn from?
MaryB covered most of it.
I'll add that MicroStation VBA uses the Microsoft VBA development kit. Other apps use the same kit to develop custom implementations of VBA. For example, the Microsoft Office components include VBA. There is plenty of information and examples about Excel VBA. Each implementation of VBA has extensions for its host app. Excel VBA has extensions that cover worksheets, ranges and cells. MicroStation VBA has extensions that cover DGN elements and 3D geometry.
There was a VBA book published by Bentley Systems, but it appears to be out of print. Kevin van Haaren suggests that an eBook may be available.
Your wish is granted!
Hey John, thanks for the VBA. The link on your page to the VBA book does not work. Also, it appears that Bentley is now offering the book as a free ebook.
I don't have a good link to a page just about the vba book but I went here:
https://education.bentley.com/Resources
Went to the ebook section and clicked "See More" until it showed up. That tile has a link to "Read ebook" that downloads an epub version of the book. My link to the ebook is below but I'm not sure if it's generated uniquely for each visitor or not.
Read eBook
I typically read epubs on my iPad where I use Apple's Books app. There should be a way to convert this for a Kindle as well. If anyone has recommendations for reading epubs on Windows I'd love to hear it.
Kevin
Jon Summers said:Your wish is granted!
Excellent. Now this finally is 21st century line labeller. I was not able to edit this macro as step-by-step debug is tricky using VBA.
Jon,
May I suggest enhancing this tool even more by placing the text on whatever rotated view is on?
By default, the text is placed at 0-degree. Let say, the view is rotated at 45-degrees, can the text be placed at 45-degree, basically following the rotated view?
The updated macro lets you place the label unrotated, rotated to match the element or rotated by view...
However, our TagWorks products do a much better job of measuring and labelling.
Jon, you are the best! Appreciate you!