#1
|
|||
|
|||
Show/Hide part with lisp code
Sorry, I can't find information about this item.
Is it possible to show or hide specified part with a lisp code ? I've tried different solution without success (color, transp...) thanks again for your help and hope this request isn't too stupid |
#2
|
||||
|
||||
Re: Show/Hide part with lisp code
What exactly do you mean by "Show/Hide"? Do you just want to remove the part from the Drawlist so it is no longer visible in the viewport?
Usiing the Recorder utility I got the following result to remove/add part "p1" from/to the drawlist. Code:
remove_from_vp_drawlist "vport1" :with-wp :no-hilite :container-propagate-cmd "/p1" complete add_to_vp_drawlist "vport1" :with-wp :no-hilite :container-propagate-cmd "/p1" complete
__________________
John Scheffel |
#3
|
||||
|
||||
Re: Show/Hide part with lisp code
Minor update: Some of the automatically recorded parameters are not strictly required, hence the two commands become a little shorter.
Code:
remove_from_vp_drawlist "vport1" "p1" complete add_to_vp_drawlist "vport1" "p1" complete Code:
(remove_from_vp_drawlist "vport1" "p1") (add_to_vp_drawlist "vport1" "p1")
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
#4
|
||||
|
||||
Re: Show/Hide part with lisp code
If you are in Annotation, you can show or hide all parts by just pressing the F5 key on the keyboard and F5 key again to bring them back.
In the Modeling side, open the Structure Browser and uncheck boxes to hide items. Doing it via LISP would be neat for a specific part if clicking the boxes can't be done during other commands.
__________________
Support Your Local Sheriff - At high noon Jason: "How much does it pay?" Citizen: "Well, none of our other sheriffs ever lived long enough to find out." Co-Create 2007 (15.50G) ANSYS Workbench 14 SolidWorks 2011 UGNX-7.5 / TeamCenter UA 8 PADS 2000 Applicon Bravo Autotrol CADAM Pro/E |
#5
|
||||
|
||||
Re: Show/Hide part with lisp code
Hello,
In Modeling unless it has been changed by customizations written by the users company. The F5 key will also hide the geometry with in the viewport, unlike the check box in the Structure Browser which essentially turns it off and overrides the F5 key. Cheers, Thom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|