Entmod a Viewport

tsigwing

Usenet Archive
Joined
Jun 26, 2003
Messages
76
Reaction score
0
There has got to be a way to do this. Anybody got any ideas?
 
Given the subject matter of your last 3 posts you should search google for similar topics by Bobby Jones. Seems I recall he has already traveled this path, and IIRC, he canned that whole mess and went with (command ".vplayer") Bobby?
 
If you are wanting to thaw layers in a viewport, then I suggest the VPLAYER route or an ARX solution. You can relatively easily freeze layers in a viewport by manipulating the xdata, but I'd probably still suggest VPLAYER or ARX.

If you are wanting to store and retrieve your own xdata then these functions will get you going in the right direction.

http://code.acadx.com/visuallisp/042.htm
http://code.acadx.com/visuallisp/041.htm
 
Except that you can't execute the vplayer command within an autolisp program without using a convoluted mess of (VLA-SENDcommand doc* "vplayer ").

There has got to be a cleaner way of acomplishing this.
 
Except the help files explictly state that you can't entmod a viewport.

How is this "convoluted"?
(command "VPLAYER" "FREEZE" LAYER "" "")

And if you are trying to copy the status from one vp to another, collect the layers into a list and foreach or mapcar through the list.......

Jeff

tsigwing said:
Except that you can't execute the vplayer command within an autolisp
program without using a convoluted mess of (VLA-SENDcommand doc* "vplayer ").
 
I cannot get that to run inside a lisp routine using ACAD2002.
 
(command "VPLAYER" "FREEZE" LAYER "" "")
<Snip>

But doesn't this only work if that layout is active. Therefore you would have to change to each different layouts?

So how to change just the layers for all viewports to defpoints globally?

W. Kirk Crawford
Rochester Hills, Michigan
 

Latest threads

Back
Top