AppendHybridShape perfomance impact
AppendHybridShape perfomance impact
(OP)
Hello Everyone!
I encounter strange thing which i dont fully understand.
I have vba script which generate a lot of geometry in a loop. In each loop I create 2 to 5 support lines/planes etc and one final result. When I'm appending this final result to tree script finishes almost 50% faster than if I dont append data to tree.
I always thought that appending geometry to tree slow down execution of scripts, does anybody know why this is happening?
Regards
Peter
I encounter strange thing which i dont fully understand.
I have vba script which generate a lot of geometry in a loop. In each loop I create 2 to 5 support lines/planes etc and one final result. When I'm appending this final result to tree script finishes almost 50% faster than if I dont append data to tree.
I always thought that appending geometry to tree slow down execution of scripts, does anybody know why this is happening?
Regards
Peter





RE: AppendHybridShape perfomance impact
Please check this link.
Regards
Fernando
https://picasaweb.google.com/102257836106335725208 - Romania
https://picasaweb.google.com/103462806772634246699... - EU
RE: AppendHybridShape perfomance impact
Thanks for reply. I have read this thread but i still didnt find answer for my problem.
This is example of my tree:
Geo Set
|
|--Object
...|
...|--SubElement1
...|--SubElement2
......|
......|--SubElement3
......|--SubElement4
My VBA script crating a lot of these Object elements and I found out that my script run 50% faster if I append Object to Geo Set.
I'm trying to optimize my code so i even dont compute some SubElements if Catia dont ask me for that(eg by throwing error)
I dont use Part.Update and Object.Update and I still cant find answer why this is happening.
Regards
Peter