Journal - select start, end and center point of edge
Journal - select start, end and center point of edge
(OP)
Hello everybody,
I have one question - I think answer is no, but I must ask.
I must transform operation from start point to selected points.
Is is some function in NXOpen for select specific points of geometry (start point, end point or center point) in modeling or manufacturing.
I think about something like this:

I need only coordinates of these points. The rest is simple.
Best regards
Michał Nowak
NX9.0 & TC10
I have one question - I think answer is no, but I must ask.
I must transform operation from start point to selected points.
Is is some function in NXOpen for select specific points of geometry (start point, end point or center point) in modeling or manufacturing.
I think about something like this:

I need only coordinates of these points. The rest is simple.
Best regards
Michał Nowak
NX9.0 & TC10





RE: Journal - select start, end and center point of edge
The SpecifyPoint block has a property SnapPointTypesEnabled that allows you to limit the point selection to things like "Arc Center", "End point" etc.
Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook 8760w, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP4 64bit
Testing: NX9.0.2.5
RE: Journal - select start, end and center point of edge
ufs.Ui.PointConstruct(cue, base_method, pt_tag, base_pt, response)
I found it on http://www.nxjournaling.com/content/getting-compon...
Thank you cowski for his work.
Best regards
Michał Nowak
RE: Journal - select start, end and center point of edge
To allow the user to specify a position on a larger dialog (that includes other items), use a BlockDialog or a BlockForm containing a SpecifyPoint block.
RE: Journal - select start, end and center point of edge
www.nxjournaling.com
RE: Journal - select start, end and center point of edge
I've already done what I wanted to do.
I wanted to highlight some points of the model geometry and read their coordinates.
I did this using: ufs.Ui.PointConstruct (cue, base_method, pt_tag, base_pt, response).
I wrote that in my second post.
My code it's something like this:
CODE --> vb
Public ptsPoints As New List(Of Point) ..... If select_points("Select Points") = 0 Then MsgBox("Brak punktów docelowych") Exit Sub End If ..... Function select_points(ByVal cue As String) As Integer Dim base_pt As Double() = New Double(2) {} Dim response As Integer = 0 Dim base_method As UFUi.PointBaseMethod = UFUi.PointBaseMethod.PointCenterPt Dim pt_tag As Tag Dim i As Integer = 0 Do ufs.Ui.LockUgAccess(NXOpen.UF.UFConstants.UF_UI_FROM_CUSTOM) ufs.Ui.PointConstruct(cue, base_method, pt_tag, base_pt, response) ufs.Ui.UnlockUgAccess(NXOpen.UF.UFConstants.UF_UI_FROM_CUSTOM) Dim punkt3d1 As Point3d = New Point3d(base_pt(0), base_pt(1), base_pt(2)) Dim punkt As Point punkt = workPart.Points.CreatePoint(punkt3d1) ptsPoints.Add(punkt) i = i + 1 Loop While response = vbCancel ptsPoints.Remove(ptsPoints(ptsPoints.Count - 1)) Return ptsPoints.Count End FunctionOnce again, sorry and thanks for your help
Best regards
Michał Nowak