×
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

Exporting individual line lengths to spreadsheet

Exporting individual line lengths to spreadsheet

Exporting individual line lengths to spreadsheet

(OP)
I'm helping to develop a lap simulator in MATLAB. A racing course is divided into straights and corners having various lengths and arc lengths. The simulator does math to approximate lap times. I have sketched the course in SW using lines and tangent arcs to create a planar, closed profile, non-intersecting sketch.

I now need to take the length of each line and arc, and individually export them into a spreadsheet. Ex: the course starts with a 30 ft. straight, followed by a corner with arc length of 15 ft. etc. I need my spreadsheet to say 30 in the first cell, then 15 in the second cell, and so on. I know I can measure each entity, and input the data manually, but this is tedious. Is there a way to do it faster?

Maybe design tables or macros would help, but I'm not sure how to utilize either for the situation. Help?

RE: Exporting individual line lengths to spreadsheet

If you are doing multiple iterations of the track design I would use the spreadsheet to drive the design, not the other way around.  Check into design tables.

Dan

www.eltronresearch.com
Dan's Blog

RE: Exporting individual line lengths to spreadsheet

This could be done in the API.

It is very easy to add dims to all the lines and arcs (except maybe splines) and use equations to join them into one overall length.

It seems to me that while SW may layout the track OK with simple circular arcs, an actual race line would have to be calculated as racing lines are generally no pure analytical curves.

TOP
CSWP, BSSE
www.engtran.com  www.niswug.org
www.linkedin.com/in/engineeringtransport
Phenom IIx6 1100T = 8GB = FX1400 = XP64SP2 = SW2009SP3
"Node news is good news."

RE: Exporting individual line lengths to spreadsheet

Kellnerp
I had not thought of that and I will check the orders.

Thanks,
PD

www.phoenixdyno.com

Home of the world's most accurate and repeatable dynamometers, dynamometer accessories, and data acquisition & control software.

RE: Exporting individual line lengths to spreadsheet

(OP)
I ended up using design tables and using arc length dimensions.

To kellnerp: an ideal racing line is a constant arc, although this is very hard to actually do, which is why simulations can only be so accurate. Thanks for the help though.

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