Author Topic: Fonts returned from AcadFileDependency  (Read 2773 times)

0 Members and 1 Guest are viewing this topic.

Jeff H

  • Needs a day job
  • Posts: 6150
Fonts returned from AcadFileDependency
« 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.  

moab30345

  • Mosquito
  • Posts: 1
Re: Fonts returned from AcadFileDependency
« Reply #1 on: May 19, 2022, 03:12:43 PM »
How to implement this code