Jump to content

Recommended Posts

Posted

hello i'm just experimenting with creating entities w/ dxf codes. I'm not sure what I"m missing here. This is what I've tried so far

(entmake '((0 . "MTEXT") (67 . 0) (8 . "0") (10 3.0 3.0 3.0) (40 . 4.0) (41 . 36.0) (71 . 1) (72 . 5) (1 . "THIS IS A TEST") (7 . "Standard") (50 . 0.0)))

 

I thought i got all the info but I get "nil" at the command prompt. what am I missing?

Posted

Subclass markers are not ignored with MTEXT, as they are with TEXT.

 

This is the minimum info you need to provide:

 

(defun M-Text (pt val)
 (entmakex
   (list
     (cons 0   "MTEXT")         
     (cons 100 "AcDbEntity")          
     (cons 100 "AcDbMText")    
     (cons 10 pt)        
     (cons 1 val))))

Posted

simple enogth. thanks again!

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