Setting the the plot configuration

Discussion in 'AutoCAD' started by Joe Sutphin, Jan 22, 2004.

  1. Joe Sutphin

    Joe Sutphin Guest

    Dave and Mike,

    The RefreshPlotDeviceInfo is not necessary.

    My hunch is that the StyleSheet or .CTB file was not created in the same
    version of AutoCAD that you're currently trying to execute your application.

    Open the file in your current version and re-save it and see if that does
    not clear up your problem.

    Joe
    --

    From: "Mike Tuersley" <>
    Subject: Re: Setting the the plot configuration
    Date: Wednesday, January 21, 2004 11:28 AM

    Can you send me a copy of the full code? You may have posted and I
    missed it.
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Joe Sutphin, Jan 22, 2004
    #1
  2. I politely beg to differ Joe. In past experiences, the refresh is
    necessary - and, I started doing it after adn recommended it. 'Course
    even if you have some insight that I am not aware of [yet?], it still
    does no harm.
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Jan 22, 2004
    #2
  3. Joe Sutphin

    KingCAD Guest

    As for myself - no that does not help, I created the ".ctb" specifically for this program in the version I am using. I have also found that although the other settings (such as .CenterPlot = True), look to be changing in the watch but the actual plot does not represent the change. We have found a work around by creating the template for these drawings with those settings as the defaults for the drawing, But I should be able to make the code work shouldn't I ? Are you saying that the code is written properly?? and there is something somewhere else that is "out of whack"?
    Here's the entire sub if you would like another look.

    Private Sub Send_DWF()
    StrStylSheet = "Black_White_Plot.ctb"
    Set ACADLayout = ObjAcadDoc.ActiveLayout
    With ACADLayout
    .PlotType = acExtents
    .PlotRotation = ac90degrees
    .CenterPlot = True
    .StandardScale = acScaleToFit
    .StyleSheet = StrStylSheet
    .PlotWithPlotStyles = True
    .RefreshPlotDeviceInfo
    End With
    ObjHypLayer.Plottable = True
    ObjAcadDoc.Plot.PlotToDevice (PlotConfig)
    ObjHypLayer.Plottable = False
    End Sub


    Thanks

    Dave. K
     
    KingCAD, Jan 22, 2004
    #3
  4. Joe Sutphin

    Joe Sutphin Guest

    Make the following change and see what happens.
    Joe
    --

    for this program in the version I am using. I have also found that although
    the other settings (such as .CenterPlot = True), look to be changing in the
    watch but the actual plot does not represent the change. We have found a
    work around by creating the template for these drawings with those settings
    as the defaults for the drawing, But I should be able to make the code work
    shouldn't I ? Are you saying that the code is written properly?? and there
    is something somewhere else that is "out of whack"?
     
    Joe Sutphin, Jan 22, 2004
    #4
  5. Joe Sutphin

    KingCAD Guest

    No change,
    I still get rejected on the StyleSheet line. I placed an On Error goto statement at the begining of the Sub, but I get no error it just jumps out, returns to the original procedure and continues from there. No clues here!

    Thanks
    Dave. K
     
    KingCAD, Jan 22, 2004
    #5
  6. Joe Sutphin

    Joe Sutphin Guest

    If you can send the code to me at I'd be happy to look into
    it further.

    Joe


    statement at the begining of the Sub, but I get no error it just jumps out,
    returns to the original procedure and continues from there. No clues here!
     
    Joe Sutphin, Jan 22, 2004
    #6
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.