Author Topic: D_FONT changes not working in later versions.  (Read 522 times)

bdeck

  • Hero Member
  • *****
  • Posts: 780
D_FONT changes not working in later versions.
« on: December 05, 2015, 02:10:15 PM »
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

Code: [Select]
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. 
« Last Edit: December 07, 2015, 08:50:37 AM by bdeck »

DrollTroll

  • Kindly Curmudgeon
  • Administrator
  • *****
  • Posts: 4091
Re: D_FONT changes not working in later versions.
« Reply #1 on: December 07, 2015, 02:11:13 PM »
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.
2016 marks my 24th year in DesignCAD-Land!

bdeck

  • Hero Member
  • *****
  • Posts: 780
Re: D_FONT changes not working in later versions.
« Reply #2 on: December 07, 2015, 02:18:05 PM »
I'll flag it for fix in V26.

DT,
Thats good enough for me.
Many Thanks,
BD