CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-06-2009, 03:42 AM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Is there a lisp command for highlighting a model??

Hi,

I've been searching the integration kit, but I cannot find a command to highlight a model... does it exist??
I found HIGHLIGHT_ELEMENT, but that doesn't seem to work for highlighting models??!!
Thanks in advance,
Jaap
Reply With Quote
  #2  
Old 10-06-2009, 02:59 PM
John van Doorn's Avatar
John van Doorn John van Doorn is offline
Registered User
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 83
Re: Is there a lisp command for highlighting a model??

If you click on a part in the browser it is highlighted, is that what you try to achieve?
If so then maybe you can just select your part in the lisp code, haven't tried it but it could work.
__________________
High performance CAD workstations
Please visit us at https://www.cadware.nl
Reply With Quote
  #3  
Old 10-06-2009, 10:37 PM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Re: Is there a lisp command for highlighting a model??

Hi John,

what I'd want is that I type in the code number of a part, and that the lisp tool will find the models matching the number and highlight it in the viewport.
I already made a lisp tool that searches for a code number; the result is that the drawlist is cleared, and only the matching models are shown in the viewport. However, in a large assy it can be very convenient to just show the whole assy and highlight the models of the desired code number.
This way, you don't have to look them up in the structure browser and double-click them.

Regards,
Jaap
Reply With Quote
  #4  
Old 10-06-2009, 11:32 PM
John van Doorn's Avatar
John van Doorn John van Doorn is offline
Registered User
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 83
Re: Is there a lisp command for highlighting a model??

Hi Jaap,

Is this what your looking for?

Code:
(in-package :xandorra)
(use-package :oli)

(sd-defdialog 'highlight_curr_part
	:variables '(
	(My-part :value-type :part
	         :modifies nil
			 :after-input (highlight-part)
	)
	)
	:local-functions '(
	(highlight-part ()
		(preselect My-part :interactive)
	)
	)
)
__________________
High performance CAD workstations
Please visit us at https://www.cadware.nl
Reply With Quote
  #5  
Old 10-06-2009, 11:44 PM
jkramer's Avatar
jkramer jkramer is offline
Registered User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 382
Re: Is there a lisp command for highlighting a model??

Hi John,

YES! That's the trick :-)
Thanks!
Regards,
Jaap
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 02:56 AM.



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.