Jump to content

Recommended Posts

Posted

I'm working on a small software. My software must be export a DXF file to work with Autocad.

On my DXF there area lines and a raster image. I'm reading the DXF 2002 reference (I have choose 2002 version for compatibily problems). If I try to export only lines my DXF is read from Autocad (but also other CAD software).

My problem is the raster image. If export the raster image Autocad don't read my DXF.

 

Which are the minimum requirements for creating to add raster image on my DXF?

 

 

THIS IS MY WORKING DXF (only a line):

----------------------------------------------------------------------------

0

SECTION

2

HEADER

9

$EXTMIN

10

-71.5

20

46.444444444444

30

0

9

$EXTMAX

10

-71.5

20

46.444444444444

30

0

9

$LTSCALE

40

1

0

ENDSEC

0

SECTION

2

TABLES

0

TABLE

2

LTYPE

100

AcDbSymbolTable

0

LTYPE

100

AcDbSymbolTableRecord

100

AcDbLinetypeTableRecord

2

CONTINUOUS

70

0

3

Solid line

72

65

73

0

40

0

0

LTYPE

100

AcDbSymbolTableRecord

100

AcDbLinetypeTableRecord

2

BYLAYER

70

0

3

 

72

65

73

0

40

0

0

LTYPE

100

AcDbSymbolTableRecord

100

AcDbLinetypeTableRecord

2

BYBLOCK

70

0

3

 

72

65

73

0

40

0

0

ENDTAB

0

TABLE

2

LAYER

100

AcDbSymbolTable

70

0

0

LAYER

100

AcDbSymbolTableRecord

100

AcDbLayerTableRecord

2

0

70

0

62

7

6

CONTINUOUS

0

ENDTAB

0

ENDSEC

0

SECTION

2

ENTITIES

0

LINE

100

AcDbEntity

8

0

6

CONTINUOUS

48

1

62

256

10

-71.5000

20

46.4444

30

0.0000

11

104.5000

21

109.3889

31

0.0000

0

ENDSEC

0

SECTION

2

OBJECTS

0

ENDSEC

0

EOF

----------------------------------------------------------------------------

 

 

THIS IS MY NOT WORKING DXF (line and image):

----------------------------------------------------------------------------

0

SECTION

2

HEADER

9

$EXTMIN

10

-134.509920634949

20

66.5238095238

30

0

9

$EXTMAX

10

-134.509920634949

20

66.5238095238

30

0

9

$LTSCALE

40

1

0

ENDSEC

0

SECTION

2

TABLES

0

TABLE

2

LTYPE

100

AcDbSymbolTable

0

LTYPE

100

AcDbSymbolTableRecord

100

AcDbLinetypeTableRecord

2

CONTINUOUS

70

0

3

Solid line

72

65

73

0

40

0

0

LTYPE

100

AcDbSymbolTableRecord

100

AcDbLinetypeTableRecord

2

BYLAYER

70

0

3

 

72

65

73

0

40

0

0

LTYPE

100

AcDbSymbolTableRecord

100

AcDbLinetypeTableRecord

2

BYBLOCK

70

0

3

 

72

65

73

0

40

0

0

ENDTAB

0

TABLE

2

LAYER

100

AcDbSymbolTable

70

0

0

LAYER

100

AcDbSymbolTableRecord

100

AcDbLayerTableRecord

2

0

70

0

62

7

6

CONTINUOUS

0

ENDTAB

0

ENDSEC

0

SECTION

2

ENTITIES

0

IMAGE

100

AcDbEntity

8

0

6

CONTINUOUS

48

1

62

256

10

44.6111

20

28.7222

30

0.0000

11

0.2292

21

0.1323

31

0.0000

12

-0.2647

22

0.4585

32

0.0000

340

6B

13

394

23

287

340

6B

0

LINE

100

AcDbEntity

8

0

6

CONTINUOUS

48

1

62

256

10

-134.5099

20

66.5238

30

0.0000

11

-19.3810

21

200.7500

31

0.0000

0

ENDSEC

0

SECTION

2

OBJECTS

0

IMAGEDEF

5

6B

100

AcDbEntity

90

0

1

C:\Users\Martin\Desktop\feature17.png

10

394.0000

20

287.0000

11

0.2647

21

0.0000

280

1

281

3

0

ENDSEC

0

EOF

----------------------------------------------------------------------------

 

 

I hope somebody can help me.

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...