On 06/07/2015 at 11:26, xxxxxxxx wrote:
I test this CAPI snippet(write and execute at Remo c4d++ platform)
There is interesting, it marks ports(arrows) but not show connections
{
BaseDocument *doc = GetActiveDocument();
BaseObject *obj = (BaseObject * ) doc->GetActiveObject();
if(!obj) return FALSE;
XPressoTag *xTag = (XPressoTag* )obj->GetTag(Texpresso, 0);
if(!xTag) return FALSE;
GvNodeMaster *nm = xTag->GetNodeMaster();
GvNode *n1 = nm->GetRoot();
GvPort *p1 = n1->AddPort(GV_PORT_OUTPUT, 536870935, GV_PORT_FLAG_IS_VISIBLE, TRUE);
GvNode *n2 = nm->CreateNode(nm->GetRoot(), ID_OPERATOR_BOX, NULL, 0, 0);
GvPort *p2 = n2->GetOutPort(0);
if (p1 && p2)
{
GvNode *n1u = NULL;
GvNode *n2u = NULL;
GvPort *p1u = NULL;
GvPort *p2u = NULL;
if (nm->IsConnectionValid(n1, p1, n2, p2, n1u, p1u, n2u, p2u))
{
n2->AddConnection(n1, p1, n2, p2);
}
}
nm->Message(MSG_UPDATE);
EventAdd();
}

http://oi61.tinypic.com/xmvhbk.jpg