2mm washer line generation script

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello all,

 

I am trying to develop a scripct in order to create 2mm washer. However script has a mistake that I coud not find. Can you help me about this topic?

 

 

##########################################

*createmarkpanel lines 1  'select lines to create washer'
set lst '[hm_getmark lines 1]'
foreach lsts $lst {
*trim_by_offset_edges 0 $lsts 2 0 0 0
}

##########################################

 

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited January 2017

    Try:

     

     *createmarkpanel lines 1  'select lines to create washer' set lines [hm_getmark lines 1] foreach line $lines { 	eval *createmark lines 1 $line 	*trim_by_offset_edges 0 1 2 0 0 0 	*clearmark lines 1 }

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2017

    Thank you for your help.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited February 2018

    DO WE HAVE SCRIPT FOR DOUBLE LAYER WASHER ONE SHOULD BE OF 1.5*D AND THE OTHER LAYER MUST BE 5MM+FIRST LAYER

  • tinh
    tinh Altair Community Member
    edited February 2018

    DO WE HAVE SCRIPT FOR DOUBLE LAYER WASHER ONE SHOULD BE OF 1.5*D AND THE OTHER LAYER MUST BE 5MM+FIRST LAYER

     

    Oh, just first generate 5+1.5D washer then generate 1.5D one