Challenge

Week - 10 - Creating the midline and spot weld

AIM: To create the macro to generate the midline and spot weld.

PROCEDURE:

CODE: PART A:

*createlistbypathpanel lines 1 " Select the Source line"
set source [hm_getlist lines 1]
*createlistbypathpanel lines 2 "Select the target line"
set source[hm_getlist lines 2]
foreach i $source j $target {
*linescreatemidline 1 1 2 2
*linecombine $i $j 1
}

CODE: PART B:

*clearmarkall 1
*createlistbypathpanel nodes 1 "Select the source nodes by path"
set source [hm_getlist nodes 1]
*createlistbypathpanel nodes 2 "Select the target nodes by path"
set target [hm_getlist nodes 2]
foreach i $source j $target {
*elementtype 5 1
*rigid $i $j 123456
}

RESULTS:

1. Midline

2.Weld




Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.