Jump to content

Recommended Posts

Posted

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

Posted

Google "object dxf code autocad"

 

Replace object with say line, arc, cicle and so on , also look for entmake examples.

  • Like 1
Posted

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

 

Posted

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

 

Posted
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

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