⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2003-august.txt

📁 acis说明文档
💻 TXT
📖 第 1 页 / 共 2 页
字号:
From PG02104852 at ntu.edu.sg  Fri Aug  1 15:51:08 2003From: PG02104852 at ntu.edu.sg (#TANG SHAOHUI#)Date: Fri Aug  1 02:52:06 2003Subject: [Acis-alliance] How to save a satfile?Message-ID: <0C42D409AF10B1428A0B026FB160A5BE11AF43@mail02.student.main.ntu.edu.sg>hello,I met problem when I want to save a part in .sat file.//open a file dlgTCHAR* szFilter = "SAT Document(*.sat)|*.sat|STEP File(*.stp)|*.stp||";void CStepdbmsDoc::OnFileSave() {	CFileDialog dlg(false, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter, NULL);	if(dlg.DoModal() == IDOK)	{		OnSaveDocument(dlg.GetPathName());	}}//save documentBOOL CStepdbmsDoc::OnSaveDocument(LPCTSTR lpszPathName) {	BOOL bRetVal = FALSE;	bRetVal = m_pAcisDoc->OnSaveDocument( lpszPathName);    	if( !bRetVal)		bRetVal = CDocument::OnSaveDocument( lpszPathName);	if( bRetVal)		m_pAcisDoc->OnComplete( lpszPathName);		return bRetVal;}//m_pAcisDoc->OnSaveDocument call parent functionBOOL CAcisDoc::OnSaveDocument(LPCTSTR lpszPathName) {	BOOL OK = FALSE;	CString extension = name.Right(4);	if( extension.CompareNoCase(".sat") == 0 ) {		OK = SaveSatFile(lpszPathName);	}	return OK;}//SaveSatFile function. When I debug, problem exist in the following function.BOOLCAcisDoc::SaveSatFile(const char* lpszPathName){	BOOL OK = TRUE;	CStdioFile file;	CFileException fe;	if( file.Open(lpszPathName,				  CFile::modeCreate |						CFile::modeReadWrite |						CFile::shareExclusive,				  &fe) ) {		PART* part = Part();		outcome result = api_part_save(file.m_pStream, TRUE, part);		if( !result.ok() ) OK = FALSE;		file.Close();	} else {		m_pDoc->ReportSaveLoadException(				lpszPathName, &fe, FALSE, AFX_IDP_FAILED_TO_OPEN_DOC);		OK =  FALSE;	}	return OK;} //When I debug, OK become FALSE after	outcome result = api_part_save(file.m_pStream, TRUE, part);//It seems that api_part_save has not been successfully excuted. The result file size is 0. Who ever has met this problem?Any response is appreciated.thanksFrom lxg at jlu.edu.cn  Fri Aug  1 17:31:56 2003From: lxg at jlu.edu.cn (Liu zhiguo)Date: Fri Aug  1 04:33:17 2003Subject: [Acis-alliance] question on HOOPS and ACISMessage-ID: <776493AC10DC.AAA6784@mail.jlu.edu.cn>	Hi everyone of Acis-alliance,  I am working with ACIS MFC now. Recently I want to start HOOPS and have built a HOOPS ACIS MFC  Application. When I compiled it, VC prompts that it can not find some dll files. But I have set all the path of needed dll file in project setting.At last I have to copy all the needed dll files to WINNT/system directory. And it can run.   When I ran my ACIS MFC Applications which has nothing wrong before, my ACIS application can not run either and pops up the same kind of error on dll files. I have checked my project setting of ACIS MFC application and have not found any problems. At last I had to copy all the dlls in NT_DLLD directory to system and ACIS programs can run. I don't know why. Should I copy dlls to system? I remember it need not to do so when compile a application? My enviroment availables setting is enough(ARCH A3DT PATH). Who can tell me why and how to solve this problem?Thanks a lot.   				        Liu zhiguo        lxg@jlu.edu.cn          2003-08-01From wang at me.skku.ac.kr  Fri Aug  1 21:48:50 2003From: wang at me.skku.ac.kr (Eric Wang)Date: Fri Aug  1 09:50:33 2003Subject: [Acis-alliance] question on HOOPS and ACISReferences: <776493AC10DC.AAA6784@mail.jlu.edu.cn>Message-ID: <0a4f01c35822$dff20b60$883afccb@ewang2>From: "Liu zhiguo" <lxg@jlu.edu.cn>> When I compiled it, VC prompts that it can not find some dll files.> ... my ACIS application can not run either and pops up the same> kind of error on dll files.    You must add the DLL directories to your PATH environment    variable.  When you run your application, Windows searches    the PATH for all DLLs that it needs to load.    The VC project settings don't matter when you run your app.    This DLL error is a run-time error from Windows, not a    compile-time error from VC.    For example, my PATH environment variable is:D:\Develop\Acis8.0\lib\NT_DLLD;D:\Develop\Spatial\AcisR11\bin\NT_DLLD;D:\Develop\HOOPS-700\lib;D:\Develop\HOOPS-800\lib;D:\Develop\AlgorithmicSolutions\Leda-4.4    This lets me run ACIS 8.0 + HOOPS 7.0, and ACIS 11.0 +    HOOPS 8.0.    Note that the default installation of HOOPS is not very    convenient, because it puts DLLS in many different    subdirectories.  You have two options:    a)  Add every HOOPS DLL subdirectory to your PATH.        I think this is too much dumb typing.    b)  Customize your HOOPS installation.        Make a new HOOPS-700\include folder, and copy or        move all HOOPS header files to it.        Make a new HOOPS-700\bin folder, and copy or move        all HOOPS DLL files to it.  Then add this folder        to your PATH environment variable.        This is what I did above.--Eric WangResearch Associate, CAD Lab, Sungkyunkwan UniversityFrom njogleka at ecn.purdue.edu  Tue Aug 12 20:38:44 2003From: njogleka at ecn.purdue.edu (Nikhil Joglekar)Date: Tue Aug 12 20:35:50 2003Subject: [Acis-alliance] regarding Hoops8 and ACIS8Message-ID: <009d01c36133$4028fc00$82622e80@me98pc10>hi allI was trying to compile the example of Hoops Acis part viewer. Howevercompiler couldn't find ha_bridge.h and corresponding files. Does anybodyhave an idea how can I make this work. Primary question is if Hoops 8 workswith Acis 8.thanks   Nikhil JoglekarResearch AssistantPRECISESchool of Mechanical EngineeringPurdue University, IN 47906Ph. No. 765-743-2875 (Home)            765-494-0309 (Office)            765-409-0447 (Cell) -------------- next part --------------A non-text attachment was scrubbed...Name: winmail.datType: application/ms-tnefSize: 2896 bytesDesc: not availableUrl : http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030812/d7a28731/winmail.binFrom njogleka at ecn.purdue.edu  Tue Aug 12 20:39:30 2003From: njogleka at ecn.purdue.edu (Nikhil Joglekar)Date: Tue Aug 12 20:36:31 2003Subject: [Acis-alliance] Message-ID: <00a101c36133$5c2daef0$82622e80@me98pc10>hi allI was trying to compile the example of Hoops Acis part viewer. Howevercompiler couldn't find ha_bridge.h and corresponding files. Does anybodyhave an idea how can I make this work. Primary question is if Hoops 8works with Acis 8.thanks   Nikhil JoglekarResearch AssistantPRECISESchool of Mechanical EngineeringPurdue University, IN 47906Ph. No. 765-743-2875 (Home)            765-494-0309 (Office)            765-409-0447 (Cell)-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20030812/9f219309/attachment.htmFrom wang at me.skku.ac.kr  Wed Aug 13 17:59:34 2003From: wang at me.skku.ac.kr (Eric Wang)Date: Wed Aug 13 04:00:00 2003Subject: [Acis-alliance] regarding Hoops8 and ACIS8References: <009d01c36133$4028fc00$82622e80@me98pc10>Message-ID: <035101c36170$d58fd330$883afccb@ewang2>From: "Nikhil Joglekar" <njogleka@ecn.purdue.edu>> I was trying to compile the example of Hoops Acis part viewer.> However compiler couldn't find ha_bridge.h and corresponding files.> Does anybody have an idea how can I make this work. Primary> question is if Hoops 8 works with Acis 8.    Briefly, no, A8-H8 does not work automatically.    Here's a short history of HOOPS and ACIS:    ACIS 7.0 -- HOOPS 7.0 worked "automatically".        Tech Soft provided the ha_bridge.    ACIS 8.0 -- HOOPS 7.0 worked after a few modifications.    ACIS R10 -- HOOPS 8.0 works "automatically".    (N.B. there is no ACIS 9.0)        The big change is that Spatial took over the management        of the ha_bridge component.  It is now part of ACIS R10,        no longer part of HOOPS.  If you look in your HOOPS-800        acispartviewer Project Settings, Preprocessor, Additional        include directories, you will see at the very end:            $(A3DT)/ha_bridge/ha_bridge        That's the ACIS R10 ha_bridge component.  Since you        have only ACIS 8.0, neither of your libraries provide

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -