I am learning about ObjectArx and as far as I know there are 3 common ways to create objects in Arx:
- use acdbEntMake
- use record.append (entity)
- use a combination of record.append and transaction
so, my questions is: can someone help me when I should use them in each case? Do they have a big difference in performance with each other?
I am hesitant to use acdbentmake when the number of objects is large compared to the following two methods because I see very few examples that mention it.
I don't know what kind of entity You are creating but:
You don't need to use
acdbEntMakein most cases. I'm using ObjectARX since about 8 years and never used it ;)Transaction is used in .Net version of ObjectARX but You tagged visual-c++ so I suppose it's not this case.
If You warring about drawing large number of entities just test it. draw in the way You know and measure needed time. As long as You and Your clients accept drawing time, the way You are using is OK. In the future You always can refactor the code to get better performance if necessary.
To create for example line You may use this sample: