Quantcast
Channel: NX Journaling - Journaling / NXOpen API
Viewing all articles
Browse latest Browse all 787

Delete unused groups - please help

$
0
0

Hi everyone.

I am struggling with something and I hoped someone here could help.

I have a program that takes requests (in the form of car areas like "front wing") and makes groups for them in a hierarchy and then queries a server for data for the areas and makes splines (CFD streamlines). However, as a CFD run might not have data for all the areas requested, some groups can be left empty which I don't like.

I need a way to find all of the empty groups so that I can delete them before the program finishes. I can't just make a list of groups I used and delete the others because the user could use the button twice to get different car areas and I don't want the second attempt deleting the stuff from the first. Also I prefer to make the groups at the start rather than after successfully getting data back from the server because it is easier to do the hierarchy.

Can anyone think of a way to help me go through my groups and delete ones with nothing in them (other than another group (which could be done with a dictionary of groups to parent groups))

Thanks

Nick


Viewing all articles
Browse latest Browse all 787

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>