PlotStyle Location

PlotStyle Location

Anonymous
Not applicable
952 Views
1 Reply
Message 1 of 2

PlotStyle Location

Anonymous
Not applicable

Hi Guys,

 

there is a way for find the plotstyles and plotter configuration location via C or VB.Net?

I have some user that have a personalized location and I am writinng a procedure for create Batch Etransmit whit the lib.

 

Thanks

 

Stefano

0 Likes
Accepted solutions (1)
953 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor
Accepted solution

You would need to use COM object AcadApplication:

 

dynamic comAcad=Autodesk.AutoCAD.ApplicationServices.Application.AcadApplication;

string[] stylePaths=comAcad.Preferences.Files.PrinterStyleSheetPath.Split(';');

Then for each style sheet path/folder, you would loop through all files in the folder for the "*.ctb" file of your target.

Norman Yuan

Drive CAD With Code

EESignature