×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

writing a macro

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...evil

RE: writing a macro

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: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources