DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Wrong character set when viewing old .DCD drawings

Started by Lvdv, January 23, 2011, 06:09:20 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Lvdv

We are using the design cad viewer release 13.0.006 to check older .dcd drawings in our factory .When these drawings , made in 1997, are viewed -the text characters are not interpreted correctly.It looks as if the keyboard settings were wrong - we use locally Azerty keyboards instead of Querty and French characters as "é" are interpreted on the screen as a comma ",".Is it possible to change this or convert this character setting/interpretation ?

Bob P

I doubt whether you can change how the view interprets the drawing since it apparently has an internal ASCII interpreter rather than using the computer's language map.

I have never used the viewer so...

Are you using the viewer to pick points off the drawing for dimensions?  If that's the case, you can write a macro to search for certain characters and replace them.  See below for a sample.
If not, how about printing the drawing to PDF for viewing?

This is part of a macro that I wrote to replace characters that have been re-mapped between the DOS and Windows versions of DC.  You would have to make several instances to find and replace characters.
=====================================================
'prep.d3m
'Replaces all instances ñ of with ± in available text
'and ø with °

INCLUDE "*\DcadAlias.d3i"
wrong$="ñ" 'Define the target (incorrect) text

for j=1 to sys(9) 'Cycle through all entities in the drawing
entity j
if sys(90) = 13 then 'If the entity is text
query T_Text, text$

totlen=len(text$) 'Get the total length
n=instr(text$,wrong$) 'Find the position of ñ

if n > 0 then
text1$=left$(text$,(n-1))
text2$=right$(text$,(totlen-n))
newtext$=text1$ + "±" + text2$
change T_Text, newtext$
update
endif 'n > 0

endif 'sys(90) = 13
next j