CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Modeling

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-09-2024, 02:19 PM
tom kirkman's Avatar
tom kirkman tom kirkman is offline
Registered User
 
Join Date: Oct 2002
Location: Perrysburg, Ohio
Posts: 398
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
Reply With Quote
  #2  
Old 01-29-2024, 05:01 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 756
Lightbulb Re: Search for Face Parts

Quote:
Originally Posted by tom kirkman View Post
Is there a way to search for face parts in the structure browser?

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
Make sure your most common matches do appear early within the conditions. It's question of performance. Make sure not to code complex inquiries used here: It's question of performance!


I only wrote it down, not executed, not tested!
Reply With Quote
  #3  
Old 01-29-2024, 05:15 AM
Wolfgang's Avatar
Wolfgang Wolfgang is offline
Registered User
 
Join Date: Nov 2002
Location: ... near Sindelfingen near Stuttgart, Germany
Posts: 756
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
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:24 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.