Jump to content

VPORT what are code groups 40 & 41?


Recommended Posts

Posted

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

 

 

   

Posted
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?

😵

Posted

The OP is talking about a VPORT not a VIEWPORT.

Posted

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

 

  

 

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...