Replies: 2 comments 2 replies
-
That was my intent, if fact the fist versions didn’t have a cast. I thought it was part of the ugliness of AutoCAD’s .NET interface. db = Db.curDb()
texts = []
#if its not a text, we don't even open it
for id in db.objectIds():
if id.isDerivedFrom(Db.Text.desc()):
texts.append(Db.Text(id)) the no check allows overrules to perform quite well |
Beta Was this translation helpful? Give feedback.
-
more reading edit : I suppose that's pretty import to have documented |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The
cast()
method returns the requested object, even if that object has a type that does not fit into this class. Is this the correct behavior?Beta Was this translation helpful? Give feedback.
All reactions