Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Exporting point information

proed

Moderator
Hi.

We have a complex assembly with hundreds of points in the components (placed along helical paths, etc...)



The thing is - we want to export x, y & z co-ordinates for all these points - how can we do this quickly?

- and then update the information if some of them change position?



Thanks in advance
 
Here's a method I've had success with:



1. Export an IGES file of your assembly (single file) (and check the points box!)

2. Open the IGES file in a text editor

3. look for lines starting with 116

4. Copy these lines into Excel and clean them up



Here is a sample line:

116,1D1,2D2,3D3,0; 249P 125



in the above example:

166 is the IGES entity type for a point

X = 1E1 =10

Y = 2E2 = 200

Z = 3E3 = 3000



I think I have a batch file around here somewhere for parsing out points from an iges file... If I can find it, I'll upload it here.



-Brian Adkins
 
Couldn't find that file, but I wrote a similar one:

(We need this functionality here every so often)



This batch file will read in an iges file and then spit out the datum point x,y, & z values in two different formats... CSV and IBL (which can be read directly back into Pro/E)



-Brian Adkins
 
Oooops!



Don't use the batch file above.. it has a small error in it that can yield extra points in the output files...



Try this one instead.



-Brian Adkins
 
Thanks for the help again, Brian...



We were able to get the point data manually - will try your batch file in future,



Regards

Ed
 
Brian_Adkins said:
Looks like attached file was
somehow lost... here it is again:



2005-02-23_172830_iges_points.zip

Just found this - was looking for something similar. I
took the liberty of riffing on your script. I added the
capability of exporting Pro/E .pts files. The trick is,
I wanted to retain the *names* of the point features
(which are in fact preserved in the IGES file). Improved
script uploaded!

2012-02-02_192854_extract_iges_points.zip
Edited by: designviz
 

Sponsor

Articles From 3DCAD World

Back
Top