From: Cleaner
Subject: Beginner: command ".refedit" in AutoLISP
Date: 
Message-ID: <21a59b8c-ff11-4aa9-9bf2-003b978c4dce@v17g2000hsa.googlegroups.com>
Hello,

my problem is simple. I want the user to select a block, and then
perform the command "-refedit". I have the following code:

(while (= setSelection nil)
(setq setSelection (ssget ":S" (list (cons 0 "INSERT"))))
)
(setq strBlockName (ssname setSelection 0))

Now I can use strBlockName to, for example, erase it:

(command ".erase" strBlockName "")

But this doesn't work with "-refedit". I have tried to use the handle
of the block, but it doens't work either:

(setq objHandle (cdr(assoc 5 entBlockData)))
(command ".-refedit" objHandle "ok" "all" "yes")

Can some one please tell me how to select a block (a reference?) and
than perform the command refedit on the block?

Thank you very much.

From: Maciej Katafiasz
Subject: Re: Beginner: command ".refedit" in AutoLISP
Date: 
Message-ID: <fnhtf7$eal$1@news.net.uni-c.dk>
Den Sat, 26 Jan 2008 23:01:50 -0800 skrev Cleaner:

> my problem is simple. I want the user to select a block, and then
> perform the command "-refedit". I have the following code:

I really doubt you'll be able to get help here. This group is dedicated 
mostly to Common Lisp, whereas AutoLISP is a very specialised, quirky 
dialect specific to one product. You'll be much better off finding a 
group dedicated to AutoLISP.

Cheers,
Maciej
From: Andreas Davour
Subject: Re: Beginner: command ".refedit" in AutoLISP
Date: 
Message-ID: <cs9y7abjp1i.fsf@Psilocybe.Update.UU.SE>
Maciej Katafiasz <········@gmail.com> writes:

> Den Sat, 26 Jan 2008 23:01:50 -0800 skrev Cleaner:
>
>> my problem is simple. I want the user to select a block, and then
>> perform the command "-refedit". I have the following code:
>
> I really doubt you'll be able to get help here. This group is dedicated 
> mostly to Common Lisp, whereas AutoLISP is a very specialised, quirky 
> dialect specific to one product. You'll be much better off finding a 
> group dedicated to AutoLISP.

You never know what knowledge lurks here, but comp.cad.autocad is
probably a safer bet, yes.

/Andreas

-- 
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
From: Martti Halminen
Subject: Re: Beginner: command ".refedit" in AutoLISP
Date: 
Message-ID: <479d1767$0$14994$4f793bc4@news.tdc.fi>
The best place for AutoLISP -specific questions is probably the newsgroup

  autodesk.autocad.customization

- I'm not sure whether this is distributed on general news servers, but
you can get it from the discussion.autodesk.com server.
Also readable by a web browser at

http://discussion.autodesk.com/forum.jspa?forumID=130

--