DQuick
Aerospace
- Dec 8, 2010
- 8
Is there any way to create a list of reference sets in a part?
We are in the process of taking ~2000 models from a customer and reformatting them to our standards which requires replacing the existing reference sets with our own along with a few other cleaning operations. I have been able to automate most of the cleaning operations using a journal file, but as of yet I cannot handle reference sets. Our current method requires going through each part and manually deleting each refernece set, then adding at least one reference set for the solid.
I have gone though the .net api reference as far as I can follow but cant figure out where to pull a list of reference sets from a part. I have found how to add and removed them and how to add items to them, but nothing to list them.
referenceSet1 = workPart.CreateReferenceSet()
referenceSet1.SetName("model")
referenceSet1.AddObjectsToReferenceSet(components1)
workPart.DeleteReferenceSet(referenceSet1)
Any suggestions would be gratefully appreciated.
UG NX 6.0.4.3
We are in the process of taking ~2000 models from a customer and reformatting them to our standards which requires replacing the existing reference sets with our own along with a few other cleaning operations. I have been able to automate most of the cleaning operations using a journal file, but as of yet I cannot handle reference sets. Our current method requires going through each part and manually deleting each refernece set, then adding at least one reference set for the solid.
I have gone though the .net api reference as far as I can follow but cant figure out where to pull a list of reference sets from a part. I have found how to add and removed them and how to add items to them, but nothing to list them.
referenceSet1 = workPart.CreateReferenceSet()
referenceSet1.SetName("model")
referenceSet1.AddObjectsToReferenceSet(components1)
workPart.DeleteReferenceSet(referenceSet1)
Any suggestions would be gratefully appreciated.
UG NX 6.0.4.3