Jump to content

Can I make a line for text style in the ACADDOC file?


AQucsaiJr

Recommended Posts

Our client is asking for all the text we create to be in ROMANS font. Can I add a line to my ACADDOC.lsp file to make this happen? Or is there a better way?

Link to comment
Share on other sites

It should already be part of the template used for this client.

Not sure what you mean. Right now if I look up the default text style in this clients drawings it is set to standard.

Link to comment
Share on other sites

you have to understand the difference between the STYLE and the FONT. Each text style has a font associated with it. If you associate the romans font with the standard style you will get what you want.

 

as Mark suggested you should have that already set up in your template which will enable all new drawings to have the correct font.

Link to comment
Share on other sites

As everyone else said, set this up beforehand by creating the desired STYLE in your template drawing(s).

 

If you simply need some code to create a NEW style, regardless of the drawing, the following will create a new style named ROMANS, whose font is ROMANS.SHX with a fixed height of 0.12. It has no effect if the ROMANS style already exists.

 

(entmake
 (list
   (cons 0 "STYLE")
   (cons 100 "AcDbSymbolTableRecord")
   (cons 100 "AcDbTextStyleTableRecord")
   (cons 2 "ROMANS")
   (cons 3 "Romans.shx")
   (cons 40 0.12)
   (cons 70 0)
 )
)

Link to comment
Share on other sites

I See... The reason I am searching for this is because occasionally we submit a drawing package, they come back to us and say the text needs to be changed to ROMANS, so I am guessing it is not set to that by default.

Link to comment
Share on other sites

The beauty of a template is that everything you need is already preset. This can include layers, text style/font, dimension style, layouts, etc. No matter who uses the template they know about the presets and everyone is productive from the get go rather than left to their own devices and wasting precious, billable time setting all these parameters up from scratch.

Link to comment
Share on other sites

I think I understand now... We don't actually work off templates. We only work with existing drawings. We do not create anything from scratch.

Link to comment
Share on other sites

I think I understand now... We don't actually work off templates. We only work with existing drawings. We do not create anything from scratch.

 

Then the answer provided by rkm should be all the help you need.

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