IModelObject::GetKind method (dbgmodel.h)
The GetKind method returns what kind of object is boxed inside the IModelObject. Such kind is defined by the ModelObjectKind enumeration.
HRESULT GetKind(
ModelObjectKind *kind
);
kind
The kind of object as indicated above will be returned in this argument.
This method returns HRESULT that indicates success or failure. This method should not typically fail.
Code Sample
ComPtr<IModelObject> spObject; /* acquired from somewhere */
ModelObjectKind kind;
HRESULT hr = spObject->GetKind(&kind);
// kind indicates the kind of model object
Requirement | Value |
---|---|
Header | dbgmodel.h |