In the Refedit dialog there is a "settings" tab. There you can select "Lock objects not in working set." My question is, how can we specify this setting through lisp... because when using "-REFEDIT" in vlisp, the objects outside the working set do not get locked (unless you already used "REFEDIT" during the drawing session.) I scoured the internet and found several threads about this without any resolution... someone suggested changing the registry key for "LockObjects"... this only tells AutoCAD to remember if the "Lock objects not in working set" check box is checked or not in between REFEDIT dialogs, it does not alter the behavior of "-refedit" itself. This leads me to believe that there is some setting or flag that gets changed internally... I hope this question makes sense and that someone else has figured this out.

Thanks