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
Hello there, thanks for sharing.
By the description, it could be what I like to use. May I know how to use this *.bas file? I only know MDL and mbva files. Once less mouse click is a gold mine!
It will depend on your Microstation (etc.) version. CONNECT does not recognize MicroStation Basic any more. The V8i versions have "Macros" on the Utilities menu at the top (if I remember correctly).
You can also use that BAS (text) file to start a VBA macro. While the coding might need to be adjusted, MVBA is surprisingly well documented and the edits may not be too bad.
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
You do not need a macro anymore. To measure line length and place it as text and not some fancy dimension element you can create a text field favorite and apply it with place text along command.
Takes a few clicks to reasign field to new element but can be done without macro. Not sure why it is made so complicated but at least it works.
the original poster said " something like 80 to 90 linestrings per sheet "and several sheets.. if this was me and a common single ref file I wouldnt do it with a text field would take too much clicks .. I would prefer the old macro method which if you select all and run the macro it would label the lot...
Just goes to show its still handy to have a back up copy of V8i to do stuff like this right away... but a new vba to replace the old Bas macro would be a better solution if one had time and skill to build it...
I wonder could a vba be used to create the text field in Connect Ed then you select all and it reads and creates the text field just like the old macro creates text values of the length of elements?
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
Lorys said: Could a VBA macro be used to create the text field?
Unfortunately VBA does not comprehend text fields.
However, your text favourites can include text fields.
If your goal is to harvest DGN information, then a Report might do the trick. Here's an example of a linear report.
PipeTagger is an example of an app. that harvests linear element information and creates labels that use text fields. Like all apps. in the TagWorks family, it provides bulk harvesting and labelling tools.
Regards, Jon Summers LA Solutions
Jon Summers said:Unfortunately VBA does not comprehend text fields.
Good to know so the fields are not very useful for annotation only as templates in cells and titleblocks.