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.
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
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?
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
--