Worked great in 2002 not in 2005 (.stylesheet)

Discussion in 'AutoCAD' started by Thickman, Dec 6, 2004.

  1. Thickman

    Thickman Guest

    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
     
    Thickman, Dec 6, 2004
    #1
  2. Thickman

    Thickman Guest

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

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

    Terry
     
    Thickman, Dec 15, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.