DXFLib icon indicating copy to clipboard operation
DXFLib copied to clipboard

How to know which layer to show ?

Open arochedy opened this issue 8 years ago • 6 comments

Hi,

I use your (awesome) library to transform a dxf file to an image in a wpf software.

I have a problem with layers : I didn't find how to know which layers to show or not.

When i use some dxf viewer it only show me some layers but not all.

Do you know how to do this ? (or if it's missing in your library ? )

Thank you

arochedy avatar May 25 '16 09:05 arochedy

Hi @arochedy,

can you provide me with a sample DXF file? I'll have a look then.

mkernel avatar May 27 '16 06:05 mkernel

this is it. Thank you for you're time. I'll tell you if i fix it ;)

DIAMOND-R.zip

arochedy avatar May 27 '16 08:05 arochedy

Finally I found a solution !

My problem was not to show/hide a layer but how to detect and hide unrelevant objects.

I use DrawingExtendsLowerRight and DrawingExtendsUpperRight properties in header section to know the limits of my drawing. I only keep elements that are in the limits.

So this is not an issue of your library ;) (sorry to disturb you) (I'll look how to delete this issue)

arochedy avatar Jun 06 '16 09:06 arochedy

That's good to hear :) - anyway i'm interested in the details and have a look anyway.

mkernel avatar Jun 06 '16 10:06 mkernel

I got an another problem ! the libray doesn't find ellipse !

I found ellipse in dxf but the libray doesn't read them, it "jump" to the next entites.

API MONOGRAM ONLY.zip

arochedy avatar Jun 08 '16 09:06 arochedy

I fix it by adding [Entity("LINE")] on DxfEllipse Class

arochedy avatar Jun 08 '16 09:06 arochedy