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!!
There have been some reasons to not use the dialog box in the beginning. But yes, you are right, I now do get that it would have been smarter. For now I need some results and therefore I'll keep working with the python code.
(I thought HEEDS is building the model/ cmd-file in each optimization step...)
I am aware of the problem, that adjusting 10000 lines of code is not the solution, that's why I was hoping someone had an idea of how to use "make flexible" automatically at the end of building the model. That is beacause the people who'll use this in the end don't know much about adams and it would take to much time to make them completly familiar with everything. If I won't find another way I'll have to do it that way, but I'd like to avoid that.
So I can't actually post lines of code, as I first have to have a proper idea. I'll keep yours in mind, of course.
There have been some reasons to not use the dialog box in the beginning. But yes, you are right, I now do get that it would have been smarter. For now I need some results and therefore I'll keep working with the python code.
(I thought HEEDS is building the model/ cmd-file in each optimization step...)
I am aware of the problem, that adjusting 10000 lines of code is not the solution, that's why I was hoping someone had an idea of how to use "make flexible" automatically at the end of building the model. That is beacause the people who'll use this in the end don't know much about adams and it would take to much time to make them completly familiar with everything. If I won't find another way I'll have to do it that way, but I'd like to avoid that.
So I can't actually post lines of code, as I first have to have a proper idea. I'll keep yours in mind, of course.