What does it mean .InternalDBObject and .InternalObjectId

Hello everybody
Could someone explain to me what the expressions “.InternalDBObject” and “.InternalObjectId” mean in python?
I have found them in many scripts but I cannot understand the meaning
For example what does it mean this expression:

Alignment = IN[0].InternalObjectId ???

Thank you

Hi
See this

2 Likes

Both are properties of the Dynamo wrapper classes that encapsulate native AutoCAD objects from the AutoCAD .NET API. You use them to unwrap the Dynamo object and gain access to the underlying object, hence the term “internal” in the property name. The InternalDBObject property will return a DBObject, and InternalObjectId will return an Object ID that you can use in a transaction to get the database object.

You can read the AutoCAD .NET API Developer docs to understand this in greater detail. Also, this video may help.

2 Likes

Hi @mzjensen. Thank you.

Can I ask you what is the difference between InternalDBObject and InternalObjectId?
Why in this video you used InternalDBObject applied to a corridor and I found InternalObjectId applied to an alignment?

Thank you?

They are just two different examples of how to unwrap objects.

About Object IDs
About DBObjects

1 Like