Author Topic: how to add pi symbol in autocad text  (Read 26175 times)

0 Members and 1 Guest are viewing this topic.

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: how to add pi symbol in autocad text
« Reply #15 on: July 26, 2012, 06:19:03 AM »
Good idea! So inside MTexts / Dim Overrides / MLeader texts you can place the following piece of text from Lisp:
Code - Auto/Visual Lisp: [Select]
  1. "{\\Fgreeks|;p}" ;Using the Greeks.SHX font
  2. "\\U+03C0" ;Using the unicode double-byte character code
For other stuff you can do the same, e.g. micro Ohms:
Code - Auto/Visual Lisp: [Select]
  1. "{\\Fgreeks|;mW}" ;Greek font
  2. "\\U+03BC\\U+03A9" ;Unicode
Or indicating delta:
Code - Auto/Visual Lisp: [Select]
  1. "{\\Fgreeks|;D}" ;Greek font
  2. "\\U+0394" ;Unicode

The nice thing about using Greeks.SHX is the characters look as if they are the same font as the Romans.SHX font. Where the unicode uses alternative fonts if the BigFont is not turned on. And even with BigFont turned on, I like the Greeks version more.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: how to add pi symbol in autocad text
« Reply #16 on: July 26, 2012, 07:50:29 AM »
Great idea RONR  :-)

Greekc.shx is also rather nice:


Crank

  • Water Moccasin
  • Posts: 1503
Re: how to add pi symbol in autocad text
« Reply #17 on: July 26, 2012, 01:01:18 PM »
And %%960  8-)
Though it's still working, I believe to remember that Autodesk switched to unicode with Autocad2008. That's when I stopped using %%###.  BTW hex960 = dec03C0 (hint) ;)

The thing is, if my font is Romans.SHX and I want one of these unicode characters, then 9/10 times the character is displayed as some TTF font (usually Arial). [...]
I've never seen a different alternate font than Arial. But I just change these characters to Simplex and then you don't even notice that another font is used for these few characters.
Another thing you can try is to edit your ACAD.FMP file. If you add
Code: [Select]
Arial;ROMANEUR.shx to this file the font ARIAL should (in theory :kewl: ) be replaced with a ROMAN-font that supports the most important unicodes.
Vault Professional 2023     +     AEC Collection

Crank

  • Water Moccasin
  • Posts: 1503
Re: how to add pi symbol in autocad text
« Reply #18 on: July 26, 2012, 01:28:21 PM »
If you open a drawing and you get a message like:
Quote
' ** Undefined shape 8962 '
that means a character is used, but the used font doesn't support that special character.

Owen has made a tool to remove these characters:
Quote
CleanLanguage 1.0                       March 25, 2011

Copyright (C) 2011 ManuSoft (http://www.manusoft.com)
http://www.manusoft.com/software/freebies/arx.html


  ** Legal Stuff **

CleanLanguage is placed in the public domain. The
CleanLanguage binaries may be freely redistributed
or used for any purpose as long as this legal notice
accompanies all files.

ManuSoft disclaims any and all liability for your use
of this software. The software is provided "as is"
without warranty of any kind, either express or implied.


  ** What it does **

CleanLanguage makes an effort to identify and clean
objects in an AutoCAD drawing file that contain corrupt
text characters. Such corruption may cause AutoCAD to
display a warning about a "missing language pack". The
software supports AutoCAD versions 2007 through 2012.


  ** How to use it **

To load the software, drag and drop the appropriate
.arx module into your AutoCAD drawing window, then use
the CLEANLANGUAGE command to clean the drawing.


  ** Support **

ManuSoft does not offer any technical support for this
software, however we do appreciate feedback. Please
contact us with information about any problems you
encounter.


 *****************************************
 ****  ManuSoft                       ****
 ****  POB 101, 34 Maple St.          ****
 ****  Apple Creek, OH, USA 44606     ****
 ****  +1 330-698-1723 (Voice)        ****
 ****  +1 330-698-1770 (Fax)          ****
 ****  http://www.manusoft.com        ****
 ****  support@manusoft.com           ****
 *****************************************
Vault Professional 2023     +     AEC Collection

owenwengerd

  • Bull Frog
  • Posts: 451
Re: how to add pi symbol in autocad text
« Reply #19 on: July 26, 2012, 01:54:51 PM »
CleanLanguage is intended for removing corrupt text; I could be wrong, but I don't think it would remove a missing shape reference from existing text. My SuperPurge utility can remove shape file references, though.