Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am having issues with the PlotSettingsValidator
my end goal is really to just change the SetCurrentStyleSheet but when I do this it seems to change the PaperUnits to inches and not converting the listed scale, messing with the resulting plot.
I cannot seem to change the SetPlotPaperUnits either, the changes dont take effect in the dwg.
using (Transaction tr = db.TransactionManager.StartTransaction()) { Layout openLay = (Layout)tr.GetObject(lay.ObjectId, OpenMode.ForWrite); PlotSettings ps = new PlotSettings(openLay .ModelType); ps.CopyFrom(openLay); PlotSettingsValidator psv = PlotSettingsValidator.Current; psv.RefreshLists(openLay); psv.SetPlotPaperUnits(ps, PlotPaperUnit.Millimeters); psv.SetCurrentStyleSheet(ps, "Color.ctb"); tr.Commit(); }
Anybody have any ideas?
Solved! Go to Solution.