Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
as its a self described title i want to know a use case for _AcDb.Handle.IsOne ?
thanks in advance
Solved! Go to Solution.
Hi,
as its a self described title i want to know a use case for _AcDb.Handle.IsOne ?
thanks in advance
Solved! Go to Solution.
There isn't much use for Handle == 1 (or Entity 0).
"How we think determines what we do, and what we do determines what we get."
Sincpac C3D ~ Autodesk Exchange Apps
i already read the documentation, another question can we know if the object exists or not using Handle ?
@essam-salah a écrit :
can we know if the object exists or not using Handle ?
You can use the undocumented Database.TryGetObjectId method.
Signature:
public bool Autodesk.AutoCAD.DatabaseServices.Database.TryGetObjectId(
Autodesk.AutoCAD.DatabaseServices.Handle objHandle,
out Autodesk.AutoCAD.DatabaseServices.ObjectId id)
thanks for the post, so how to check if the Id is exist?
It’s probably something internal, since it’s been around forever,A handle of One seems to always point to the AcDbBlockTable
“since all databases start with the same handseed value of 1 and go up from there”
I also wonder the purpose of mLow and mHigh? Maybe to increase the address range back in the days of 16bit computers
Sorry if I went off topic
Ah, that make more sense