I have created tools using mvba for a while, the tools are working fine in MS V8i and for first few version of ORD Connect.
But for later version of ORD, the macros just hung up when I try to set a linestyle of an element.
I am not sure if it is my system or a setting or an update from ORD that I miss, the function [Set elem.LineStyle = ActiveDesignFile.LineStyles("6")] is a basic function and it should not be an issue.
I am running ORD 10.10.01.03 (CE 2021 release 1) on Windows 10 platform.
Attached is a test mvba and a dgn file that I use, it is only a simple macros to draw lines from centre of view 1.
It is working as is, but when try to run the [Set IniSCL.LineStyle = ActiveDesignFile.LineStyles("6")] then ORD will hung up, please try
Thanks in advance.
Tai Nguyen - Track Engineer - Jacobs
Hello Tai Nguyen,
I have tested with your dgn file and VBA code but could not reproduce any issue with assigning line style 6.Also I could not find any related issue reported earlier on linestyles.
Does the missing reference file make any difference?Do you have additional .rsc files with custom linestyles configured?
Thank you for a quick reply.
You gave me an idea that it could happen only on my computer. After that I've tried on other computer and it works fine.
Strangely that I have new version of ORD just installed on my computer but it was not working.
Finally I have to uninstall the software and delete all relevant old configuration and folders of ORD and reinstall again.
Now it is working fine.