Skip to main content
Question

Read a Blank DWG Layer properties/settings

  • September 29, 2016
  • 4 replies
  • 25 views

Hi,

I have some blank dwgs (templates) with layers and the properties (colour, linetype, lines weight etc etc) set in them. I'm reading the DWG and I've exposed these settings and I am trying to output them to an excel table for reporting.

EI

Layer :road

Colour: 0

Linetype: 1

etc etc

What I am finding is FME will read these settings on actual objects but not from the blank drawing.

Is there a way I can do this?

4 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • September 29, 2016

You could read the schema of the dwg instead of the dwg itself.

I must say i myself create templates by indeed adding one object per layer to hold the properties required. (also using fme to do this) .


mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • September 29, 2016
gio wrote:

You could read the schema of the dwg instead of the dwg itself.

I must say i myself create templates by indeed adding one object per layer to hold the properties required. (also using fme to do this) .

Yes, try using the format called "Schema (Any Format)" and see what that returns.

 

 


  • Author
  • October 7, 2016
gio wrote:

You could read the schema of the dwg instead of the dwg itself.

I must say i myself create templates by indeed adding one object per layer to hold the properties required. (also using fme to do this) .

Ok, I tried this but I think I am not completely up to speed on how this works. I am hoping to expose/read the layer names and the layer settings of an empty drawing, but I can't see what attributes to expose to let me do this.

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • October 10, 2016

Expose the relevant format attributes.

Basically as in the picture you posted.

There are a huge amount of format attributes in a autocad file, not all will be used (like grouping).

Also a lot of them can't be used or accessed by the fme reader/writer (afaik).

In fact to control a acad from fme you will need to create templates and use LISP.

If it is not mandatory to use fme, you might want to use the data extraction tool wich is built in Atocad.

(type DATAEXTRACTION on commandline, rest is selfexplanatory..)


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