Trim and Delete or move part inside other component
Hi
Let's say i have 3 components
Let's Name as 1, 2, and 3.
2 Component is intersecting with other two components.
Now i want trim all these component at intersection.
i can do with *surfmark_trim_by_surfmark
here i want to delete or move the trimmed part or surfaces of 2 component which is inside surf volume of other two components (1 & 3)
Ho can i do this ?
Any idea Guys.
Thanks in Advance.
/profile/3195-tinh/?do=hovercard' data-mentionid='3195' href='<___base_url___>/profile/3195-tinh/' rel=''>@tinh /profile/43398-qnguyen-dai/?do=hovercard' data-mentionid='43398' href='<___base_url___>/profile/43398-qnguyen-dai/' rel=''>@Q.Nguyen-Dai/profile/49243-vipin/?do=hovercard' data-mentionid='49243' href='<___base_url___>/profile/49243-vipin/' rel=''>@vipin
Regards,
PD
Answers
-
My first question: can you do this task in interactive session?
0 -
Yes I can!!
Any idea how can we do this with script??
Once 3 components got selected by user ..script should rest of the things...
0 -
Altair Forum User said:
Yes I can!!
Any idea how can we do this with script??
Once 3 components got selected by user ..script should rest of the things...
Make one time all task you need and found all commands within the file 'command.tcl'
0 -
I/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' /> think he knows file command.tcl
But he didn't know how to detect surfs 'inside' comps 1 & 3
Check every surf of comp 2, take a point on each surf and from it get closest point on comp 1&3
Check normal vector at the closest point if it is reversed then surf is 'inside'
hm_getsurfacenormalatcoodinate is helpful
0 -
Altair Forum User said:
I/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' /> think he knows file command.tcl
But he didn't know how to detect surfs 'inside' comps 1 & 3
Check every surf of comp 2, take a point on each surf and from it get closest point on comp 1&3
Check normal vector at the closest point if it is reversed then surf is 'inside'
hm_getsurfacenormalatcoodinate is helpful
i will try this...
Hope That should work...
Actual scenario is ...I hv to create solid weld of comp 2 that will be in contact with 1 and 3 comps.
with above script if worked
1. I will mesh that surfs of comp 2 which are outside
2. I will have to Mesh the trimmed surfs of comp 1 and 3 .... Organize this mesh to comp 2
3. I got closed volume mesh....Make it solid (Tetra)
4. Becoz of trimming i got matched Mesh Surf for 2 & 3 or 2 & 1...So that i can create contact too..
This is how whole script going to be...
Regards,
PD
0 -
Altair Forum User said:
Make one time all task you need and found all commands within the file 'command.tcl'
This is unexpected Answer Bro...But Still Thanks for Reply
0 -
Altair Forum User said:
This is unexpected Answer Bro...But Still Thanks for Reply
What? Something is wrong with 'command.tcl'?
0 -
I dont know how exactly the components look like, but another approach would be to work with 'solids' instead of surfaces.
Try if the boolean operations in solid edit works for you.
0