Closing a spline?

Discussion in 'AutoCAD' started by BillZ, Apr 23, 2004.

  1. BillZ

    BillZ Guest

    R2005 Vlisp:

    I'm having a go of it with a spline that was created in Vlisp.

    Command: (vlax-put-property sp_line 'closed :vlax-true)
    ; error: ActiveX Server returned an error: Type mismatch

    I can close the spline with the splinedit command but when I check the spline to see if the property can be modified, I get:
    Command: (vlax-property-available-p sp_line 'closed T)
    nil

    Anyone know how to do this?

    Bill
     
    BillZ, Apr 23, 2004
    #1
  2. BillZ

    Jeff Mishler Guest

    Me thinks BillZ is going through all the ACAD entities and lisp functions to
    see which ones he can break........ ;-)

    According to the help for creating a spline:
    To close a spline, use the Closed property once the spline has been created.

    According to the help for the "closed" property:
    Boolean; read-write

    And yet a vlax-dump on a spline object give this:
    ; IAcadSpline: AutoCAD Spline Interface
    ; Property values:
    ; Application (RO) = #<VLA-OBJECT IAcadApplication 00a8a730>
    ; Area (RO) = 55155.0
    ; Closed (RO) = 0 <<<<<<<<<<<<< RO means READ ONLY!!!!!!!!!!
    ; Color = 256

    What's up with that?

    No answers, just more questions,
    Jeff

    spline to see if the property can be modified, I get:
     
    Jeff Mishler, Apr 23, 2004
    #2
  3. BillZ

    BillZ Guest

    <<< Me thinks BillZ is going through all the ACAD entities and lisp functions to
    see which ones he can break........ ;-)
    BUSTED! ( :^ 0

    I noticed the big (RO) too just a while ago.

    They surely don't want us to go back to (command "splinedit" :)

    There must be another way.

    Bill
     
    BillZ, Apr 23, 2004
    #3
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.