Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

visibility of objects

Status
Not open for further replies.

shadow

Computer
Mar 1, 2001
321
0
0
US
i read some where that there is a setting for objects in which you can turn on and off via lsp or vba any one have any ideas thanks

if everyone helps everybody the world will be a better place
 
Replies continue below

Recommended for you

Yes you can set an entity's group code 60 to 1 to make it invisible. 0 or absent and it's visible. Since you're an old-time lisper (at this forum) you can probably take it from there.
 
This sets the property to invisible. Remember though, to make it visible, you have to do that back through code..

(defun MAKE_INVISIBLE()
(vl-load-com)
(setq ENT (car (entsel)))
(setq VLENT (vlax-ename->vla-object ENT))
(vla-put-visible VLENT :vlax-false)
)

"Everybody is ignorant, only on different subjects." — Will Rogers
 
ok so i found a lisp already done that does this intead of having to build it my self :) but the thing is how can i make an object invisible but prints ???any ideas thaks

if everyone helps everybody the world will be a better place
 
if that is what you are after, why didn't you ask that question in the first place ? The question you originally asked is completely different
 
yea but i also like to know how to get to the answer as i ask questions i some time find the answer by accedent plus i hope that others learn from what i show as well :)


if everyone helps everybody the world will be a better place
 
Status
Not open for further replies.
Back
Top