int SE3DmaxExport::DoExport(TCHAR const * name, ExpInterface* exp_interface, Interface* max_interface, BOOL suppress_prompts, DWORD options) { m_sFileName = tstr_to_str(name); m_pInterface = max_interface; m_ExportNodes.clear(); if (options & SCENE_EXPORT_SELECTED) { int count = m_pInterface->GetSelNodeCount(); for (int i = 0; i < count; ++ i) { this->EnumNode(m_pInterface->GetSelNode(i)); } } else { this->EnumNode(this->m_pInterface->GetRootNode()); } HWND max_wnd = max_interface->GetMAXHWnd(); if (::DialogBoxParam(dll_instance, MAKEINTRESOURCE(IDD_MESHML_EXPORT), max_wnd, ExportWndProc, reinterpret_cast<LPARAM>(this))) { MessageBox(max_wnd, TEXT("µ¼³ö³É¹¦£¡"), TEXT("SEModel Export"), MB_OK); } return 1; }
int meshml_export::DoExport(TCHAR const * name, ExpInterface* /*exp_interface*/, Interface* max_interface, BOOL /*suppress_prompts*/, DWORD options) { file_name_ = tstr_to_str(name); max_interface_ = max_interface; export_nodes_.clear(); if (options & SCENE_EXPORT_SELECTED) { int count = max_interface_->GetSelNodeCount(); for (int i = 0; i < count; ++ i) { this->enum_node(max_interface_->GetSelNode(i)); } } else { this->enum_node(this->max_interface_->GetRootNode()); } DWORD dlg_id; WORD lang_id = MaxSDK::Util::GetLanguageID(); if ((LANG_CHINESE == PRIMARYLANGID(lang_id)) && (SUBLANG_CHINESE_SIMPLIFIED == SUBLANGID(lang_id))) { dlg_id = IDD_MESHML_EXPORT_CHS; in_chs_ = true; } else { dlg_id = IDD_MESHML_EXPORT_EN; in_chs_ = false; } HWND max_wnd = max_interface->GetMAXHWnd(); if (::DialogBoxParam(dll_instance, MAKEINTRESOURCE(dlg_id), max_wnd, export_wnd_proc, reinterpret_cast<LPARAM>(this))) { if (in_chs_) { ::MessageBox(max_wnd, TEXT("导出成功!"), TEXT("MeshML导出插件"), MB_OK); } else { ::MessageBox(max_wnd, TEXT("Export Successful!"), TEXT("MeshML Export"), MB_OK); } } return 1; }