tgibbo Posted June 27, 2015 Share Posted June 27, 2015 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 Quote Link to comment Share on other sites More sharing options...
David Bethel Posted June 27, 2015 Share Posted June 27, 2015 Unless it has changed over the years, STYLE table definitions do not have groups 72 & 73. TEXT entities do, not the table. -David Quote Link to comment Share on other sites More sharing options...
tgibbo Posted June 28, 2015 Author Share Posted June 28, 2015 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. Quote Link to comment Share on other sites More sharing options...
David Bethel Posted June 28, 2015 Share Posted June 28, 2015 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 Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted June 29, 2015 Share Posted June 29, 2015 FWIW, here is a reference detailing the available DXF group codes for a STYLE entity: http://exchange.autodesk.com/autocad/enu/online-help/browse#WS1a9193826455f5ff18cb41610ec0a2e719-7a4d.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.