Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing a macro

Status
Not open for further replies.

breus

Mechanical
Jun 20, 2012
1
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...[evil]
 
Replies continue below

Recommended for you

They probably will send you something useful, as I know they have at least one senior guy who has done some interesting work on cables.

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor