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.

D_FONT changes not working in later versions.

Started by bdeck, December 05, 2015, 02:10:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bdeck

The following snipit works for both text and dimension entities in version 17.
It works only for text entities in versions 18-25.
Has the D_FONT alias changed?

bd


Alias T_FONT    &H0508
Alias D_FONT  &H0A06

for entno = 1 to sys(9)
getattr entno, type
isdim=0
if (type >73) and (type<82) then isdim=1
entity entno

if isdim=0 then
Query  T_FONT  fontname$
gosub changeit
Change T_FONT, fname$
else
Query  D_FONT,  fontname$
gosub changeit
Change D_FONT, fname$
endif               
update
next entno
regen
end

changeit:
if fontname$ <> "Arial" then fname$ = "Arial"
if fontname$ = "Arial" then fname$ = "segoe print"
return



Edited to correct wrong alias. 

DrollTroll

Hmmm. Sorry, it appears to be broken, no doubt due to the massive code changes to dimensions in V18. I'll flag it for fix in V26.
25 years with DesignCAD

bdeck