Changes to version 1.2 are removal of registration, now defaults to commercial mode. Updated link in about box. Next version will work as standard user and not need administrator rights.
TrainSim Modeler
TrainSim Modeler
parms.TrimRight();
// make sure conv3ds is in current folder
if(!CFile::GetStatus("conv3ds.exe",status))
{
src = theApp.m_TrainSimPath + "\\utils\\conv3ds.exe";
dst = "conv3ds.exe";
CopyFile(src,dst,TRUE);
}
// create batch file for running conv3ds
CFile* pFile = new CFile;
CArchive* ar;
CString csBatch;
csBatch.Format("@echo Converting file(s)...\r\n%s %s\r\n"
"@echo Close this window to continue...\r\n",cmd,parms);
if(!pFile->Open("RunConv3ds.bat",CFile::modeCreate | CFile::modeWrite))
{
AfxMessageBox("Failed to create RunConv3ds.bat file!");
throw 0;
}
ar = new CArchive(pFile,CArchive::store);
if(!ar)
{
AfxMessageBox("Failed to create RunConv3ds.bat archive!");
throw 0;
}
ar->WriteString(csBatch);
ar->Close();
pFile->Close();
delete ar;
delete pFile;
// run the batch file
InvokeShellProgram("RunConv3ds.bat","",resultStr);
if(!CFile::GetStatus("TSM.s",status))
{
errStr.Format("Error running Conv3ds.exe command:\n%s %s",cmd,parms);
throw 0;
}

void CFScadDoc::OnFileCreatetsobjectfile()
{
BOOL b3dsMode = FALSE;
/*
#ifdef _DEBUG
if(AfxMessageBox("Create 3ds file?",MB_YESNO) == IDYES)
b3dsMode = TRUE;
#endif
*/
CreateTSObjectFile(b3dsMode);
}
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We do not share information about our users with anyone. For additional details, refer to our Privacy Policy.
By clicking "I UNDERSTAND" below, you consent to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.

Comment