docls_v8.ma source code

Does anyone have the source code from the old docls_v8.ma tool someone created for documenting line styles in v8i? This was a good tool that would be nice to recompile for use in CONNECT

 Document your custom line styles 

  • Thanks for the vba. It actually works in CONNECT. It needs some refinement but it is a good starting point

    Microstation CONNECT - 10.17.2.61

    ORD - 2021 R1 10.10.1.3

    ORD 2022 R1.1 - 10.11.3.2

    ORD 2022 R3 -  10.12.2.4

    Microstation v8i SS 10 - 08.11.09.919

    Power InRoads v8i - 08.11.09.615

    ProjectWise - 10.0.3.453

  • Also could try to update this VBA:

    I finally got around to modifying the the Linienstileplazieren.mvba so it works a little better. While it was placing the line elements with the line styles it was not placing the name of the style. 

    The line CadInputQueue.SendKeyin oLinst.Name was originally CadInputQueue.SendCommand oLinst.Name

    I did not like how it was placing the name at the end of the line element so I switched that be placed to the left of the line element, setting the justification to be right center. I increased the length of the line elements, just because and I increased the space between each line element so there is less potential for overlapping. Text height was modified, for our files the base text height is 0.01. At the end I added "textstyle rest" since I modify the justification of the active text style to right center in the beginning.

    Hopefully others can benefit from the updates. This works in CONNECT very similar to the docls.ma tool

    DocumentLineStyles.mvba

    Microstation CONNECT - 10.17.2.61

    ORD - 2021 R1 10.10.1.3

    ORD 2022 R1.1 - 10.11.3.2

    ORD 2022 R3 -  10.12.2.4

    Microstation v8i SS 10 - 08.11.09.919

    Power InRoads v8i - 08.11.09.615

    ProjectWise - 10.0.3.453

  • I tested the posted vba in MicroStation u10.17.2.61 and it is locking up MicroStation and never finishes. MicroStation does not look like a traditional crash but it does not return back to normal operation, acts like a crash and I have to kill the app in Windows Task Manager. I tested this on the Example project to reduce the number of linestyles but same issue.

  • I'll take a look once I get 17.2.61 installed. There was a dos dialog that opened with some messages about options to enable but I do not know what was calling that up. There was also another dos dialog that seemed to open if I was pointing the workspace to a local directory stating that UNC paths were not valid. Oncce I closed the dialog the routine seemed to run fine. The UNC path message was odd because our workspaces are on a network drive and all line styles were placed in my file.

    Microstation CONNECT - 10.17.2.61

    ORD - 2021 R1 10.10.1.3

    ORD 2022 R1.1 - 10.11.3.2

    ORD 2022 R3 -  10.12.2.4

    Microstation v8i SS 10 - 08.11.09.919

    Power InRoads v8i - 08.11.09.615

    ProjectWise - 10.0.3.453