retrieve surfaces
Hello
so I am creating a program in which I trim a surface with lines
and in later part I retrieve the trimed surfaces automatically (using *createmark surfaces 1 -1 -2)
*createmarkpanel surfaces 1 'select surfaces'
*createmarkpanel lines 1 'select lines'
*createvector 1 0 0 1
if { [ catch {*surfacemarksplitwithlines 1 1 1 9 0 } ] } {
# Handle error
}*createmark surfaces 1 -1 -2
*interactiveremeshsurf 1 4 1 1 2 1 1
*set_meshfaceparams 0 5 1 0 0 1 0.5 1 1
*automesh 0 5 1*set_meshfaceparams 0 5 1 0 0 1 0.5 1 1
*set_meshedgeparams 1 19 1 0 0 0 4 0 0
*automesh 0 5 1*storemeshtodatabase 1
*ameshclearsurface
have alook at image attached
so i want meshing inside the inner circle and in between the two circles
and I also would like to know how *createmark surfaces 1 -1 -2 works??
Answers
-
I am able to wish only part in between two circles with above program
so how can I assign the inner most surface directly I tried all -1,-2,-3 its not working
<?xml version="1.0" encoding="UTF-8"?>
and I also want that newly created inner most mesh should be organized in a new component 'TAP WELD'
0 -
Hello
so I have made some changes and now I am able to mesh both the parts properly
*createmarkpanel surfaces 1 'select surfaces'
*createmarkpanel lines 1 'select lines'
*createvector 1 0 0 1
if { [ catch {*surfacemarksplitwithlines 1 1 1 9 0 } ] } {
# Handle error
}*createmark surfaces 1 4
*interactiveremeshsurf 1 5 2 2 2 1 1
*set_meshfaceparams 0 6 2 0 0 1 0.5 1 1
*automesh 0 6 2
*storemeshtodatabase 1
*ameshclearsurface
*createmark surfaces 1 -2
*interactiveremeshsurf 1 4 1 1 2 1 1
*set_meshfaceparams 0 5 1 0 0 1 0.5 1 1
*automesh 0 5 1*set_meshfaceparams 0 5 1 0 0 1 0.5 1 1
*set_meshedgeparams 1 19 1 0 0 0 4 0 0
*automesh 0 5 1*storemeshtodatabase 1
*ameshclearsurface
still working on organizing the element to a perticular component
let me know if anything is wrong in above programs
Thank you
0 -
so I am able to organize the elements into components name which is given in the script
*createmarkpanel surfaces 1 'select surfaces'
*createmarkpanel lines 1 'select lines'
*createvector 1 0 0 1
if { [ catch {*surfacemarksplitwithlines 1 1 1 9 0 } ] } {
# Handle error
}*createmark surfaces 1 4
*interactiveremeshsurf 1 5 2 2 2 1 1
*set_meshfaceparams 0 6 2 0 0 1 0.5 1 1
*automesh 0 6 2
*storemeshtodatabase component1
*ameshclearsurface
*createmark surfaces 1 -2
*interactiveremeshsurf 1 4 1 1 2 1 1
*set_meshfaceparams 0 5 1 0 0 1 0.5 1 1
*automesh 0 5 1*set_meshfaceparams 0 5 1 0 0 1 0.5 1 1
*set_meshedgeparams 1 19 1 0 0 0 4 0 0
*automesh 0 5 1*storemeshtodatabase 1
*ameshclearsurface
now I want to create those lines created around the hole (washer automatically) probably twice the radious of the hole
0 -
hello
there is a problem in my file I am not able to understand please see if you can help
I have a surface having hole and washer (grey) and another overlapping surface on it (L section blue) no hole and all
so I have written program which will trim the l section blue surface with the hole and washer line on the gray surface
and then mesh the inner most and in between part with given parameter
but its not meshing how I want (or by defined parameter)
and also its meshing all the outer part which I dont want
''3.png'' is how I want but I am gettinh as shown in ''dont want like this''
0 -
where is 3.png?
maybe just wrong surf id
when you trim a surf into several, their ids are mess up. try regconizing them by area or edges
0 -
So how can I do that I want to do it without user interface
When I select -1 it actually selecting two serfaces
0 -
hello tinh
above program is right my only mistake was I was trying it on already meshed part so not able to get desired result
Thank you
0