Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

AppendHybridShape perfomance impact

Status
Not open for further replies.

peter_m

Automotive
Joined
Sep 16, 2016
Messages
4
Location
NL
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
 
Hi Ferdo

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top