Skip to main content
Question

DWG Layer Frozen in Viewport


deanhowell
Influencer
Forum|alt.badge.img+23

Is there a way to determine if a DWG Layer has been frozen in a viewport?

We are reading in a DWG and want to output that to a TIFF Image but AutoCAD has a function that allows layers to be frozen in a particular viewport but I can find an attribute that indicates that for an individual feature.

If I read model space through the viewport the layers frozen for that viewport are still be display and then output to the TIFF.

Snapshot of DWG Viewport

 

Snapshot of TIFF

8 replies

From what I know FME reads if the layer itself is frozen in model space you will have to freeze the layer in model space and expose the layer_frozen attribute and then read through the viewport. "Freeze in viewport" doesn't change the actual layer state in autocad programming I think it just tells the viewport what it is allowed to display, fme is reading the layer states in the dwg. I made a simple workspace to demonstrate.

 

 

realdwg2none.fmwt


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • March 29, 2020
garydlester wrote:

From what I know FME reads if the layer itself is frozen in model space you will have to freeze the layer in model space and expose the layer_frozen attribute and then read through the viewport. "Freeze in viewport" doesn't change the actual layer state in autocad programming I think it just tells the viewport what it is allowed to display, fme is reading the layer states in the dwg. I made a simple workspace to demonstrate.

 

 

realdwg2none.fmwt

Thanks @garydlester, but unfortunately the layer is not frozen in model space as it is used elsewhere but just in a specific viewport so that some text can be hidden.


garydlester wrote:

From what I know FME reads if the layer itself is frozen in model space you will have to freeze the layer in model space and expose the layer_frozen attribute and then read through the viewport. "Freeze in viewport" doesn't change the actual layer state in autocad programming I think it just tells the viewport what it is allowed to display, fme is reading the layer states in the dwg. I made a simple workspace to demonstrate.

 

 

realdwg2none.fmwt

That information would come from the viewport but I don't think FME exposes that as an attribute, you might submit as an idea to develop.


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • March 30, 2020
garydlester wrote:

That information would come from the viewport but I don't think FME exposes that as an attribute, you might submit as an idea to develop.

Thanks again @garydlester, that is a good idea as I have not been able to find the associated attribute.


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • March 30, 2020

deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • April 2, 2020

I may have found a solution to the Frozen Viewport layers but just need some clarification on some extended attributes that FME reads from a DWG.

the autocad_extended_data_list{} attributes to filter out the frozen layers.

We noticed that the frozen layers were listed in the extended attributes 'autocad_extended_data_list{}' under an attribute called autocad_layer. Only the frozen layers were listed this way and wanted to get some clarification on what this attribute is there for and if we have interpreted it correctly.

Is it used for other reasons that might come back to bite us later?


deanhowell wrote:

I may have found a solution to the Frozen Viewport layers but just need some clarification on some extended attributes that FME reads from a DWG.

the autocad_extended_data_list{} attributes to filter out the frozen layers.

We noticed that the frozen layers were listed in the extended attributes 'autocad_extended_data_list{}' under an attribute called autocad_layer. Only the frozen layers were listed this way and wanted to get some clarification on what this attribute is there for and if we have interpreted it correctly.

Is it used for other reasons that might come back to bite us later?

Are you reading extended entity data from the viewport or from the layers in the viewport?


deanhowell
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • April 2, 2020
garydlester wrote:

Are you reading extended entity data from the viewport or from the layers in the viewport?

The extended data list is in the original drawing but then I filter out the viewports and get the attributes that are just related to the viewports. I have then found that I can filter out the layers mentioned in the extended attributes to leave me with the layers that aren't frozen in the viewport.


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