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?
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
Dan
www.eltronresearch.com
Dan's Blog
RE: Exporting individual line lengths to spreadsheet
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
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
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.