Display Attributes?
Display Attributes?
(OP)
My boss asked if it is possible to display the attributes of holes on the screen in modeling. For instance in modeling, to turn on a setting or something and all of the holes will display their attributes. M8, DIA 8 H6, DIA 10, etc.... or ,maybe even just their diameters.
To my knowledge there is no setting to do this, but I figured I would ask. Never know when I might be surprised.
To my knowledge there is no setting to do this, but I figured I would ask. Never know when I might be surprised.





RE: Display Attributes?
Regards,
Tomas
RE: Display Attributes?
Thanks
RE: Display Attributes?
After showing dimensions do a right clic on one dimension and select show as PMI.
If not the dimension doesn't after refresh F5.
Regards
Didier Psaltopoulos
http://www.psi-cad.fr
RE: Display Attributes?
www.nxjournaling.com
RE: Display Attributes?
RE: Display Attributes?
CODE
Option Strict Off Imports System Imports NXOpen Module Module1 Sub Main() Dim theSession As Session = Session.GetSession() Dim workPart As Part = theSession.Parts.Work 'Dim lw As ListingWindow = theSession.ListingWindow 'lw.Open() Const holeNamePrefix As String = "hole" Dim counter As Integer = 1 For Each tempFeat As Features.Feature In workPart.Features If TypeOf (tempFeat) Is Features.HolePackage Then 'lw.WriteLine("name: " & tempFeat.Name) 'lw.WriteLine("timestamp: " & tempFeat.Timestamp) Dim theHole As Features.HolePackage = tempFeat 'lw.WriteLine("num edges: " & theHole.GetEdges.Length.ToString) For Each tempEdge As Edge In theHole.GetEdges tempEdge.SetName(holeNamePrefix & counter.ToString) Next counter += 1 End If 'lw.WriteLine("") Next 'lw.Close() 'turn on object names in the work view workPart.Preferences.NamesBorderVisualization.ObjectNameDisplay = Preferences.PartVisualizationNamesBorders.NameDisplay.WorkView End Sub Public Function GetUnloadOption(ByVal dummy As String) As Integer 'Unloads the image immediately after execution within NX GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately End Function End Modulewww.nxjournaling.com
RE: Display Attributes?
Im looking forward to a chance to delve into it some. :)