Submitted by iamfallen on Fri, 05/02/2014 - 05:58
Forums:
I am trying to ask the origins of all the Tabular Notes on my drawings. I started with a loop to cycle through all get just the ones on the layer I want. I have not found anything in the help file though that will give me an origin point for this displayableobject.
Do theUfSession.Obj.CycleObjsInPart(workPart.Tag, UFConstants.UF_tabular_note_type, tagTabNote) If tagTabNote = NXOpen.Tag.Null Then Continue Do End If If tagTabNote <> NXOpen.Tag.Null Then theUfSession.Obj.AskTypeAndSubtype(tagTabNote, type, subtype) Dim obj As DisplayableObject = (Utilities.NXObjectManager.Get(tagTabNote)) If subtype = UFConstants.UF_tabular_note_section_subtype And obj.Layer <> 254 Then lw.writeline("Tabular Note Tag: " & tagTabNote) lw.writeline(" Note Type: " & type) lw.writeline(" Note Subtype: " & subtype) lw.writeline(" Layer: " & obj.Layer) ...

re: tabular note origin
The function:
theUfSession.Drf.AskOrigin(...)
will work here.