CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-17-2009, 06:22 AM
Yoyovento Yoyovento is offline
Registered User
 
Join Date: Apr 2009
Posts: 31
Red face 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
Reply With Quote
  #2  
Old 06-17-2009, 09:37 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
You can activate the Recorder by entering (load "recorder") in the User Input Line. This will add a button to the Toolbox to activate it.
__________________
John Scheffel
Reply With Quote
  #3  
Old 06-17-2009, 09:28 PM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
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
Even shorter Lisp s-expression notation:

Code:
(remove_from_vp_drawlist "vport1" "p1")

(add_to_vp_drawlist "vport1" "p1")
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/
Reply With Quote
  #4  
Old 06-18-2009, 04:55 AM
BMaverick's Avatar
BMaverick BMaverick is offline
Registered User
 
Join Date: Mar 2009
Location: Tennessee, U.S.A.
Posts: 267
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
Reply With Quote
  #5  
Old 06-29-2009, 09:15 PM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
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
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:16 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
You Rated this Thread: