Jump to content

DXF fields


alijahed

Recommended Posts

Hi All,

 

I am so happy posting something here after a long time. I've learned lots out of this Forum since I joined in 2007. Thanks for being helpful during these years...

 

Today I have a question regarding reading a very simple DXF file drawing a LINE from (20,20) to (817,20).

I can spot the information about the POINTS (Start & Finish) in the body of DXF file but I don't understand the other bits and pieces in the body of DXF file.

 

Can someone please explain what is what and to do what?

 

Cheers

Ali

z.DXF

Link to comment
Share on other sites

http://docs.autodesk.com/ACD/2011/ENU/filesDXF/WS1a9193826455f5ff18cb41610ec0a2e719-79fe.htm

 

Also use this on a line or anything in a drawing to see its DXF codes.

;----------------------------------------------------------------------------;;
;; Dump all DXF Group Data             
(defun c:DumpIt (/ SS)
  (if (setq SS (ssget))
    (foreach ent (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss)))
      (mapcar 'print (entget ent '( "*")))
      (textscr)
    )
  )
  (princ)
)

 

Link to comment
Share on other sites

My $0.05 

 

(entget (car (entsel))) its short enough that I just type it on command line.

 

I prefer dumpit to be for Vl properties.

 

;;;===================================================================; 
;;; DumpIt                                                            ; 
;;;-------------------------------------------------------------------; 
;;; Dump all methods and properties for selected objects              ; 
;;;===================================================================; 
(defun C:Dumpit ( / ent) 
  (while (setq ent (entsel)) 
    (vlax-Dump-Object 
      (vlax-Ename->Vla-Object (car ent)) 
    ) 
  ) 
  (princ) 
)

 

Link to comment
Share on other sites

15 hours ago, BIGAL said:

My $0.05 

 

(entget (car (entsel))) its short enough that I just type it on command line.

 

 

I tend to do the same

Link to comment
Share on other sites

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