Hi,
I work a lot with mapping to authorities, and they have many requirements regarding line styles.
One requirement is to have line styles that are not "broken" at breakpoints, you want the line style complete throughout the mapped line.
When using "Run through corners" in MS (v8i and CONNECT) the setting is not retained when exporting to dwg, how come? Does anyone know any solution to this? How can I get the line style to maintain "run through corners" in to my exported file.Kind Regards,Elin
I was a little unclear, this also applies when I save my file as a DGN-file. When I open the DGN-file again, it has lost the "run through corners" setting.
Why does not the settings remain, that is my question.
We constantly receive feedback / comment that the customer wants lines that flow through the entire line, not broken at the insert points / breaking points.
Anyone have any solution?
Where are these linestyles defined?Are you working on DWG files, DGN files, or are you working with some other software package altogether? What version of your software are you using?
Are you creating these files with something that isn't MicroStation or AutoCAD, but expecting the drawings to display the same way as they do in your host software?
MaryB
Power GeoPak 08.11.09.918Power InRoads 08.11.09.918OpenRoads Designer 2021 R2
It means these lines restart at each segment so it seems as if they break at corners. Because DWG has centered linestyles it means the start and end stroke may be shorter and longer depending on segment length so it looks different as the stroke length changes at each vertex. Better try to use Remap table and provide a LIN definition file there so MS doesn't try to convert MS lines to DWG lines.
Please create a DGN with one of these lines with it's linestyle embedded and attach here so I can check what is happening maybe it is true that automatic conversion produces wrong result. Also a working DWG example how it should look. Without that it is hard to help.
OK, let me get this straight.
I'll start with 4 first. DWG linestyles do not have the same capability as DGN linestyles. They are not written into nor used by the program in the same way. AutoCAD linestyles will always break at the corners because that's how AutoCAD defines the linestyles. This will happen regardless of using MicroStation or AutoCAD - it is part of the DWG drawing format. There is nothing to be done.
With 3, DWG 3D polylines do not display with a linestyle. See https://forums.autodesk.com/t5/autocad-map-3d-forum/imported-3d-polylines-will-not-change-to-layer-style-line-types/td-p/3456870However, depending on the version of AutoCAD you have, you may be able to change a setting to make things look better. See https://forums.autodesk.com/t5/civil-3d-forum/3dpoly-line-display/td-p/7850642If you do not have AutoCAD, you may be out of luck, but you could certainly pass that information on to your client.
For 2, you could just be seeing the difference between the 3D representation of an element and the 2D version. Again, elevation differences can change the way linestyles appear because a 3D line is longer than the 2D representation of it.
I think the biggest problem you have is that you are creating 3D polylines (which will not display with a linestyle at all), and you want DWG files to do something that DWG format simply cannot do. Microstation has no control over what is or isn't possible in DWG format, because Bentley didn't develop the DWG format. It may be helpful to ask about your DWG files over on the AutoDesk website
Thank you very much for a well-written statement regarding DGN, DWG and line styles.
It was just something like this I wanted to hear, from someone with good knowledge and background.
In the future, we will probably also send a DGN file to our customers to demonstrate what the original looks like.
Thanks again for taking the time to respond.
/Elin
You're welcome. Going back and forth between systems has always been a challenge because there are some things that just do not work the same (or at all!).
Good luck!
Your provided DGN file doesn't contain linestyles it has only AGOSLAGSSGRAN embedded linestyle but körbana1000 and gångbana1000 is missing because it is linked to RSC and not embedded. For AGOSLAGSSGRAN I see the "single segment" option is enabled which somewhat mimics same behaviour as in ACAD and it changes to "linetype generation" enabled/disabled when exportd. So it seems to convert correctly to "run through corners" if "single segment" option in MS linestyle is disabled see attachment. In ACAD this is not linestyle attribute but element attribute how to display the linestyle in 2D/3D mode. Interesting that using export to DWG from MS and not save as I also got the one file without linestyles at all which was weird but can't repeat this behaviour. So there could be actually hidden issues still present what seems is happening that linestyle definition is higher priority than "Run trough corners" so it is ignored when converting and all lines are set according to linestyle definition. That is alarming as it actually can result in what you provided that after save back and forth from to DWG it is actually lost.
P.S. It would be better to import all RSC lines to DGNLIB so no need to send RSC files when delivering DGN and also additional benefit is that Windows Explorer DGN preview handler then can show embedded lines. Unfortunately for DWG it is only possible to embed lines which don't use symbols only strokes and text otherwise SHX is still needed. There is one option - "drop unsupported custom lines" on export but customer again will not be happy but at least it will look exactly as in MS. Also using RGB colors and Truetype fonts allows to avoid need for Remap table for DWG conversion.
test_dgn_run_through2.dwg
This is how it seems to work in Microstation and it is flawed. Also one more option which is not user configurable:
Thank you so much for that information, it gave me some ideas now.
Maybe I should explain some background.
How it works for us right now is that our line style files we use are not complete, that's why we have 3 different ones, and why we thought we would send shx file from dwg exported to our customers, to secure so they can get some kind of backup.
Of these 3 line style files, 2 are rsc files and 1 is a converted line file. And what you are just pointing out about AGOSLAGSGRAN it comes from the converted line file. I think I'll replace it now, I probably have someone similar in one of the other 2 files. Then maybe I get a style that have the look of run all the way.
Thanks again for your time and explanation.
Regerds,
Elin
SHX is not needed if lines do not contain any point symbols in them. Microstation automatically creates SHX for it's internal line codes 0-7 so the SHX is created but it may not actually needed. The flaw I see with this process is that if DWG is opened in MS and exported again then it recreates linestyles incorectly as "Single element" setting overrides "Run through corners" attribute in line. I will investigate further and report to Bentley if it is so. What I can't seem to recreate again is 3D DWG file with missing linestyles created from 2D DGN but maybe it was by accident that I had placed some element in 3D so MS tried to create 3D polyline and as mentioned 3D polylines doesn't support custom linestyles as there were no 3D pen plotters.