|   |   | 
  | Gut zu wissen: Hilfreiche Tipps und Tricks aus der Praxis prägnant, und auf den Punkt gebracht für Creo | 
|   |   | 
  | BOM Assistant für Stücklistenerstellung , eine App
  | 
| 
Autor
 | 
Thema:  Using TRIM / TRIM_DIA (1184 /  mal gelesen)
 | 
 
                        CSPalmer84 Mitglied Illustrator, Programmer
  
  
        Beiträge: 32 Registriert: 10.12.2014 Dell T1700  3.4 Ghz 16 Gb 
                         | 
                        
                         
                                                 
                        erstellt am: 04. Nov. 2016 16:40       <-- editieren / zitieren -->           Unities abgeben:           
                        
  Has anyone used the (modeling 2d) trim or trim_dia commands? The only help I can get that kind of explain it is the sha_punch_functions.lisp in the SheetAdvisor folder. and it only tells me that I need to use points of time type. ------------------ ----------- The sword alone does not give you the courage and strength you will need on your journey Creo Elements / Direct Modeling version 18.1 Creo Elements / Direct Drafting Version 18.1 [Diese Nachricht wurde von CSPalmer84 am 04. Nov. 2016 editiert.] Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                        
                        AlexG Mitglied
 
   
  
        Beiträge: 133 Registriert: 05.04.2013 Win7 64-bit; Intel Core  i7, 8CPUs @ 2,2GHz; 16GB  RAM; 120GB SSD; Nvidia  Quadro 1000 M;  SolidDesigner 18.0 
                         | 
                        
                         
                                                 
                        erstellt am: 04. Nov. 2016 17:22       <-- editieren / zitieren -->           Unities abgeben:            Nur für CSPalmer84  
                        
  Hello CSPalmer84, for further information about the commands you mentioned, you need to execute the following function. Code: (oli::sd-online-reference)
  Afterwards you'll find a new entry in your tool-box named 'Online Reference'. Using this online reference you can obtain the informations you are looking for. Hope this help. Bst rgrds,    Alex ------------------ Computer sind unbrauchbar. Sie können nur Fragen beantworten. Pablo Picasso, Maler [Diese Nachricht wurde von AlexG am 04. Nov. 2016 editiert.] Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                        
                        CSPalmer84 Mitglied Illustrator, Programmer
  
  
        Beiträge: 32 Registriert: 10.12.2014 Dell T1700  3.4 Ghz 16 Gb 
                         | 
                        
                         
                                                 
                        erstellt am: 04. Nov. 2016 20:21       <-- editieren / zitieren -->           Unities abgeben:           
                        
  Yes, that's how I found trim_dia. but I was seeing if anyone else has used it or know what it's asking for     I don't understand it's explination ------------------ ----------- The sword alone does not give you the courage and strength you will need on your journey Creo Elements / Direct Modeling version 18.1 Creo Elements / Direct Drafting Version 18.1 Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                        
                        AlexG Mitglied
 
   
  
        Beiträge: 133 Registriert: 05.04.2013 Win7 64-bit; Intel Core  i7, 8CPUs @ 2,2GHz; 16GB  RAM; 120GB SSD; Nvidia  Quadro 1000 M;  SolidDesigner 18.0 
                         | 
                        
                         
                                                 
                        erstellt am: 04. Nov. 2016 21:49       <-- editieren / zitieren -->           Unities abgeben:            Nur für CSPalmer84  
                        
  First at all i did like to excuse this misunderstanding. I thought that you are looking for the documention of this commands.  A closer look at the trim command and a first test showed me that it is not that easy. But finally i found a way - see attachment. The trim command expects viewport raw pick informations as elements instead of selected items.     Bst rgrds,  Alex ------------------ Computer sind unbrauchbar. Sie können nur Fragen beantworten. Pablo Picasso, Maler Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                        
                        CSPalmer84 Mitglied Illustrator, Programmer
  
  
        Beiträge: 32 Registriert: 10.12.2014 Dell T1700  3.4 Ghz 16 Gb 
                         | 
                        
                         
                                                 
                        erstellt am: 04. Nov. 2016 21:55       <-- editieren / zitieren -->           Unities abgeben:           
                        
  I saw this too late and i'm about to leave the office. This isn't going to help me too much as I'm using get_selection and I don't know how to get the :raw-vport-pick through that. :-/ but thank you for your assistance. Have a good weekend    ------------------ ----------- The sword alone does not give you the courage and strength you will need on your journey Creo Elements / Direct Modeling version 18.1 Creo Elements / Direct Drafting Version 18.1 Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                        
                        CSPalmer84 Mitglied Illustrator, Programmer
  
  
        Beiträge: 32 Registriert: 10.12.2014 Dell T1700  3.4 Ghz 16 Gb 
                         | 
                        
                         
                                                 
                        erstellt am: 14. Nov. 2016 17:18       <-- editieren / zitieren -->           Unities abgeben:           
                        
  I have found an alternative answer for this that will allow you to do this via a local-function or defun option. If you want to do it by elements, you will need to get the both element's end points and construct a GPNTWC 3d-point where you will get the :z position from the workplane and then creating the GPNTWC variable as following (or at least this worked for me) (sd-read-from-string (format nil "~A"      (format nil "(GPNTWC ~A ~A ~A ~S)"         (* 25.4 (gpnt3d_x Elem1_MidPnt))         (* 25.4 (gpnt3d_y Elem1_MidPnt))         (* 25.4 (gpnt3d_z WP_Center))         "vport1")   ))  **This next part may translate weird for some if you're using chome** What I found to be easier though was to over draw everything past the each other elements, using a get_selection to gather them all into a variable, and then using (trim :contour All_Elements) and that created the profile that i wanted.
  ------------------ ----------- The sword alone does not give you the courage and strength you will need on your journey
 Creo Elements / Direct Modeling version 18.1 Creo Elements / Direct Drafting Version 18.1 [Diese Nachricht wurde von CSPalmer84 am 14. Nov. 2016 editiert.] [Diese Nachricht wurde von CSPalmer84 am 14. Nov. 2016 editiert.] [Diese Nachricht wurde von CSPalmer84 am 14. Nov. 2016 editiert.] Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                        
                        AlexG Mitglied
 
   
  
        Beiträge: 133 Registriert: 05.04.2013 Win7 64-bit; Intel Core  i7, 8CPUs @ 2,2GHz; 16GB  RAM; 120GB SSD; Nvidia  Quadro 1000 M;  SolidDesigner 18.0 
                         | 
                        
                         
                                                 
                        erstellt am: 14. Nov. 2016 17:51       <-- editieren / zitieren -->           Unities abgeben:            Nur für CSPalmer84  
                        
  Thank you for sharing your solution. BTW  looks like an really cool and intresting project you are working on - weld seam creation in 3d? Awesome! Best regards,    Alex ------------------ Computer sind unbrauchbar. Sie können nur Fragen beantworten. Pablo Picasso, Maler Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  | 
                       
 
                        CSPalmer84 Mitglied Illustrator, Programmer
  
  
        Beiträge: 32 Registriert: 10.12.2014 Dell T1700  3.4 Ghz 16 Gb 
                         | 
                        
                         
                                                 
                        erstellt am: 17. Nov. 2016 22:46       <-- editieren / zitieren -->           Unities abgeben:           
                        
  Yes, interesting and mentally taxing. The finalized code can produce welds on one or both sides of the cylinder. Though, now they want one that wraps all the way around it    . Oh well, just another project to do ------------------ ----------- The sword alone does not give you the courage and strength you will need on your journey Creo Elements / Direct Modeling version 18.1 Creo Elements / Direct Drafting Version 18.1 Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP  |