Community
Can anyone think of any reason why the following code won't work? Just testing as of right now. The current position of the front clipping plane is about -500, and the back clipping plane is about -760.
(setq VPortEnt (ssget))
(if VPortEnt
(progn
(setq VPortEnt (ssname VPortEnt 0))
(setq VPortEnt (entget VPortEnt))
);progn
);if
(setq NewClip -600)
(entmod (subst (cons 43 NewClip)(assoc 43 VPortEnt) VPortEnt))
If I understood correctly,
you're trying to entmod a viewport, and you can't entmod a viewport!
To change the position of a named view clipping plane, you may entmode the named view...
HTH
Henrique