HandleToObject

HandleToObject

Anonymous
Not applicable
1,125 Views
6 Replies
Message 1 of 7

HandleToObject

Anonymous
Not applicable
Hello All,
can any body knows , how to use HandleToObject method in .Net API ?

Thanks in advance.
0 Likes
1,126 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
I'm not sure what you mean. Do you want to use this COM API from a .NET
language or are you looking fore a similar/equivalent method in the .NET
API?

Albert

wrote in message
news:4955666@discussion.autodesk.com...
Hello All,
can any body knows , how to use HandleToObject method in .Net API ?

Thanks in advance.
0 Likes
Message 3 of 7

Anonymous
Not applicable
i am looking for similar/equivalent method of HandletoObject in the .NET API?
0 Likes
Message 4 of 7

Anonymous
Not applicable
Database.GetObjectId()

wrote in message
news:4959993@discussion.autodesk.com...
i am looking for similar/equivalent method of HandletoObject in the .NET
API?
0 Likes
Message 5 of 7

wesbird
Collaborator
Collaborator
HI Albert:
from help file, GetObjectId required a Autodesk.AutoCAD.DatabaseServices.Handle object as parameter. How I can create a Handle object from a string? Do you have any sample code?


Thank you
Wes
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
0 Likes
Message 6 of 7

Anonymous
Not applicable
Handle HandleFromString(string hexstr)
{
return new Handle(Int64.Parse(hexstr, NumberStyles.HexNumber));
}

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:4970859@discussion.autodesk.com...
HI Albert:
from help file, GetObjectId required a Autodesk.AutoCAD.DatabaseServices.Handle object as parameter. How I can create a Handle object from a string? Do you have any sample code?


Thank you
Wes
0 Likes
Message 7 of 7

wesbird
Collaborator
Collaborator
thank you
Windows 10 64 bit, AutoCAD (ACA, Map) 2023
0 Likes