Help Needed LWPolyline

Discussion in 'AutoCAD' started by SehgalS, Sep 21, 2004.

  1. SehgalS

    SehgalS Guest

    I have an arc and a circle and I need to fillet it and create a polyline for this object. I m trying to use send command from VBA but couldnt do that. Can anybody help me on this one?

    My code is similar to
    dim alwpline as acadlwpolyline
    dim aArc as acadarc
    dim acir as acadcircle

    set aArc = thisdrawing.objecttoHandle("10F20") ' for Arc
    ' I am selecting an arc using its handle as this is known to me
    Set acir = thisdrawing.objecttohandle("20f20") ' for circle
    ' I am selecting a circle using its handle as this is known to me

    thisdrawing.sendcommand "_fillet" & vbCr & aArc & vbCr & aCir & vbCr
    but this code is not working for me. Can anybody please fix this one.

    Is there any way I can fillet this circle and arc without using send command.
     
    SehgalS, Sep 21, 2004
    #1
  2. Something like this. (Untested)
    thisdrawing.sendcommand "_fillet (handent " & chr(32) & "10F20" & chr(32) & ") (handent " & chr(32) & "20f20" & chr(32) & ") "

    Regards - Nathan
     
    Nathan Taylor, Sep 21, 2004
    #2
  3. OOPS chr(32) should be chr(34).
    I thought I should test it and the result I got was that the sequencing works and the values are accepted but the fillet doesn't seem to occur.

    Sorry - Nathan
     
    Nathan Taylor, Sep 21, 2004
    #3
  4. SehgalS

    SehgalS Guest

    Thanks Nathan,
    I tried the same and couldnt get the success I was looking for. This is probably because the point where we pick the object decides the direction of fillet. In this case since we have a circle and a cir which we need to fillet. When we select the circle the direction of fillet changes based on the selection point on the circle. So do you think if we can replace the object with the points. will it make a difference. Can anybody suggest me a better way to fillet?
     
    SehgalS, Sep 25, 2004
    #4
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.