Translate a Lisp command in Vlisp

Discussion in 'AutoCAD' started by Marcel Goulet, Feb 24, 2005.

  1. Hi,

    How can I translate this in VLisp?

    (command ".-image" "detach" "*sceau*")

    Thanks
     
    Marcel Goulet, Feb 24, 2005
    #1
  2. Marcel Goulet

    MP Guest

    just a guess...something like..
    assuming you have a list of vla-objects representing those images
    (foreach img imglist
    (vl-catch-all-apply
    'vlax-invoke-method (list img 'Delete)
    )
    )
    'or you could have a selection set instead of a list - get with filter for
    your wildcard name
    'I believe an image is really a raster
    'and from the help it appears they have a delete method, rather than a
    detach method
    hth
    Mark
     
    MP, Feb 24, 2005
    #2
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.