Message 1 of 4
ObjectClass

Not applicable
04-08-2010
08:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Help. I need ObjectClass in ObjectId but my Visual Studio 2008 does not recognize ObjectClass as one of the properties of ObjectId what is wrong with my code?
Dim bObject As New EditorInput.PromptNestedEntityOptions("")
Dim opt As EditorInput.PromptPointOptions = New EditorInput.PromptPointOptions("Pick point: ")
bObject.NonInteractivePickPoint = myEd.GetPoint(opt).Value
bObject.UseNonInteractivePickPoint = True
Dim bRes As EditorInput.PromptNestedEntityResult = myEd.GetNestedEntity(bObject)
If bRes.Status = EditorInput.PromptStatus.OK Then
Using ta As Transaction = tm.StartTransaction
myEnt = ta.GetObject(bRes.ObjectId, OpenMode.ForRead)
Dim id As DatabaseServices.ObjectId = myEnt.ObjectId
id.ObjectClass <---- does not exists
end using
end if
Edited by: a7v1n on Apr 9, 2010 3:36 AM
Dim bObject As New EditorInput.PromptNestedEntityOptions("")
Dim opt As EditorInput.PromptPointOptions = New EditorInput.PromptPointOptions("Pick point: ")
bObject.NonInteractivePickPoint = myEd.GetPoint(opt).Value
bObject.UseNonInteractivePickPoint = True
Dim bRes As EditorInput.PromptNestedEntityResult = myEd.GetNestedEntity(bObject)
If bRes.Status = EditorInput.PromptStatus.OK Then
Using ta As Transaction = tm.StartTransaction
myEnt = ta.GetObject(bRes.ObjectId, OpenMode.ForRead)
Dim id As DatabaseServices.ObjectId = myEnt.ObjectId
id.ObjectClass <---- does not exists
end using
end if
Edited by: a7v1n on Apr 9, 2010 3:36 AM