Plugin Cafe's original forum is still archived and available for searches. The ability to post here has been disabled.
 
Developer's Forum [PREV] [NEXT]
Subject: RE: Copying objects
From: h.g. seib
Date: 2/7/2001 3:38 PM GMT
    
    // probiers mal damit
    
    fLoad(vPfad)
    { var v,vOK,vFile,vDoc1,vDoc2,vBits,vMat,vObj;
     //
     vFile->SetFullString(vPfad);
     if (!GeFileExist(vFile,FALSE)) return FALSE;
     //
     vDoc1=GetActiveDocument();
     vBits=vDoc1->GetAllBits();
     vOK=LoadDocument(vFile);
     if (!vOK) return FALSE;
     //
     vDoc2=GetActiveDocument();
     vMat=vDoc2->GetFirstMaterial();
     if (vMat)
     { while (vMat)
      { vDoc1->InsertMaterial(vMat->GetClone(),NULL);
        vMat=vMat->GetNext();
     }}
     vObj=vDoc2->GetFirstObject();
     if (vObj)
     { while (vObj)
      { vDoc1->InsertObject(vObj->GetClone(0),NULL,NULL);
        vObj=vObj->GetNext();
     }}
     vDoc2->Remove();
     vDoc2=NULL;
     vDoc1->SetAllBits(vBits);
     return TRUE;
    }
    
    

Current Message String
new Copying objects - len - 2/6/2001 6:15 AM GMT
 new RE: Copying objects - Philip Losch - 2/6/2001 10:13 AM GMT
 new RE: Copying objects - h.g. seib - 2/7/2001 3:38 PM GMT
[PREV] [NEXT]