Message 1 of 2
Plotting with Custom .ctb File as parameter input
Not applicable
07-06-2020
09:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a working PlotToPDF command using the AutoCAD API where I define plot settings. All works well when i use one of the standard pen settings (ie. monochrome.ctb). However when i change the pen settings to a custom ctb this works fine as long as the ctb file is added to the options --> print style support path.
I then created an editor prompt to have the user enter the location of the custom ctb file. But i cant figure out how to programmattically update the style tables dictionary to include this custom ctb file.
Ultimately this will be used on the forge platform where the user can upload a ctb file and autocad .dwg file and it will plot using those custom pen settings.
Any suggestions would be much appreciated.
Thanks,
john