Lisp Xref VP Freeze In All Viewports Except Current

Lisp Xref VP Freeze In All Viewports Except Current

Edwin.Saez
Advisor Advisor
984 Views
4 Replies
Message 1 of 5

Lisp Xref VP Freeze In All Viewports Except Current

Edwin.Saez
Advisor
Advisor

Hello everyone,


someone will have a lisp that allows me to select an xref within a viewport and make a "VP FREEZE IN ALL VIEWPORTS EXCEPT CURRENT".

this lisp would be very useful.

 

I hope your help, thank you.

Edwin Saez


LinkedIn / AutoCAD Certified Professional


EESignature


 


Si mi respuesta fue una solución para usted, por favor seleccione "Aceptar Solución", para que también sirva a otro usuarios.

0 Likes
985 Views
4 Replies
Replies (4)
Message 2 of 5

cadffm
Consultant
Consultant

If you want to freeze the insert-Layer of the Xref, than you can use plan VPLAYER-command

(Best practise to insert XREF on his own Insert-Layer, so kann can use VPLayer, freeze, except current vport)

 

If you want to freeze all Xref-Layer (MyXrefName|Layer1-99), that is without charme, and you need a short lisp for the Names

(strcat(cdr(assoc 2 (entget(car(entsel)))))"|*")

 

Sebastian

0 Likes
Message 3 of 5

Edwin.Saez
Advisor
Advisor

@cadffm,

 

there is a way that it is by xref selection and take into account all the layers of that xref ?, because they will not always be the same layer that I want to keep.

Edwin Saez


LinkedIn / AutoCAD Certified Professional


EESignature


 


Si mi respuesta fue una solución para usted, por favor seleccione "Aceptar Solución", para que también sirva a otro usuarios.

0 Likes
Message 4 of 5

Edwin.Saez
Advisor
Advisor

someone can help with this lisp please.. Smiley Sad

Edwin Saez


LinkedIn / AutoCAD Certified Professional


EESignature


 


Si mi respuesta fue una solución para usted, por favor seleccione "Aceptar Solución", para que también sirva a otro usuarios.

0 Likes
Message 5 of 5

cadffm
Consultant
Consultant

Which help you need, ehats yout Problem, where is you Code?

 

Isn´t command VPLAYER a great way for that?

 

If you have the good way, special insertion Layer for seperate XRefs, you can use plaine VPLAYER,

if you want to freeze all Layer in the Xref, you hafe to create the right Namepattern XREFNAME|*

See my simple sample above

 

entsel,car,entget,assoc,cdr,strcat

 

_.VPLAYER
_freeze

xrefname|*
_x

Show us where you have problems.

Sebastian

0 Likes