|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
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 |
#4
|
||||
|
||||
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 |
#5
|
||||
|
||||
Re: Is there a lisp command for highlighting a model??
Hi John,
YES! That's the trick :-) Thanks! Regards, Jaap |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|