hexagon logo

How to create a parametric flexible board in a parametric Kickboard assembly

Hi everyone!
I programmed a python code which ask for a range of parameters to create a cmd file that "produces" somekind of a skateboard with a handle. I want the board to be flexible so I was hoping to "just add" "part create flexible_body..." Problem here is that I can't write the necessary *.mnf-file. So I tried recording a macro and replacing parts with variables as I did before to write the other parts of the model.
But when I try to replay that recorded macro it won't set the material to wood instead of steel and it won't set the element type to shell instead of solid. Eventhough I did theses changes while recording the macro.
 
I don't have enough insight into the commands within the macro file, so I am not able to "just sort it out" and find the proper lines within these 10000 lines of code.
 
I'd be very thankful if anyone of you has an idea or even solution to my problem!
 
Thanks a lot and let me know if you need more information!!
asaad
Parents
  • Thank you for your reply JSlatten!!
     
    The Python Code asks the User for several different parameters. Then these parameters are written into the cmd File. So I don't need to pay for extra software...like HEEDS.
     
    As my python code generates the cmd file I don't need adams to support python.
     
    Concerning the flexible bodies, I know that I can do the "make flexible" procedure manually after having generated the cmd file. But I need this to happen automatically.
     
    For example:
    "last line of cmd file": "make flexible...parameters: shell elements, material, shel thickness...."
     
    or
    "last line of cmd file": "call pre-written macro with a bunch of variables, like shell elements and shell thickness"
Reply
  • Thank you for your reply JSlatten!!
     
    The Python Code asks the User for several different parameters. Then these parameters are written into the cmd File. So I don't need to pay for extra software...like HEEDS.
     
    As my python code generates the cmd file I don't need adams to support python.
     
    Concerning the flexible bodies, I know that I can do the "make flexible" procedure manually after having generated the cmd file. But I need this to happen automatically.
     
    For example:
    "last line of cmd file": "make flexible...parameters: shell elements, material, shel thickness...."
     
    or
    "last line of cmd file": "call pre-written macro with a bunch of variables, like shell elements and shell thickness"
Children
No Data