J-Link - delete Layer causes Creo crash
Hi everyone,
I have a small Problem. I wan't to delete all Layers with a simple ListLayers(). Iterate through and make Layer.Delete().
Everything fine and the sun is shining.
BUT if there is a Layer named "Hidden Items" (would be created by Creo if u Hide an Element in ModelTree) then the function may crash. It only may crash. The chance to crash is higher if u look in Layertree as if u look in modeltree. And everything is very strange, because it isn't everytime.
Without the Layer everything works perfekt.
Do someone know a way to do it without a possible Creo crash? or have a possibility to look if the "Hidden Items" Layer exists?
Looking forward to hearing from you,
Eike

