Hi,
I want to apply a Target Expression tag to one of a child objects of GetVirtualObjects. is it possible?
I tried with following code but nothing happens (The Target Expression tag is was added to the "Orbit" Null object, together with the target link but the Null object is not looking to the target).
BaseContainer* data = op->GetDataInstance();
...
AutoAlloc<BaseObject> ParentPtr(Onull);
AutoAlloc<BaseObject> OrbitPtr(Onull);
if (!ParentPtr || !OrbitPtr)
return false;
BaseDocument* doc = op->GetDocument();
ParentPtr->SetName("Parent");
OrbitPtr->SetName("Orbit");
BaseDocument* doc = op->GetDocument();
BaseTag* tagTarget = OrbitPtr->MakeTag(Ttargetexpression);
BaseList2D* oTarget = data->GetLink(MYOBJECT_TARGET, doc);
tagTarget->GetDataInstance()->SetLink(TARGETEXPRESSIONTAG_LINK, oTarget);
OrbitPtr->InsertUnder(ParentPtr);
...