TheSwamp

Code Red => .NET => Topic started by: Jeff H on October 30, 2012, 11:52:42 AM

Title: Fonts returned from AcadFileDependency
Post by: Jeff H on October 30, 2012, 11:52:42 AM
Since FileDependency is in API but not exposed and using COM does anyone know why it returns fonts that I can find like below
Code: [Select]

C:\Windows\FONTS\  ARIAL_1.TTF
C:\Windows\FONTS\  trebuc_0.ttf

Testing code and seems you need to save the file to get it to show anything.
Code - C#: [Select]
  1.  
  2.          [CommandMethod("Testes1")]
  3.         public void Testes1()
  4.         {
  5.             AcadApplication acadApp = (AcadApplication)Application.AcadApplication;
  6.            AcadFileDependencies fileDepndesices = acadApp.Application.ActiveDocument.FileDependencies;
  7.            foreach (AcadFileDependency fileDepndesic in fileDepndesices)
  8.            {
  9.                Ed.WriteLine(fileDepndesic.FoundPath + "  " + fileDepndesic.FullFileName);
  10.           }
  11.         }
  12.  
Title: Re: Fonts returned from AcadFileDependency
Post by: moab30345 on May 19, 2022, 03:12:43 PM
How to implement this code