write a file that will be loaded as a Model in Autocad ?

Use this forum to ask questions about how to do things in dxflib.

Moderator: andrew

Post Reply
Julien
Newbie Member
Posts: 3
Joined: Thu Sep 18, 2014 6:06 pm

write a file that will be loaded as a Model in Autocad ?

Post by Julien » Sat Sep 20, 2014 5:39 pm

Hello,

We have an issue with Autocad DXF importing. The dxf content is always loaded in the Paper Layout section of the software. Hence, the content is badly scale, then we can use the function Generate model from Layout but the measures get all messed up.

Ideally the solution would be to tell the lib that in Autocad the content need to be loaded as a Model.

The file we write is perfectly readable and dimensions are correct in DraftSight, ArchiCad, eDrawings.

I tried to create a file following the example here viewtopic.php?f=21&t=823&p=8942&hilit=d ... odel#p8942, but it didn't work. The file does not open in Autocad.

Any help would be greatly appreciated.

Attached: an example file.

Thanks,
Julien.
Attachments
ExampleDXF.dxf
(1.36 MiB) Downloaded 171 times

Julien
Newbie Member
Posts: 3
Joined: Thu Sep 18, 2014 6:06 pm

Re: write a file that will be loaded as a Model in Autocad ?

Post by Julien » Fri Nov 07, 2014 7:38 pm

Hello,

I found the solution.

In fact 2 issues were preventing the drawing to correctly open in AutoCAD:

1. viewport settings where wrong I specify my own viewport and I was doing a mistake.
2. viewport settings need to include the point at (0.0, 0.0)

Fixed those 2 and everything is perfect.

Also a note if you have huge files you would need to change the HANDSEED from 0xFFFF to something more such as 0xFFFFF.

Thanks,
Julien.

Post Reply

Return to “dxflib 'How Do I' Questions”