What happens if you instantiate a Db entity but don't append it? #80
-
I have written a function that creates a Db.MText entity in order to determine the width of text so I can scale the table's column size based on the longest value. It does work but I'm wondering if there are any side effects. If I don't run model.appendAcDBEntity(mtext), what happens? Does this get picked up by GC? Is it still hidden in the database? I don't want the text to appear in the model but also don't want to fill up the database without knowing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Garbage collected. Basically, if the object has an objectid, it’s closed, else deleted Lines 58 to 72 in 751da54 There’s a couple of rare conditions when the object is handed over to AutoCAD |
Beta Was this translation helpful? Give feedback.
Garbage collected.
Basically, if the object has an objectid, it’s closed, else deleted
PyRx/PyRxCore/PyRxObject.cpp
Lines 58 to 72 in 751da54
There’s a couple of rare conditions when the object is handed over to AutoCAD