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
  • Why, why why?
    You make life very complicated for you. 10000 lines of code to build a model does not seem to be the right way of doing this. Normally you would use ADAMS/View to build your model, then save it as a binary file. Then you can use a cmd-file to change parameters, for example for an optimization by an external code such as HEEDS. But writing Python code to generate a cmd file that then builds the model? Seems like going over the creek to get water.
     
    PS. Latest versions of ADAMS has (limited) Python capabilities for building the model without having to use cmd files.
     
    PPS. If you want flexibility, you can create that inside ADAMS/View if you have a solid for the part you need to make flexible.
Reply
  • Why, why why?
    You make life very complicated for you. 10000 lines of code to build a model does not seem to be the right way of doing this. Normally you would use ADAMS/View to build your model, then save it as a binary file. Then you can use a cmd-file to change parameters, for example for an optimization by an external code such as HEEDS. But writing Python code to generate a cmd file that then builds the model? Seems like going over the creek to get water.
     
    PS. Latest versions of ADAMS has (limited) Python capabilities for building the model without having to use cmd files.
     
    PPS. If you want flexibility, you can create that inside ADAMS/View if you have a solid for the part you need to make flexible.
Children
No Data