View Full Version : Weird Fractions in 2006 as opposed to 2005
jsnow
2006-02-10, 09:29 PM
I just received drawings from one of our contractors who is using 2005 (we are on 2006) and the fractions that they typed in are all coming in a symbols. We required all contractors to use the standard Romans.shx. They tell me that we don't have the latest version of the Romans font file that is why they don't look right. Is this possible or are they using a customized font file named Romans.shx? They say to get 1/8" you have to enter %%202 with the last number being the number of 1/16th. Please fill me in I skipped from 2004 to 2006.
Mike.Perry
2006-02-11, 01:16 AM
Hi
Personally I would request they send you the Font file being used with their drawing files... you can then carry-out testing at your end...
Have a good one, Mike
Chris.N
2006-02-11, 02:19 AM
Hi
Personally I would request they send you the Font file being used with their drawing files... you can then carry-out testing at your end...
Have a good one, Mikemay i add that the eTransmit function (in File pull down menu) works wonders in this situation?
jsnow
2006-02-13, 02:44 PM
I did have them send in the Romans.shx file and it makes their drawings display fine. The problem I have is they are telling me that they have the latest file update. They are running 2005 and I am running 2006. I find it hard to believe that something that is standard in 2005 does not work in 2006. I think that they had a custom font file named named something else and just named it so that it would have the same name for the font file that we have in our standards. The romans.shx that they sent in is 5KB in size compared to a 16KB size file that is in 2006. I guess what I am really trying to figure out is did AutoCAD ever have this means of getting fractions in their text? %%202 = 1/8" %%212 = 3/4" etc...... I have numerous computers here and I don't want to have to worry about keeping track of custom font file as I update in the future just so these 5 files display right.
I did have them send in the Romans.shx file and it makes their drawings display fine. The problem I have is they are telling me that they have the latest file update. They are running 2005 and I am running 2006. I find it hard to believe that something that is standard in 2005 does not work in 2006. I think that they had a custom font file named named something else and just named it so that it would have the same name for the font file that we have in our standards. The romans.shx that they sent in is 5KB in size compared to a 16KB size file that is in 2006. I guess what I am really trying to figure out is did AutoCAD ever have this means of getting fractions in their text? %%202 = 1/8" %%212 = 3/4" etc...... I have numerous computers here and I don't want to have to worry about keeping track of custom font file as I update in the future just so these 5 files display right.
The romans.shx file that is shipped with ACAD 05 is 16kb in size. It also is dated 6/23/2003. While the romans.shx that shipped with ACAD 06 is also 16kb in size but dated 10/12/2004.
I hope that helps you out a bit.
jsnow
2006-02-14, 09:09 PM
Opie,
I am not questioning your file size information, but how do you know the file size? Is there a official website that says what size files are for each release? The only reason I ask is because this contractor is now trying to tell me that the file they sent me is compressed that is why it is smaller. I don't believe them. If Autodesk had this type of fraction entry in 2005 wouldn't they have it in 2006 or tell us that they took it out? Anybody that wants to help me prove this contractor is trying to pull a fast one on me please send me any information that could prove them wrong so I can get the correct drawings sent in. If someone from Autodesk wants to chime in and help out feel free. Or could someone tell me I could get a clean copy of 2005 romans.shx font file?
Mike.Perry
2006-02-14, 09:29 PM
Or could someone tell me I could get a clean copy of 2005 romans.shx font file?Hi
Please see attached.
Have a good one, Mike
jakob_k
2006-03-02, 07:04 PM
hi,
way back in the mid-90's there was a shape file called "sx-frac".
it was the "romans" but with ascii 201 thru 231 defined as fractions.
201= 1/16 202= 1/8 203= 3/16 204= 1/4 etc.
and
216= 1/32 217= 3/32 218= 5/32 219= 7/32 etc.
i suspect they renamed it to "romans" and are pulling your leg.
cad can always reference an ascii character by using "%%" in front.
(example: %%70 is capital f)
i have a routine to help me cleanup old messes. i hope it helps you.
karl
;25nov05 - kaj
;29dec05 - carried forward to j-drive & checked for 2006 compatibility
;
;Abbreviations STR String SSET Selection set
; ENT Entity LEN Length
;
;
;
;Subroutines SWAP-TEXT (TEXT_SWAP_STR)
; SEARCH-FOR-FRACTION
; C:REPLACE-FRACTION (the main program)
; C:REP-FRAC (built-in shortcut)
;
;
(defun SWAP-TEXT (TEXT_SWAP_STR)
;below - if number in front then add space and swap, otherwise just swap.
; if "COUNT" equals one, then no character in front (just swap)
(if (= COUNT 1)
(progn
(setq TEXT_PREFIX_STR nil)
(setq TEXT_STR (strcat (substr TEXT_STR 1 (- COUNT 1))
TEXT_SWAP_STR
(substr TEXT_STR (+ COUNT 5))
) ;end-of-strcat
) ;end-of-setq
) ;end-of-progn
(progn
(setq TEXT_PREFIX_STR (substr TEXT_STR (- COUNT 1) 1))
(if (wcmatch TEXT_PREFIX_STR "#")
(setq TEXT_STR (strcat (substr TEXT_STR 1 (- COUNT 1))
(strcat " " TEXT_SWAP_STR)
(substr TEXT_STR (+ COUNT 5))
) ;end-of-strcat
) ;end-of-setq
(setq TEXT_STR (strcat (substr TEXT_STR 1 (- COUNT 1))
TEXT_SWAP_STR
(substr TEXT_STR (+ COUNT 5))
) ;end-of-strcat
) ;end-of-setq
) ;end-of-if
) ;end-of-progn
) ;end-of-if
(setq TEXT_DATA (subst (cons 1 TEXT_STR)
(assoc 1 TEXT_DATA)
TEXT_DATA
)
) ;end-of-setq
(entmod TEXT_DATA)
(entupd TEXT_ENT)
) ;end-of-defun
;
;
(defun SEARCH-FOR-FRACTION ()
(setq COUNT 1)
(while (<= COUNT (- TEXT_LEN 4))
(setq TEXT_STR_5 (substr TEXT_STR COUNT 5))
(cond ((= TEXT_STR_5 "%%201") (SWAP-TEXT "1/16"))
((= TEXT_STR_5 "%%202") (SWAP-TEXT "1/8"))
((= TEXT_STR_5 "%%203") (SWAP-TEXT "3/16"))
((= TEXT_STR_5 "%%204") (SWAP-TEXT "1/4"))
((= TEXT_STR_5 "%%205") (SWAP-TEXT "5/16"))
((= TEXT_STR_5 "%%206") (SWAP-TEXT "3/8"))
((= TEXT_STR_5 "%%207") (SWAP-TEXT "7/16"))
((= TEXT_STR_5 "%%208") (SWAP-TEXT "1/2"))
((= TEXT_STR_5 "%%209") (SWAP-TEXT "9/16"))
((= TEXT_STR_5 "%%210") (SWAP-TEXT "5/8"))
((= TEXT_STR_5 "%%211") (SWAP-TEXT "11/16"))
((= TEXT_STR_5 "%%212") (SWAP-TEXT "3/4"))
((= TEXT_STR_5 "%%213") (SWAP-TEXT "13/16"))
((= TEXT_STR_5 "%%214") (SWAP-TEXT "7/8"))
((= TEXT_STR_5 "%%215") (SWAP-TEXT "15/16"))
((= TEXT_STR_5 "%%216") (SWAP-TEXT "1/32"))
((= TEXT_STR_5 "%%217") (SWAP-TEXT "3/32"))
((= TEXT_STR_5 "%%218") (SWAP-TEXT "5/32"))
((= TEXT_STR_5 "%%219") (SWAP-TEXT "7/32"))
((= TEXT_STR_5 "%%220") (SWAP-TEXT "9/32"))
((= TEXT_STR_5 "%%221") (SWAP-TEXT "11/32"))
((= TEXT_STR_5 "%%222") (SWAP-TEXT "13/32"))
((= TEXT_STR_5 "%%223") (SWAP-TEXT "15/32"))
((= TEXT_STR_5 "%%224") (SWAP-TEXT "17/32"))
((= TEXT_STR_5 "%%225") (SWAP-TEXT "19/32"))
((= TEXT_STR_5 "%%226") (SWAP-TEXT "21/32"))
((= TEXT_STR_5 "%%227") (SWAP-TEXT "23/32"))
((= TEXT_STR_5 "%%228") (SWAP-TEXT "25/32"))
((= TEXT_STR_5 "%%229") (SWAP-TEXT "27/32"))
((= TEXT_STR_5 "%%230") (SWAP-TEXT "29/32"))
((= TEXT_STR_5 "%%231") (SWAP-TEXT "31/32"))
) ;end-of-condition
(setq COUNT (1+ COUNT))
) ;end-of-while
) ;end-of-defun
;
;
(defun C:REPLACE-FRACTION ()
(setq SSET (ssget "X" '((0 . "TEXT"))))
(if (= SSET nil)
(exit)
) ;end-of-if
(setq SSET_LEN (sslength SSET))
(setq INDEX 0)
(while (> SSET_LEN INDEX)
(setq TEXT_ENT (ssname SSET INDEX))
(setq TEXT_DATA (entget TEXT_ENT))
(setq TEXT_STR (cdr (assoc 1 TEXT_DATA)))
(setq TEXT_LEN (strlen TEXT_STR))
(if (wcmatch TEXT_STR "*%%2*") ;a quick filter for me
(SEARCH-FOR-FRACTION)
) ;end-of-if
(setq INDEX (1+ INDEX))
) ;end-of-while
(princ)
) ;end-of-defun
;
;
(defun C:REP-FRAC ()
(C:REPLACE-FRACTION)
) ;end-of-defun[ Moderator Action = ON ] What are [ CODE ] tags... (http://forums.augi.com/misc.php?do=bbcode#code) [ Moderator Action = OFF ]
I suppose you could change your requirements so that they use stacked text in MTEXT instead of the fractions. Or is this text somewhere where you can't use MTEXT?
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.