Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Point Set coordinates

Status
Not open for further replies.

rvprrone76

Student
Feb 1, 2016
5
Hello fellow engineers and NX users,

Is there anyone who can help me with my *.vb code. My experience is far better in MATLAB, but I am attempting to learn VB. I have a curve (spline) and I have placed 2000 points along the curve using the point set function. I am wanting to get the xyz coordinates for each point in the point set (2000 total)and write it to a file. So far I have had success writing to a file, however, I am not collecting the data points from the point set. Instead I get a point output of 6000 pts from who knows were, so it is definitely getting the coordinates from other points on the part and not the intended point set data only. Any help would be awesome and greatly aprreciated. I have uploaded a copy of the script in txt format for examining.

Thanks in advanced! I really appreciate everyone's willingness to be so helpful in these forums.

Cheers!

RP

 
 https://files.engineering.com/getfile.aspx?folder=d088fe53-c846-48e0-b85a-b0a7beb110d5&file=Point_Set_.txt
Replies continue below

Recommended for you

Here is a thread from the Siemens' community that shows how to get the points from a point set. You might need to create an account to view the forum, but I don't think you do.

The point collection that you are referencing in your current code contains all the points in the current work part; this is why you are getting more points than expected. If you have a specific point set feature that you are interested in, you'll need a reference to that feature; then you can use the feature's .GetEntities method to get the points created by the feature.

www.nxjournaling.com
 
Thanks cowski, I appreciate it. I do have an account with the Siemens community and will check out your link and get back to you if I have any luck! Thanks again.

Cheer!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor