Message 1 of 2
.StyleSheet and .ConfigName question

Not applicable
04-06-2004
03:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If a layout has the PC3 and CTB assigned to None, I use this code to assign
a "default" value.
Dim objLayout As AcadLayout
Set objLayout = ThisDrawing.ActiveLayout
If objLayout.configName = "None" Then
objLayout.configName = "CLASER.pc3"
objLayout.StyleSheet = "CLASER.ctb"
objLayout.RefreshPlotDeviceInfo
End If
If you look at the Pagesetup dialog after the code is run, both values are
set, however the Plot Preview still "looks" like it has None applied.
If you select THE SAME EXACT PC3 and CTB from the Pagesetup dialog, press
OK, the changes are applied.
Is there a "force" save or refresh option that I am missing ?
Thanks.