Coordinate List?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-19
01:53 AM
- last edited on
2023-05-23
05:28 PM
by
Rubia Torres
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-19 10:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-19 11:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-20 02:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-20 02:56 AM
Flamer wrote:It's wherever you saved it.
OK, I saved it as a GDL, how do I get to the GDL script that contains the coordinates? Bear with me guys!
I noticed an inconsistent glitch where sometimes I would have to close the 3D window and then open it again before the Special Menu's GDL save would create the file.
HTH,
Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-20 03:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-21 10:53 PM
Flamer wrote:Mark
Is there any way to generate a txt. file consisting of a list of coordinates of any element?
Add this code to any object, ie make a simple cross-hair symbol
!Put in property script
component "X",SYMB_POS_X,"m"
component "Y",SYMB_POS_Y,"m"
component "Z",SYMB_POS_Z,"m"
You will have to set up a custom component listing ( a basic text list type). I have done a quick test of the settings:
Under the parameters tab:
check the global element parameters "Internal ID"
Under the listing tab:
list each element individually
sort by internal ID first
then component name
then the component quantity
This will produce a list of similar to:
Internal ID | Component Name | Component Quantity |
-------------|----------------|--------------------|
3 | X | 299,948.706 |
3 | Y | 700,006.840 |
3 | Z | 0.000 |
4 | X | 299,951.322 |
4 | Y | 700,016.286 |
4 | Z | 0.000 |
5 | X | 299,962.076 |
5 | Y | 700,007.276 |
5 | Z | 0.000 |
6 | X | 299,964.691 |
6 | Y | 700,018.901 |
6 | Z | 0.000 |
I hope this is of some help, regards

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-22 12:36 AM
Bill wrote:Duh.
!Put in property script
component "X",SYMB_POS_X,"m"
component "Y",SYMB_POS_Y,"m"
component "Z",SYMB_POS_Z,"m"

Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-22 12:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-22 01:44 AM
I can't figure out how to get the coordinates in the same row and only show the ID once on each line.
Is there any way to generate the coordinates based on the user origin? If it is not possible to do this directly, is there a way to return the coordinate of the user origin alone within the script and then use that value to calculate an offset for each coordinate. If this isn't possible than maybe I (we) can use another object' coordinates as the offset. At this point I would be happy to just get the output in the proper format. Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2004-03-22 02:25 AM
Flamer wrote:From the department of sneaky tricks...
I can't figure out how to get the coordinates in the same row and only show the ID once on each line.
component "XYZ," + str("%#10.4df",SYMB_POS_X) + "," + str("%#10.4df",SYMB_POS_Y) + "," + str("%#10.4df",SYMB_POS_Z), 1, "m"
Gives you:
Internal ID | Component Name | Component Quantity
--------------|-----------------------------------------|--------------------
30,295 | XYZ, 72.6036', 54.3047', 384.7113' |
30,296 | XYZ, 72.7396', 49.2716', 384.7113' |
30,297 | XYZ, 70.2457', 46.7324', 384.7113' |
You may need to force your equipment to read every comma as a field separator or better clean it up in excel. It can also be done with gdl via DATA I/O functions but they are much tougher to learn & get working!
Is there any way to generate the coordinates based on the user origin? If it is not possible to do this directly, is there a way to return the coordinate of the user origin alone within the script and then use that value to calculate an offset for each coordinate.The simplest way would be to add XYZ offset values as parameters to your library part and subtract them from the SYMB_POS values (assuming all are positive!)
regards