cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

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
Newcomer
Wow, that is faster!!
Tom Waltz

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!