View Full Version : Is it possible to arrange text in an arc?
Cadastrophic
30th Jan 2003, 09:52 pm
I need to place text radially around the perimiter of a degree wheel which is to be laser cut/engraved. I have acad2k, but can't find any reference to this procedure in the help file. :?
TIA.
CADTutor
30th Jan 2003, 10:08 pm
If you're using AutoCAD 2000, you're in luck :D
You must have the Express Tools loaded.
Draw the arc first, then go to Express>Text>Arc Aligned Text. You will then see the very wonderfull ArcAlignedText Workshop dialogue box, see below:
http://www.cadimage.net/cadtutor/arctext.gif
Unfortunately, you have to pay extra for the Express Tools for use in later versions of AutoCAD but to you, they're free.
The reason you can't find any reference to this is that the Express Tools are undocumented but there is a Help option on the Express pull-down that gives outline information on using the tools.
Cadastrophic
11th Feb 2003, 11:57 pm
I had a look on the AutoCAD 2000 disc, and can't see anything about Express Tools. I reinstalled the program, but didn't see any options for installing Express Tools there either.
I then looked at the read file, and it mentions a Custom Install. Is Express Tools in there, and will I have to uninstall the program first before i can run the Custom Install?
TIA.
Mr T
12th Feb 2003, 01:05 am
Goto -
Add remove>ACAD>
When the option comes up, choose to 'Add to' setup and
pick the features.
I have acad2k on my teacher machine and I just have to type EXPRESS
and it comes up n loads, wheras my pupils have 2ki on their machines
and it's loaded up when it opens. No doubt there is a lisp out there for this.
Nick
Cadastrophic
12th Feb 2003, 01:42 am
I'm not having much luck with this. I followed your advice, but when I click on add/remove, an error message pops up stating "Setup is unable to find _SETUP.DLL". I'm baffled, as I can see it in the acad folder!
Any further advice on this?
Again, TIA.
CADTutor
12th Feb 2003, 10:09 am
Hmm, I guess a fresh install using the Custom option should work.
fuccaro
13th Feb 2003, 02:54 pm
I wrote a Lisp routine to align a text along an arc, no express tools are needed. The text will be exploded.
The text must be at least 2 characters long. When you are prompted about “mirror” and “reverse” hit the ENTER. If the text don’t follow correctly the path, delete it and run the routine again, but this time enter any character at the mirror and/or reverse prompts. So if you are out of luck, you will need to run the program 4 times.
After the text is on place, select all characters and play around with the height, but without to move them.
I admit that is not a fair way to write programs, but now I am out of my time. I am still dreaming that someday I will rewrite my working, but not finished programs...
(defun c:tal(/ s1 len arc cen rad f0 f1 el en old) ;tal = Text Align
(setq s1 (getstring T (strcat "enter text <" s ">")))
(if (/= s1 "") (setq s s1))
(setq len (strlen s) arc (entget (car (entsel "\nselect arc")))
i 0 cen nil rad nil f0 nil f1 nil)
(while (not (and f1 f0 rad cen))
(if (= (car (nth i arc)) 10) (setq cen (list (cadr (nth i arc)) (caddr (nth i arc)))))
(if (= (car (nth i arc)) 40) (setq rad (cdr (nth i arc))))
(if (= (car (nth i arc)) 50) (setq f0 (cdr (nth i arc))))
(if (= (car (nth i arc)) 51) (setq f1 (cdr (nth i arc))))
(setq i (1+ i)))
(setq f (/ (- f1 f0) (1- len)) i 1)
(setq ff f1 r -1)
(setq old (getvar "osmode"))
(setvar "osmode" 0)
(setq x1 (getstring "\nreverse?") x2 (getstring "miror?"))
(if (= x1 "") (setq r 1) (setq r -1))
(if (= x2 "") (setq ff f1) (setq ff f0))
(repeat len
(setq p (polar cen ff rad))
(command "text" p "" "" "*")
(setq en (entlast)
el (entget en)
el (subst (cons 1 (substr s i 1)) (assoc 1 el) el)
el (subst (cons 50 (- ff (/ pi 2.0))) (assoc 50 el) el))
(entmod el)
(setq ff (+ ff (* r f))
i (1+ i)))
(setvar "osmode" old)
(princ)
)
fuccaro
4th Mar 2003, 10:46 am
Cadastrophic
Probable as yet your arc aligned text is finished. However, for your future works you (and everybody) may wish to check the Lisp routine I just posted in the AutoLisp section. This one creates a real arc aligned text. The resulting text is a single entity, not individual characters rotated and placed along the arc.
Happy textbending!
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.