Jump to content
NFMOREIRA

Script to create connectors automatically

Recommended Posts

Hello,

I am trying to automate a task and need some guidance.
In a model with various components, I have the guide points of the fasteners. Some fasteners connect more than two components.

I am looking to create the connectors automatically by selecting the points and export the connectors' information (cfast id and coordinates, attached elements).

The final goal is to create automatically more than 8000 fasteners and extract their information, in order to use them for fastener analysis.

Thanks for your help

N.

Share this post


Link to post
Share on other sites

Hello

Yes I did.
For a small number of fasteners (less than 100) it is doable to use that command.
If the number of fasteners increases, checking this process is more prone to error.

 

I have the following script.


CREATE_CFAST_BY_LINE_V01.tcl

By intersecting fastener vector lines with the parts' surfaces, the nodes and fasteners are created.

The problem is that it needs the surfaces to be in one component, the mesh in another and the lines in another.

Again, for a small model, it is doable, but scalling up, with 30/40 components, it is not.


What is your opinion? How could I improve this?

Thanks for your help.

 

Regards,

 

N.

Share this post


Link to post
Share on other sites

*setedgedensitylinkwithaspectratio -1
*elementorder 1
*startnotehistorystate {selectsurface}
*createmarkpanel surface 1 2
*interactiveremeshsurf 1 4 2 2 2 1 1
*set_meshfaceparams 0 2 2 0 0 1 0.5 1 1
*set_meshedgeparams 0 8 1 0 0 0 5 0 0
*set_meshedgeparams 1 8 1 0 0 0 5 0 0
*set_meshedgeparams 3 8 1 0 0 0 5 0 0
*automesh 0 2 2
*set_meshfaceparams 0 2 2 0 0 1 0.5 1 1
*set_meshedgeparams 0 9 1 0 0 0 5 0 0
*automesh 0 2 2
*set_meshfaceparams 0 2 2 0 0 1 0.5 1 1
*set_meshedgeparams 0 10 1 0 0 0 5 0 0
*automesh 0 2 2
*set_meshfaceparams 0 2 2 0 0 1 0.5 1 1
*set_meshedgeparams 0 9 1 0 0 0 5 0 0
*automesh 0 2 2
*storemeshtodatabase 1
*ameshclearsurface
*endnotehistorystate {Automesh surfaces}
*setdisplayattributes 2 0

 

 

hello tinh the above one is from command file which is element creation from fine 2mm to 4mm element on surface.but my question is I want to use this automation to all other surface which are bigger in size and I want to edit mesh based on the height. will you please guide me how can it will be.this code is for 20mm height square surface.

Share this post


Link to post
Share on other sites

On automesh panel, If you just click on "mesh" and let density as its default, switch the mode from "interactive" to "automatic", the commands will be quite simple

Please try it and tell us results

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.


×
×
  • Create New...