Отримати назви макетів
Contents
[
Hide
]Як отримати назви макетів
Проблема: Як отримати назви макетів.
Поради: Щоб отримати назви макетів, потрібно використовувати клас CadLayoutDictionary в зображенні.
Приклад:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CadLayoutDictionary layouts =((CadImage)cadImage).Layouts; | |
string[] layoutNames = new string[layouts.Count]; | |
int i = 0; | |
foreach (CadLayout layout in layouts.Values) | |
{ | |
layoutNames[i++] = layout.LayoutName; | |
} |