×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

AppendHybridShape perfomance impact

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

RE: AppendHybridShape perfomance impact

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources