-1

How to Get Device StyleName in Autocad MEP 2011 through c#

user633558
  • 15
  • 2
  • 3

1 Answers1

0

To display style sheet of current layout :

Layout layout = LayoutManager.Current.CurrentLayout; 
PlotSettings plotSettings = new PlotSettings(layout.ModelType);
plotSettings.CopyFrom(layout);
MessageBox.Show(plotSettings.CurrentStyleSheet);
Maxence
  • 12,868
  • 5
  • 57
  • 69