Skip to main content
Question

Reading DWG Linestyle


deanhowell
Influencer
Forum|alt.badge.img+23

Does anyone know if there is an attribute or attributes that can be read from a DWG file that will define the linestyle i.e. if it is a dashed line what are the line lengths and the space lengths?

5 replies

Forum|alt.badge.img

See the documentation at for the autocad_resolved_linetype attribtue: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/acad/Feature_Representation.htm#autocad_resolved_linetype

On the featuretype, click the cogwheel, format attributes, and filter on resolved. You can expose it by checking the box in front.

 


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • February 3, 2020

Thanks @tomvanderputte i am already exposing that attribute but am trying to find out the actual definition of the line in more detail if it is not a solid line. For example if the line was a dash and then a dot, what are the spacing of the line, so i can try and recreate on output.


gabriel_hirsch
Contributor
Forum|alt.badge.img+12
deanhowell wrote:

Thanks @tomvanderputte i am already exposing that attribute but am trying to find out the actual definition of the line in more detail if it is not a solid line. For example if the line was a dash and then a dot, what are the spacing of the line, so i can try and recreate on output.

If you have AutoCAD installed on your computer you can look in the folder C:\\Users\\<user_name>\\AppData\\Roaming\\Autodesk\\<autocad_version>\\<build>\\<language>\\support

There you can find .lin files that looks like this:

ACAD_ISO02W100,ISO dash __ __ __ __ __ __ __ __ __ __ __ __ __


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • February 3, 2020
gabriel_hirsch wrote:

If you have AutoCAD installed on your computer you can look in the folder C:\\Users\\<user_name>\\AppData\\Roaming\\Autodesk\\<autocad_version>\\<build>\\<language>\\support

There you can find .lin files that looks like this:

ACAD_ISO02W100,ISO dash __ __ __ __ __ __ __ __ __ __ __ __ __

Thanks @gabriel_hirsch, that is good to know but what I am trying to do is validate that a drawing supplied by an external party has the correct line definition. I can test that the line type has the correct name but can't figure out how to test that the line definition is correct.


Forum|alt.badge.img
deanhowell wrote:

Thanks @tomvanderputte i am already exposing that attribute but am trying to find out the actual definition of the line in more detail if it is not a solid line. For example if the line was a dash and then a dot, what are the spacing of the line, so i can try and recreate on output.

OK, can't help you there I'm afraid.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings