DavidGraham Posted January 7, 2019 Share Posted January 7, 2019 I'm writing a DXF file as a text file. I have written the layers, blocks, entities etc. and it opens in AutoCAD. I would like it to show the whole model (i.e. as you would with zoom extents) when the model is opened. In the header I have written the $EXTMIN, $EXTMAX, $LINMIN, $LIMMAX and in the tables section I have written a VPORT entry. I don't know what the code groups 40 & 41 contain? I have looked at the online DXF reference for VPORT and 40 & 41 are not listed. 42 is the lens, 43 the front clipping plane, 44 the rear clipping plane. Part of the DXF file is shown below. If the 40 & 41 values are not correct the view is not shown correctly. Where can I find this information?. Thanks. 40 0.1749 41 2.1166 42 50.0 43 0.0 44 0.0 Quote Link to comment Share on other sites More sharing options...
tombu Posted January 7, 2019 Share Posted January 7, 2019 (edited) http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-2602B0FB-02E4-4B9A-B03C-B1D904753D34 40 & 41 are fourth & fifth in the list. It sure would be easier to follow if they would simply list these in numeric order though. 40 Width in paper space units 41 Height in paper space units Edited January 7, 2019 by tombu Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted January 7, 2019 Share Posted January 7, 2019 42 minutes ago, tombu said: 40 & 41 are fourth & fifth in the list. It sure would be easier to follow if they would simply list these in numeric order though. Ha.... where is the challenge in that? Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted January 7, 2019 Share Posted January 7, 2019 The OP is talking about a VPORT not a VIEWPORT. Quote Link to comment Share on other sites More sharing options...
DavidGraham Posted January 7, 2019 Author Share Posted January 7, 2019 Roy-043 - thanks for posting that - I wondered why when I searched I couldn't see 40 & 41. Here is the link for VPORT - but 40 & 41 are missing. http://help.autodesk.com/view/ACD/2019/ENU/?guid=GUID-8CE7CC87-27BD-4490-89DA-C21F516415A9 But with a bit more investigation I have decided that 40 is the Y extent of the model (in practice I made it a bit bigger) and 41 is the screen ratio. There must be a definition somewhere. 40 0.2470 41 2.0 Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted January 7, 2019 Share Posted January 7, 2019 @DavidGraham - does this help any? (Click on VPORT in left frame) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.