Jump to content
DavidGraham

VPORT what are code groups 40 & 41?

Recommended Posts

DavidGraham

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

 

 

   

Share this post


Link to post
Share on other sites
rkmcswain
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?

😵

Share this post


Link to post
Share on other sites
Roy_043

The OP is talking about a VPORT not a VIEWPORT.

Share this post


Link to post
Share on other sites
DavidGraham

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

 

  

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×