writing a macro
writing a macro
(OP)
hello everybody. this is my first post so i also introduce myself. i'm form italy and i'm using Adams from two months, so quiet a short time. In the company i'm working for i need to build in Adams a long flexible steel wire (i'm talking of meters of wire), so for afirst analysis we want to build this wire using short cilinders and connecting their CM with a massless beam.
So my question is: i am trying to write a macro in Adams, but i've never used C++ and obviouslu i never wrote a macro in adams before. There is someone that can give me some good tip in doing this?
I already contacted MSC support yesterday, they told me that today they would have send me something useful, but nothing...
So my question is: i am trying to write a macro in Adams, but i've never used C++ and obviouslu i never wrote a macro in adams before. There is someone that can give me some good tip in doing this?
I already contacted MSC support yesterday, they told me that today they would have send me something useful, but nothing...





RE: writing a macro
The way I'd do it, which certainly isn't the recommended way, would be to build a short length, say 3 segments, of cable in ADAMS/VIEW using the GUI.
Then export the model as an adm file.
Open that in a text editor and you can see how it is building the cable up, in what I call Solver language.
Then write a program in any old language to generate a much longer cable using the adm file as a guide, and then save that as an adm file, and import it into View.
Incidentally another approach would be to use beam elements joined by Hookes Joints. This suppresses the torsional d.o.f in the joint which is probably a good idea.
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?