Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change Position of Front Clipping Plane

1 REPLY 1
Reply
Message 1 of 2
kpennell
250 Views, 1 Reply

Change Position of Front Clipping Plane

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))

1 REPLY 1
Message 2 of 2
hmsilva
in reply to: kpennell

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

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost