BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

Archicad C++ API
About Archicad add-on development using the C++ API.

Element_Change vs. Element_ChangeParameters (faster?)

Anonymous
Not applicable
Hi!

The plugin i am coding has to move many Elements (Lines, Arcs, Polylines) to a different layer.
I have wrapper-class for each element-type and each element-wrapper-object is synced with the ArchiCAD-Database using "ACAPI_Element_Change" after the layer-id has been changed.
Moving the elements this way is _very_ slow 😞
1000 lines : 7 seconds...

Recently i found the API-Command "ACAPI_Element_ChangeParameters" which seems to change a amount of elements.
I assume this way would be faster, but it would be difficult for me to change to this method, so i would like to hear about your experiences with that.

Would it be a lot faster?

Thanks for advices 🙂

regards,
John
2 REPLIES 2
Anonymous
Not applicable
John wrote:
Would it be a lot faster?
I did a little test:
moving 1000 lines to a different layer takes 0.2 seconds 🙂
7 seconds to 0.2 seconds... yes it _is_ a lot faster 😄

cu
TomWaltz
Participant
Wow, that is faster!!
Tom Waltz
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!