How to Get ObjectsHandler(NX Open) or Tags(Ufunc) of Objects created using Instance Geometry
How to Get ObjectsHandler(NX Open) or Tags(Ufunc) of Objects created using Instance Geometry
(OP)
Hi All,
I have created a Plane and then Instanced it Using GeomCopyBuilder class, now I want to get the Object Handler or Tags for the newly created Datum Planes. I have tried using GetBodies, Get Entities but it's not giving me anything...any help is appreciated...
I have created a Plane and then Instanced it Using GeomCopyBuilder class, now I want to get the Object Handler or Tags for the newly created Datum Planes. I have tried using GetBodies, Get Entities but it's not giving me anything...any help is appreciated...





RE: How to Get ObjectsHandler(NX Open) or Tags(Ufunc) of Objects created using Instance Geometry
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() Dim featArray() As Features.Feature = theSession.Parts.Work.Features.GetFeatures() Dim previousTimestamp As Integer = -1 lw.WriteLine("*** All Features ***") For Each myFeature As Features.Feature In featArray lw.WriteLine("name: " & myFeature.GetFeatureName) lw.WriteLine("type: " & myFeature.FeatureType) lw.WriteLine("timestamp: " & myFeature.Timestamp) If myFeature.Timestamp = previousTimestamp Then If myFeature.FeatureType.ToString.ToUpper <> "CONTAINER" Then lw.WriteLine("* instance feature tag: " & myFeature.Tag.ToString) End If End If previousTimestamp = myFeature.Timestamp lw.WriteLine("") Next lw.Close() End Sub Public Function GetUnloadOption(ByVal dummy As String) As Integer 'Unloads the image when the NX session terminates GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination End Function End Modulewww.nxjournaling.com