Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Sep 16, 2016
4
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
 
Replies continue below

Recommended for you

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