Automatic EXTRUDE and Boolean operations

Discussion in 'AutoCAD' started by sploo, Jan 23, 2008.

  1. sploo

    sploo Guest

    Hi,

    I'm trying to set up some scripts to automate EXTRUDE and Boolean
    operations like SUBTRACT.

    EXTRUDE seems to be OK, as I can create a shape, then select it using
    'Last'.

    E.g. to extrude a circle by 20 units:

    _CIRCLE
    0,0
    10
    _EXTRUDE
    Last

    20
    0

    However, if I create two objects (A and B) and I want to subtract B
    from A, I can still specify B as Last, but how do I identify A (the
    '2nd Last')?

    E.g.

    _SUBTRACT
    '2nd Last'

    Last


    I can use 'Crossing' and specify a window to select A, but this is a
    bit crude. Is there a better way?

    Thanks for any info.
     
    sploo, Jan 23, 2008
    #1
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.