Jump to content

RefEdit is not locking the objects ?!?


chavlji

Recommended Posts

Hello I use the following command in lisp to get into ref edit mode:

(command "-RefEdit" "ok" "all" "yes")

But entering editor this way it does not lock other objects (objects that are not inside block/xref).

If I use standard refedit with dialog under "settings" there is an option "lock objects not in working set". It is always checked. But how to trigger this option from lisp? I monitored sysvar changes (using reactor), but no sysvar is changed...

 

Intrestingly:

If I refedit with dialog once, from then on even my lisp code locks other options. So refedit dialog setts something that I should set from lisp... but what?

Link to comment
Share on other sites

Normally Autocad stores settings in the registry. Look under the registry in the current Autocad profile you are using.

Link to comment
Share on other sites

followup to borgunit's reply:

 

 

in my acad 2008(unnamed profile):

 

(VL-REGISTRY-READ "HKEY_CURRENT_USER\\Software\\Autodesk\\AutoCAD\\R17.1\\ACAD-6001:409\\Profiles\\>\\Dialogs\\RefeditDialog" "LockObjects") => 0

 

to change:

(vl-registry-Write "HKEY...." "LockObjects" "1")

Link to comment
Share on other sites

Thet's not it. It doesn't work.

 

Registry value only tells program what was last setting in dialogs between different Autocad runs. Changing this value does not affect behaveour of current run.

 

This must be some variable inside autocad, but I am unable to detrmine wich or how to set it manualy.

Link to comment
Share on other sites

Changing this value does not affect behaveour of current run.

i tested here and its dynamically changing in my current run and im using only one acad session.

 

 

try searching for RefeditDialog inside your registry to get the LockObjects directory then copy the key frame. i think i have put

R 17.1 in my previous post, it should be R17.1(without space). ill try also to look for some other sysvars, i'll post if ever i find something related.

Link to comment
Share on other sites

Thenx.

 

It really doesn't work only changing the registry. In my case it is set to 1 but it still does not lock other objects.

 

It may be changing during session, but it probably only store value there. So it knows if it should check or uncheck "lock objects" radio button, when user runs "refedit" dialog for the first time in one session...

Because changing this reg value really does not change the behaveour of "-refedit" command.

Link to comment
Share on other sites

I think the lock option in refedit mode handle the BeginCommand event, and filter the entities which are not in the working selection set out. I use VBA to scale object, and RefEdit allow me to scale any object ! Then the lock option is not very powerfull as it should be ...

Link to comment
Share on other sites

  • 4 years later...

I have recently upgraded to AutoCAD'2011 from AutoCAD'2008 and having same problem with "-refedit". In earlier version of Cad, their was no such problem but now the objects outside working set are not locked untill you use the right click option & select "edit block in place" :reallymad:

 

IS THIS BUG OR WHAT :rtfm:

 

Does Anyone know the solution :? :unsure: :? :unsure:

Link to comment
Share on other sites

  • 5 months later...
IS THIS BUG OR WHAT :rtfm:

 

MATCHPROP seems to ignore the "lock objects not in working set" setting in v2013. I'd call that a bug.

Link to comment
Share on other sites

  • 6 years later...

Hello Dadgad, yes is selected.
When I first select _refedit in the context menu in a new drawing and the button ok. press then the second time everything works as desired. But you always have to edit the block the first time using the _refedit dialog box.
That's funny.
lg. Martin

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...