Worked great in 2002 not in 2005 (.stylesheet)
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Worked great in 2002 not in 2005 (.stylesheet)

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Thickman
Guest





Posted: Mon Dec 06, 2004 5:57 pm    Post subject: Worked great in 2002 not in 2005 (.stylesheet) Reply with quote

Hello,

I have a program that plots multiple drawings that are in model space. The program works fine in 2002 but not in 2005. I receive a “WARNING: Incompatible or missing plot style” in 2005. If I set the plot style manually it works fine, if the program sets the plot style it shows up but it’s like it doesn’t apply it. All the code is being applied to the ActiveLayout. Here is a piece of the code.

With ACT
.RefreshPlotDeviceInfo
.ConfigName = which_pc3
.CanonicalMediaName = "ANSI_D_(34.00_x_22.00_Inches)"
.PlotWithPlotStyles = True
.StyleSheet = ocestyle
.RefreshPlotDeviceInfo
.PlotType = acExtents
.StandardScale = acScaleToFit
.PlotRotation = ac0degrees
.CenterPlot = True
.RefreshPlotDeviceInfo
End With

Thanks,
Terry

Back to top
Thickman
Guest





Posted: Thu Dec 16, 2004 1:53 am    Post subject: Re: Worked great in 2002 not in 2005 (.stylesheet) Reply with quote

The answer is... if anybody else needs this.

Separate the path (.PrinterStyleSheetPath) from the plot style table (.StyleSheet).

Terry
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB