Jump to content
Sign in to follow this  
Sagar Desai

retrieve surfaces

Recommended Posts

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)

 

Quote

*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??

Capture.PNG

Share this post


Link to post
Share on other sites

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

 

 

2.PNG

 

 

and I also want that newly created inner most mesh should be organized in a new component "TAP WELD" 

Share this post


Link to post
Share on other sites

Hello

 

so I have made some changes and now I am able to mesh both the parts properly

 

Quote

*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

 

3.PNG

Share this post


Link to post
Share on other sites

so I am able to organize the elements into components name which is given in the script

 

 

Quote

*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

Capture.PNG

Share this post


Link to post
Share on other sites

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""

dont want like this.PNG

3.PNG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...