Jump to content

Recommended Posts

Posted

Hi all,

I'm having problems just creating a + symbol line type. I can have four pluses come up, but then a line comes up between them. I want all + signs. No spaces or dashes.

 

Any tips on this?

I just need pluses. Super frustrating.

 

Thanks,

plus sign.PNG

Posted

Yes, but no dots between. Just the plus symbols.

Posted

The AutoCAD linetype definition HAS to have a line at the beginning of the definition. A dot is the smallest line possible.

Posted

Ahhh...I see. Well, it is what it is. 

 

I appreciate the help on this eldon. Lemme give it a try.

Posted

If you have a TTF font in the TextStyle and adjust the position of the text, you can hide some of the dots.

 

 

Plusplus.PNG

Posted

and changing that A to an S gets rid of the lines at the ends.

*PlusPlus, + + + + +
S,0,-.35,["+",Arial,s=.333,x=-.377,y=-.164],-.65

If you keep all you linetype definition files in the same support folder as acad.lin they're a lot easier to access and reference without having to include paths. 

Using Lee Mac's Load Linetypes lisp create a macro like: 

^C^C^P(or NewStyle (load "NewStyle.lsp"))(NewStyle "Arial" "arial.ttf") (or LM:LoadLinetypes (load "LoadLinetypesV1-3.lsp"))(LM:LoadLinetypes '("PlusPlus") T) 

with this lisp to make sure you have the Arial text style in your drawing:

; Add New Text Style by Tom Beauford
(defun NewStyle (TxtStyle Font / acadApp acadDoc styles objStyle FType)
  (setq acadApp (vlax-get-Acad-object)
        acadDoc (vla-get-ActiveDocument acadApp)
        styles (vla-get-textstyles acadDoc)
        objStyle (vla-add styles TxtStyle)
        FType (vl-filename-extension Font)
  )
  (if(= ".ttf" FType)(setq Font (strcat "C:\\Windows\\Fonts\\" Font)))
  (setq Font (findfile Font))
  (princ "\nFont = ")(princ Font)(princ)
  (vla-put-fontfile objStyle Font)
  (setvar 'textstyle TxtStyle)
  (princ)
)

Of course ronjonp's Make Linetype With Embedded Characters is still the quickest way to create Linetypes like these.

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