PlotMessageIndex.SheetSetProgressCaption, PlotMessageIndex.CancelSheetButtonMessage, Make the layout we're plotting current Psv.SetStdScaleType(ps, StdScaleType.ScaleToFit) Create a Progress Dialog to provide infoįoreach ( ObjectId btrId in layoutsToPlot)Ī. Only proceed if we have values for both Return new string ĭb.TransactionManager.StartTransaction() PlotSettings ps = new PlotSettings( true) Static public string ChooseDeviceAndMedia()Ī Here's the function integrated into the C# code from this previous post, which defines a command called MPLOT: I chose not to worry about displaying locale-specific names, for now - I'll leave that for a future post (let me know if you're interested :-). I implemented a simple function called ChooseDeviceAndMedia() which queries the current device list, allows selection from it, and then gets the media name list and allows selection from that. It should be straightforward to extend this to implement a WinForm with comboboxes for the device and media names. Today I'll focus on the first option, although I'm only going to implement a basic, command-line user interface. Another approach for setting the media name is to use PlotSettingsValidator.SetClosestMediaName() to choose the media name that most closely matches the paper size you desire. The first is to implement a user interface of some kind which allows the user to select the device and media names. There are a few approaches, other than the one I chose of hardcoding the device and media names. A comment came in on this previous post regarding how best to know whether a media name is valid during your plot configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |