TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: martinle on September 21, 2012, 04:56:52 AM
-
Hello!
For example I have 5 single hidden objects with the command _HideObjects individually.
Now I need as 3 Objekt.Die remaining 4 hidden objects but will remain hidden.
Is there a way individual choice sets that were hidden with the command _HideObjects unhide without all the hidden objects with the command _UnIsolateObjects unhide.
If such a thing would be really great!
Best regards Martin
-
kdub:edit <-- moved to Lisp Forum at OP's request
-
You might want to look at the Objects 'visibility property. Consider the following:
(defun c:kbVizOff( / ent)
(setq ent(entsel))
(if ent
(vla-put-Visible(vlax-ename->vla-object(car ent)):vlax-false)))
I've gone ahead and attached my Visibility routine. It includes an OpenDCL dialog that allows isolating an object, turning off / on a selection of objects, and turning on all objects. I wrote this when Building 3d models - helps out when the model gets really complex.
You need to download the OpenDCL runtime to use the form: www.OpenDCL.com
jb
-
Hello jbuzbee
OpenDCL have installed and loaded the lisp.
It follows, however, the following error message: no function definition: DCL_PROJECT_IMPORT.
What am I doing wrong?
Best regards Martin :-(
-
James,
A couple of things missing ... crapped out before any dialog.
Visibility Commands loaded!
Command:
Command: KBVMANAGER
; error: no function definition: KB:DWGHASXREFS
Command:
Command: KBISOLATE
Select objects: Specify opposite corner: 1 found
Select objects:
; error: no function definition: KB:GETACTIVESPACE
Command:
Command: KBVISOFF
Select objects: Specify opposite corner: 1 found
Select objects:
Command:
Command: KBVISALLON
; error: no function definition: KB:GETACTIVESPACE
Command:
-
Ok, guys - sorry. I have common subs in other files - I'll piece together a working routine today.
jb
Kerry - thanks! That Helps!!
-
You're welcome James.
It threw me for a little while, I thought the functionName prefix was mine :)
it's a good thing I changed mine to my ADN registered prefix a couple of years ago.
-
Kerry,
I know - mine has always been jb: but when we went completely private I changed it kb: (KBStudio - our old business)
The attached should work. Command_kbVisibilityManager.lsp contains everything needed to run the routine. The other two files are used for defining / editing the OpenDCL form.
jb