Jump to content

Text Style Match Orientation


Hopeless Turtle

Recommended Posts

I'm trying to make an annotative text style that matches orientation. I've got this so far:

(entmakex '(
  (0 . "STYLE")
  (100 . "AcDbSymbolTableRecord")
  (100 . "AcDbTextStyleTableRecord")
  (2 . "My TEXT3")
  (70 . 0)
  (40 . 0.09375)
  (41 . 1.0)
  (50 . 0.0)
  (71 . 0)
  (42 . 0.0)
  (3 . "romans.shx")
  (4 . "")
  (-3
    ("AcadAnnotative"
      (1000 . "AnnotativeData")
      (1002 . "{")
      (1070 . 1)
      (1070 . 1)
      (1002 . "}")
    )
  )
))

The last bit obviously turns on annotative but I can't find where I might enable the orientation match. Is there more xdata I can add to enable this?

Link to comment
Share on other sites

With a lot of persistence and luck I figured out what I was looking for. Here's the solution:

(entmakex '(
  (0 . "STYLE")
  (100 . "AcDbSymbolTableRecord")
  (100 . "AcDbTextStyleTableRecord")
  (2 . "My TEXT")
  (70 . 0)
  (40 . 0.09375)
  (41 . 1.0)
  (50 . 0.0)
  (71 . 0)
  (42 . 0.0)
  (3 . "romans.shx")
  (4 . "")
  (-3
    ("AcadAnnotative" ;; This block makes the style annotative
      (1000 . "AnnotativeData")
      (1002 . "{")
      (1070 . 1)
      (1070 . 1) ;; 0 is off, 1 is on
      (1002 . "}")
    ) ;; end of the annotative block
    ("AcadAnnoPO";; And these 3 lines turn on the text orientation match
      (1070 . 1)
    ) ;; end of orientation block
  )
))

 

  • Like 2
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...