Message 1 of 2
Plot styles problem
Not applicable
05-23-2002
03:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
i need to change some values in the pagesetup on each paperspace layout.
Origin, papersize, plottername the code works it chanes all the values but
on the screen there is not the correct information.
I need to start the pagesetup command and close the dialogbox with the OK
button, then evrything is ok.
Do i need to do more regen , updates or things like this in my code, or is
it a bug in the layout object?
Regards
Erich
''''''
For Each myLayout In ThisDrawing.Layouts
newValue(0) = 25
newValue(1) = 25
myLayout.ConfigName = "Test.ctb"
myLayout.StyleSheet = "Test.pc3"
If myLayout.ModelType = False Then
myLayout.PlotType = acLayout
myLayout.PlotOrigin = newValue
If InStr(1, myLayout.Name, " L") > 0 Then
myLayout.CanonicalMediaName = "User258"
End If
If InStr(1, myLayout.Name, " R") > 0 Then
myLayout.CanonicalMediaName = "User257"
End If
If InStr(1, myLayout.Name, " G") > 0 Then
myLayout.CanonicalMediaName = "User259"
newValue(1) = 5
myLayout.PlotOrigin = newValue
End If
myLayout.RefreshPlotDeviceInfo
End If
Next
i need to change some values in the pagesetup on each paperspace layout.
Origin, papersize, plottername the code works it chanes all the values but
on the screen there is not the correct information.
I need to start the pagesetup command and close the dialogbox with the OK
button, then evrything is ok.
Do i need to do more regen , updates or things like this in my code, or is
it a bug in the layout object?
Regards
Erich
''''''
For Each myLayout In ThisDrawing.Layouts
newValue(0) = 25
newValue(1) = 25
myLayout.ConfigName = "Test.ctb"
myLayout.StyleSheet = "Test.pc3"
If myLayout.ModelType = False Then
myLayout.PlotType = acLayout
myLayout.PlotOrigin = newValue
If InStr(1, myLayout.Name, " L") > 0 Then
myLayout.CanonicalMediaName = "User258"
End If
If InStr(1, myLayout.Name, " R") > 0 Then
myLayout.CanonicalMediaName = "User257"
End If
If InStr(1, myLayout.Name, " G") > 0 Then
myLayout.CanonicalMediaName = "User259"
newValue(1) = 5
myLayout.PlotOrigin = newValue
End If
myLayout.RefreshPlotDeviceInfo
End If
Next