由于FileDependency在API中但没有公开并且使用COM,任何人都知道为什么它会返回字体,我可以在下面找到
-
- C:\Windows\FONTS\ ARIAL_1.TTF
- C:\Windows\FONTS\ trebuc_0.ttf
测试代码,似乎您需要保存文件才能使其显示任何内容。 。
[CommandMethod(“Testes1”)]。
公共无效 Testes1()。
{。
AcadApplication acadApp = (AcadApplication)Application.AcadApplication;。
AcadFileDependencies fileDepndesices = acadApp.Application.ActiveDocument.FileDependencies;。
foreach (AcadFileDependency fileDepndesic in fileDepndesices)。
{。
Ed.WriteLine(fileDepndesic.FoundPath + “ ” + fileDepndesic.FullFileName);。
}。
}。
。
本帖以下内容被隐藏保护;需要你回复后,才能看到! 游客,如果您要查看本帖隐藏内容请 回复 |