Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Autocad > Beginner: comma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3357 of 3467
Post > Topic >>

Beginner: command ".refedit" in AutoLISP

by Cleaner <waubencad@[EMAIL PROTECTED] > Jan 26, 2008 at 11:02 PM

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.




 1 Posts in Topic:
Beginner: command ".refedit" in AutoLISP
Cleaner <waubencad@[EM  2008-01-26 23:02:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 7:09:43 CDT 2008.