×
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

XYDataFromPath

XYDataFromPath

XYDataFromPath

(OP)
Hey guys,

I'm using the XYDAtaFromPath quite often to extract data from my output database. But the amount of points in my path isn't always reflected in the length of my XYData object. For example, when I have a path of 1000 points, I sometimes get a XYData object of 1001 or less than 1000 points. Do you have any idea why this can be occuring?

I use 1000 data points in 1 path, because it's a lot faster than 500 times a path of 2 points.

Best regards,
dey

RE: XYDataFromPath

There is problem if the nodes are very dense or your path is not that straight. 1001 or <1000 could be resulted from some mistakenly selected nodes. So you should select them carefully or you find another logical ways to isolate them out, like making them to be a boundary of a section.

RE: XYDataFromPath

(OP)
Dear JayTung,

thank you for the quick answer. My nodes are indeed very dense and my points are taken randomly on a circle. Therefore, your explanation seems highly reasonable. I will implement two small changes:
-sort the locations of my path (to get a better path)
-sort the XYDAta object afterwards and throw away identical lines


Do you happen to have any other ways of speeding up the XYDataFromPath method? (Apart from what I described in my first post)

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