Forums:
Hi Cowski,
Hope you're well! I've been working on a parts list exporter, and would like to export a list of parts filtered by a selected reference set.
I currently have the following function to pull the tags to be included in the parts list:
PublicFunction GetPartsListTag(ByRef partTag As NXOpen.Tag)As NXOpen.Tag Dim tempTag As NXOpen.Tag= NXOpen.Tag.NullDim type AsIntegerDim subtype AsInteger Do ufs.Obj.CycleObjsInPart(partTag, UFConstants.UF_tabular_note_type, tempTag) ufs.Obj.AskTypeAndSubtype(tempTag, type, subtype) If subtype = UFConstants.UF_parts_list_subtypeThenReturn tempTag EndIf Loop Until tempTag = NXOpen.Tag.Null EndFunction
Is there a way to add something like "if tag is in the selected ref set, return the tempTag else next" ? I've been looking at AskMembersInReferenceSet() but haven't found a good way to use it.
Thanks,
Craptor