setting style sheet bombs

Discussion in 'AutoCAD' started by perry, Feb 2, 2004.

  1. perry

    perry Guest

    Can anyone tell me why the following code snippet bombs when I attemp to set
    the stylesheet property?
    Setting it to an empty string works, but trying to put an actual style sheet
    name into it gives a runtime error.
    Yes, the .ctb file does exist, I tried tacking on full path, etc. no luck
    Thanks


    strStyleName = "HP1120-mono.ctb"
    With objLayout
    .PlotWithPlotStyles = True
    .StyleSheet = ""
    .StyleSheet = strStyleName
    .RefreshPlotDeviceInfo
    End With
     
    perry, Feb 2, 2004
    #1
  2. Have you tried setting the StyleSheet AFTER the call to RefreshPlotDeviceInfo?
     
    Chuck Gabriel, Feb 4, 2004
    #2
  3. That wouldn't make a difference, Chuck. Look at Perry's other
    thread...he has something else going on - bad install???
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Feb 4, 2004
    #3
  4. Oops. I guess I'm a little behind on my reading. I haven't had much spare time
    lately.
     
    Chuck Gabriel, Feb 4, 2004
    #4
  5. Yeah, I know how that goes!
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Feb 4, 2004
    #5
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.