Jump to content

Creating New Text Style


tgibbo

Recommended Posts

Can someone tell me why I get an error in this program when I run it.

The error says " bad DXF group: (73 . 3.0) If I null 73 it shows the same error for 72.

I am trying to create a text style which is justified CENTER/TOP

 

(defun c:Delta2 ()
(if (not (tblsearch "STYLE" "Delta2")) 
(entmake '((0 . "STYLE") 
           (100 . "AcDbSymbolTableRecord") 
           (100 . "AcDbTextStyleTableRecord") 
           (2 . "Delta2") ;STYLE NAME
           (3 . "Calibri.ttf") ;FONT NAME 
           (70 . 0)
           (73 . 3.0) ;VERTICAL JUSTIFICATION
           (72 . 1.0) ;HORIZONTAL JUSTIFICATION                         
           (40 . 0.0) 
           (41 . 1.0) 
           (50 . 0.0) ;TEXT ROTATION

         ) 
      )
  )
) 

 

Regards

Tony

Link to comment
Share on other sites

Unless it has changed over the years, STYLE table definitions do not have groups 72 & 73. TEXT entities do, not the table. -David

Link to comment
Share on other sites

Thanks David for the advice.

I hadn't realized that. I'll have to try a different approach in regards to text justification.

I was thinking that I could make a text style with a specific justification.

Link to comment
Share on other sites

Here's one I use for ATTDEF and ATTRIBs. change the group 74 to 73 for TEXT entities. i know nothing about MTEXTs

 

HTH -David

justvals.jpg

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