#1
|
||||
|
||||
Search for Face Parts
Is there a way to search for face parts in the structure browser? This would really help when importing parts.
Thanks Tom
__________________
Tom Kirkman Creo Elements/Direct 20.1 Dell Precision 3581 https://www.o-i.com |
#2
|
||||
|
||||
Re: Search for Face Parts
Quote:
Yes. Create your own column. e.g. call it 'Object type' Your new display function will get a browser node. It has to figure out the obj as selitem and with some checks you can determine the kind of object (e.g. FacePart). Once the column is working, you can set up a browser search/filter triggered by 'Object type' equal 'FacePart'. Have a look to C:\Program Files\PTC\Creo Elements\Direct Modeling 20.6.1.0\personality\sd_customize\UWGM\uwgm_browser_views.lsp and the function display-windchill-model-attribute how to get an obj-sel-item of a browser node. do not use 'sel_item' as a variable name! That is rather bad code style IMHO. and how to use sd-create-column-definition .... here is the raw content of the specific part of your display function: Code:
(defun display-object-type(node name) (let (obj (get-sel-item-from-browser-node node)) (cond ((not (sel-item_p (obj))) "no obj") ;; quick exit ((sd-inq-part-p obj) (cond ((sd-inq-inseparable-child-p obj) "Insep.Child") ((sd-inq-empty-part-p obj) "Empty Part") ((sd-inq-face-part-p obj) "Face Part") ((sd-inq-wire-part-p obj) "Wire Part") ((sd-inq-part-sheet-metal-material obj) "Sheet Metal") ; ... (T "Solid Part") )) ;; end part cond ((sd-inq-assembly-p obj) (cond ((sd-inq-inseparable-child-p obj) "Insep.Child") ((sd-inq-inseparable-master-p obj) "inseparable Assy") ((sd-inq-container-p obj) "Container") ((zerop (length (sd-inq-obj-children obj))) "Empty Assy") ;... (T "Assembly") )) ;; end assembly cond ;... ;... (T "obj type not determined") ;; or just "" empty string ) ; end obj conditions )) ;; end let+defun I only wrote it down, not executed, not tested!
__________________
|
#3
|
||||
|
||||
Re: Search for Face Parts
Or just simple �� ;-)
look here: http://osd.cad.de/lisp_3d.en.htm#30 That add on was written for SolidDesigner Version 14, just the day before yesterday. �� :-D means May 2007 Look for the column "Teileart" !
__________________
Last edited by Wolfgang; 01-29-2024 at 05:17 AM. Reason: unicode emojies .. stlll dont work |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|