Coordinate points data in drafting from specified WCS
Coordinate points data in drafting from specified WCS
(OP)
Need Coordinate points data from a specified WCS (i.e. not from Absolute Coordinate system) in drafting as table if possible Parametric values of a pointset created in model
Thanks
Thanks





RE: Coordinate points data in drafting from specified WCS
As for getting the point coordinate data into a spreadsheet, there have been several programs/journals posted here over the years that can help you with that task (I've even got a couple of GRIP programs that help do this if you can execute GRIP on your system). Note that this will result in a non-associative relationship between the points and the values in the table. If you wish associative results, while that's possible, it will require a bit more work but it could be done, depending of course on the number of points involved. If it's only a few, no more than 10 or 20, it wouldn't take all that long to set-up, maybe an hours worth of work, which if associativity is not important and you have many more points than say 10 or 20, then the separate program to extract the data via a spreadsheet would be the more productive solution and it could be done in a matter of minutes.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
Sorry if that confused anyone but I thought I should correct this omission before it did.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
Yes, I have seen couple of GRIP programs/Journals, but all of them measuring the coordinate points from Absolute Origin.
I want to select from where I want to measure the coordinates.
I am having about 150 points, and ready to spend 2-3 hrs if its possible to get parametric values
RE: Coordinate points data in drafting from specified WCS
Attached is a GRIP program that will write the X,Y,Z coordinates of up to 1,000 points in a comma-delimited text file which will make it easy to load them into a spreadsheet. Read the header of the .grs file for instructions on how to run the program.
After you download the attached file, edit the file extension from .zipper to .zip before attempting to extract the program files.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
In the program the coordinate values are given from Absolute, but I want to make (0,0,0) at some other point or WCS.
From that point or WCS I need coordinates.
RE: Coordinate points data in drafting from specified WCS
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
Is that the sort of thing you're after?
Chris Abbott
TEAM Engineering
www.team-eng.com
RE: Coordinate points data in drafting from specified WCS
@john
When I am running the program in Modeling its giving the values from WCS and if I am running it in drafting mode Values are comming from absolute.
and as I created pointset values are not in sequence (order like pt1, pt2,...)those are shuffled
@Chris
I dont know the values to create spreadsheet. just I am creating pointset using curve equally spaced 150 points.
RE: Coordinate points data in drafting from specified WCS
- Change selection filter to "Point" (this is important. Point feature =/= point geometry)
- Select one of the points, right-click > Properties
- General tab > Change name to POINT1
- Click OK
- Tools > Spreadsheet
- Select cells A1 to C1
- Type =POINT("POINT1")
- Press Ctrl+Shift+Enter to populate the array
- You should have XYZ values for the position of that point - associative. If you change the point location, it changes the values in the spreadsheet
Do the same for all other points (POINT2, POINT3...) and the point at the origin of a Datum CSYS which you can move around. In the spreadsheet, do the subtraction of XYZ values from the datum CSYS.
Chris Abbott
TEAM Engineering
www.team-eng.com
RE: Coordinate points data in drafting from specified WCS
www.nxjournaling.com
RE: Coordinate points data in drafting from specified WCS
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
RE: Coordinate points data in drafting from specified WCS
I need to divide the curve into 150 points and the curve is variable
RE: Coordinate points data in drafting from specified WCS
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
I am creating points by pointset using along curve equal parameter
start % as 0
End % as 100
Number of points 150
If the model updates (i.e. curve length varies ) points will be updating, so that I asked xyz coordinates
RE: Coordinate points data in drafting from specified WCS
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
Is it possible to make some changes in your grip program like
1) It should ask the file name while saving .dat
2) Is it possible directly to save as .txt (should ask the file name before saving)
RE: Coordinate points data in drafting from specified WCS
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
As I don't know much about GRIP program, is it possible to you to make changes as suggested and attach it again.
Regards
Patil
RE: Coordinate points data in drafting from specified WCS
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
Let me know if this is working as you expected it to.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Digital Factory
Cypress, CA
Siemens PLM:
UG/NX Museum:
To an Engineer, the glass is twice as big as it needs to be.
RE: Coordinate points data in drafting from specified WCS
Alternatively, your NX/Open could automatically create the 150 "Measure Point" features, and you'd get assocoativity.
RE: Coordinate points data in drafting from specified WCS
RE: Coordinate points data in drafting from specified WCS
Thank you for the grip program. we need some changes in it, is it possible to compile once again
1). Is it possible to change the path (location) of .txt file. Manually can we set the path for saving the .txt files
2). Dont want the ** End of File ** line in last.
3). is it possible to create a VB program for it
Thanks & Regards
Patil
RE: Coordinate points data in drafting from specified WCS
CODE --> VB
Option Infer On Imports Snap, Snap.Create, Snap.UI, Snap.NX.ObjectTypes Imports System.Windows.Forms Public Class MyProgram Public Shared Sub Main() ' Create a selection dialog to slect multiple points Dim dialog = Selection.SelectObject("Select any object") dialog.SetFilter(Type.Point) dialog.AllowMultiple = True ' Display the dialog and get a result Dim result = dialog.Show() ' Exit if user clicked Cancel or Back button If result.Response = Response.Cancel Or result.Response = Response.Back Then Return 'Create list of strings to hold point info Dim pointList = New List(Of String) ' Cycle through points, adding them to list For Each obj In result.Objects Dim pt = TryCast(obj, Snap.NX.Point) If pt IsNot Nothing Then pointList.Add(pt.Position.ToString("F12")) End If Next ' Display a Save As dialog Dim saveDialog As New System.Windows.Forms.SaveFileDialog() saveDialog.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*" saveDialog.FilterIndex = 1 ' Write out the point data If saveDialog.ShowDialog() = DialogResult.OK Then System.IO.File.WriteAllLines(saveDialog.FileName, pointList) End If End Sub End ClassRE: Coordinate points data in drafting from specified WCS
Thanks for the VB Program.
It is showing some errors in that shown in the attachments
Regards
Patil
RE: Coordinate points data in drafting from specified WCS