📄 2003-november.txt
字号:
From ywenbo at tom.com Sun Nov 2 11:29:02 2003From: ywenbo at tom.com (Yang Wenbo)Date: Sat Nov 1 22:28:21 2003Subject: [Acis-alliance] save entity?Message-ID: <008d01c3a0f1$7a70c840$501a75ca@walker>Hello,
I'm using acisR10. There are the following codes to save entities, which works properly and create sat files desired.
I have formated the disk and installed the MS-Windows and ACIS over again. ACIS have been installed on another disk different to previous one.
I have reconfigured the acis project(this disk isn't formatted) based on Visual C++ according to that change mentioned above. However, there is nothing in sat files created now.
What results in this problem? What should I do?
Any help is appreciated.
void C***View::save_ent(char *filename,ENTITY *ent)
{
FileInfo info;
info.set_product_id("Xi'an Jiaotong University");
info.set_units(1.0);
api_set_file_info(FileId|FileUnits,info);
FILE *fp=fopen(filename,"w");
if(fp!=NULL)
{
ENTITY_LIST* savelist=new ENTITY_LIST;
savelist->add(ent);
api_save_entity_list(fp,TRUE,*savelist); //TRUE:sat, FALSE:sab
delete savelist;
}
else
{
}
printf("不能打开文件\n");
fclose(fp);
}-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031102/7a773a8c/attachment.htmFrom kissandras at xnet.ro Mon Nov 3 11:10:01 2003From: kissandras at xnet.ro (Andras Kiss)Date: Mon Nov 3 04:09:30 2003Subject: [Acis-alliance] Re: Acis-alliance Digest, Vol 8, Issue 1In-Reply-To: <E1AGO0l-0000mp-02@rogue.cs.columbia.edu>References: <E1AGO0l-0000mp-02@rogue.cs.columbia.edu>Message-ID: <oprx102ztbz8pt1n@localhost>On Sun, 02 Nov 2003 14:35:43 -0500, <acis-alliance-request@cs.columbia.edu> wrote:> Hello,> I'm using acisR10. There are the following codes to save entities, which > works properly and create sat files desired.> I have formated the disk and installed the MS-Windows and ACIS over > again. ACIS have been installed on another disk different to previous > one.> I have reconfigured the acis project(this disk isn't formatted) based on > Visual C++ according to that change mentioned above. However, there is > nothing in sat files created now.> What results in this problem? What should I do?> Any help is appreciated.>> void C***View::save_ent(char *filename,ENTITY *ent)> {> FileInfo info;> info.set_product_id("Xi'an Jiaotong University");> info.set_units(1.0);> api_set_file_info(FileId|FileUnits,info);> FILE *fp=fopen(filename,"w");> if(fp!=NULL)> {> ENTITY_LIST* savelist=new ENTITY_LIST;> savelist->add(ent);> api_save_entity_list(fp,TRUE,*savelist); //TRUE:sat, FALSE:sab> delete savelist;> }> else> {> }> printf("????????????\n");> fclose(fp);> }>It seems that everything is OK but you should insert in the info your versionID from ACIS with the following code:char id_string[33];if (get_point_version() > 0) sprintf(id_string, "Xi'an Jiaotong University - %d.%d.%d", get_major_version(), get_minor_version(), get_point_version()); else sprintf(id_string, "Xi'an Jiaotong University - %d.%d", get_major_version(), get_minor_version());info.set_product_id(id_string);The code above assume that you have declared the enviroment variables as I described in Volume 7, Issue 11.Andras.P.S. Tell me if it works.-------------------------------------------------------Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.Xnet automatically scans all messages for viruses using RAV AntiVirus.Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor.Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschidetifisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzatde virusi.Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants.Please be aware that there is a risk involved whenever opening e-mail attachmentsto your computer and that MobiFon is not responsible for any damages caused byviruses.From alames at sandia.gov Wed Nov 5 10:10:38 2003From: alames at sandia.gov (Ames, Arlo)Date: Wed Nov 5 12:12:19 2003Subject: [Acis-alliance] Regaring Display of threadsMessage-ID: <03781128C7B74B4DBC27C55859C9D7381139461F@es06snlnt.sandia.gov>What you are asking for guarantees slowness. The NURBS faces required forrepresenting threads are very complex. When you facet them for display,their curvature will cause a very large number of facets to be created.This is a fundamental geometric behavior, and is no flaw in ACIS or anyother geometric modeler. Explicit modeling of geometric details begs thiskind of slowness. Sorry, but that's life.Arlo Amesalames@sandia.gov-----Original Message-----From: Ajit Narayan Patil [mailto:patilan@iitb.ac.in]Sent: Monday, October 27, 2003 10:33 PMTo: acis-alliance@cs.columbia.eduSubject: [Acis-alliance] Regaring Display of threadsImportance: HighDear FriendsI am using following code for generation of threads on cylinderical shaftBut when i call this function display of part is very slow and when idisplay same part in wireframe it take long time.also time for sweep operation is long.Can anyone tell how to reduce time for this.Thanks in advance.Ajitvoid CFBMTurnDoc::OnThread(){ // TODO: Add your command handler code here //api_initialize_sweeping(); // Initializes the sweep library PART* part = m_pAcisDoc->Part(); double pitch=2; double Xposition=15.0; double Zposition=60.0; double length=6.0; double startposi=Zposition-pitch; position axis_start(0,0,startposi);// axis start position double endposi=Zposition+length+pitch; position axis_end(0,0,endposi); // axis end position vector start_dir(0,1,0); // from axis_start to helixstart double radius = 15; // major radius of helix pitch; // distance between turns along axis logical handiness = FALSE; // TRUE is right FALSE is left EDGE *helix; // pointer to the helix created api_edge_helix (axis_start, //creates the helix axis_end, start_dir, radius, pitch, handiness, helix); /* VERTEX *v1= helix->start(); // get the coordinates of // its start vertex APOINT *p1 = v1->geometry(); position origin = p1->coords(); const curve& cur = helix->geometry()->equation(); // curve direction at start unit_vector normal = cur.point_direction(origin);*/position pts[3]; double h=pitch*0.86603; double zpt0=Zposition-(pitch/2.1); pts[0] = position( 0,Xposition, zpt0); double zpt1=zpt0+(pitch/16.0); double xpt1=Xposition-(pitch/16.0); double xpt2=Xposition-(h-(h/8.0)); pts[1] = position( 0,xpt2,Zposition); double zpt3=Zposition+(pitch/2.0)-(pitch/16.0); pts[2] = position( 0,Xposition,(zpt3+pitch/16.0)); double xpt5=Xposition+pitch/16.0; // Construct an edge that is a linear line. EDGE *my_linear[3]; api_curve_line( pts[0], pts[1], my_linear[0]); api_curve_line( pts[1], pts[2], my_linear[1]); api_curve_line( pts[2], pts[0], my_linear[2]); ENTITY_LIST *edlist = new ENTITY_LIST; edlist->add(my_linear[0]); edlist->add(my_linear[1]); edlist->add(my_linear[2]); // Create a wire-body from a list of edges. BODY *my_wirebody = NULL; outcome result; result = api_make_ewire( 3, my_linear, my_wirebody); CheckOutcome(result); ENTITY_LIST my_profile_faces; my_profile_faces.init(); api_cover_circuits (1, &edlist, *(surface*)NULL_REF,my_profile_faces); BODY *my_sweep; FACE *my_sweep_face; my_sweep_face = (FACE *)my_profile_faces[0]; result = api_mk_by_faces(NULL, 1, &my_sweep_face, my_sweep); CheckOutcome(result); BODY *spring; sweep_options *opts = new sweep_options(); //use default values //This API can take a few seconds to execute result = api_sweep_with_options ( my_sweep_face, // profile tosweep helix, // path tosweep along opts, // sweepoptions spring // swept bodyreturned ); CheckOutcome(result); AfxMessageBox("Thread Done"); // outcome res1 =api_subtract(my_sweep,cyl1); entity_filter* filter=NULL; ENTITY_LIST elist; BODY* temp; api_subtract(my_sweep,TurnPart); api_copy_body(TurnPart,temp); result = api_part_entities (part,filter,elist); CheckOutcome(result); for(int i=0; i<elist.count(); i++) { ENTITY *ent = elist[i]; int test=elist.count(); //record_entity( ent); api_del_entity(ent); } result = api_part_add_entity(temp,part); CheckOutcome(result); // Display the ENTITIES view3d* pTolView = m_pAcisDoc->SetDisplayTol(); // SET TOLERANCE if(result.ok() && part) { if (m_pAcisDoc->GetAutoDisplay()) { // Make sure the views are invalidated m_pAcisDoc->InvalidateViews(); AfxMessageBox("Thread Display"); } }}_______________________________________________Acis-alliance mailing listAcis-alliance@cs.columbia.eduhttp://lists.cs.columbia.edu/mailman/listinfo/acis-allianceFrom tgerisch at klaes.de Thu Nov 6 12:10:12 2003From: tgerisch at klaes.de (tgerisch@klaes.de)Date: Thu Nov 6 07:06:57 2003Subject: [Acis-alliance] Delayed loading of Acis shared librariesMessage-ID: <DIIE.00000002000000E4@192.168.115.1>Hello EverbodyDoes anyone know, if (or better how) it is possible to load all Acis shared libraries (Windows, Acis R10) with the VCPP-linker option /DELAYLOADand prevent linker errors likeLINK : fatal error LNK1194: Verz?gertes Laden f?r base100.dll aufgrund des Imports des Datensymbols "__declspec(dllimport) void * NULL_REF" (__imp_?NULL_REFThanks in advance.Thomas Gerisch-------------- next part --------------An HTML attachment was scrubbed...URL: http://lists.cs.columbia.edu/pipermail/acis-alliance/attachments/20031106/3f220004/attachment.htmFrom lzguo at mail.com Thu Nov 6 20:50:33 2003From: lzguo at mail.com (liu zhiguo)Date: Thu Nov 6 20:50:46 2003Subject: [Acis-alliance] question on saving and spliting edgesMessage-ID: <20031107015033.32149.qmail@mail.com>Dear all acis-alliance members, I have read ENTITY_LIST of faces(face_list). I have gotten all the edges and saved them to a new ENTITY_LIST(onlyedge). I can find some edges in onlyedge ENTITY LIST and split them by point. Now I want to save the splited edges to a new SAT file. I know I can not save edge only, so I want to do it by using CURVE. //------------------------------------ CURVE * testedge[100]; for(i=0;i<onlyedge.count();i++) { EDGE * mmm=(EDGE*)onlyedge[i]; testedge[i]=mmm->geometry(); savelist->add(testedge[i]); } api_save_entity_list(fp,TRUE,*savelist);//-------------------------------------But my SAT file only contains the information of the follow data:straight-curve $-1 -1 -1 $-1 95.309108183528195 10.3420521645956 0 -45.309108183528195 0 0 F 0 F 1 #straight-curve $-1 -1 -1 $-1 50 10.3420521645956 0 0 29.6579478354044 0 F 0 F 1 #straight-curve $-1 -1 -1 $-1 95.309108183528195 40 0 45.309108183528195 0 0 F -1 F 0 #straight-curve $-1 -1 -1 $-1 95.309108183528195 10.3420521645956 0 0 -29.6579478354044 0 F -1 F 0 #straight-curve $-1 -1 -1 $-1 97.7425322222565 -48.8712661111282 0 -47.7425322222565 0 0 F 0 F 1 #straight-curve $-1 -1 -1 $-1 50 -48.8712661111282 0 0 59.2133182757238 0 F 0 F 1 #straight-curve $-1 -1 -1 $-1 97.7425322222565 10.3420521645956 0 47.7425322222565 0 0 F -1 F 0 #straight-curve $-1 -1 -1 $-1 97.7425322222565 -48.8712661111282 0 0 -59.2133182757238 0 F -1 F 0 #straight-curve $-1 -1 -1 $-1 50 -40 0 -50 0 0 F 0 F 1 #straight-curve $-1 -1 -1 $-1 0 -40 0 0 40 0 F 0 F 1 #straight-curve $-1 -1 -1 $-1 50 0 0 50 0 0 F -1 F 0 #straight-curve $-1 -1 -1 $-1 50 -40 0 0 -40 0 F -1 F 0 #straight-curve $-1 -1 -1 $-1 0 0 0 50 0 0 F 0 F 1 #
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -