版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、學(xué)習(xí)好資料歡迎下載一、cad版本和vc+的版本對應(yīng) 2二、objectarx 實(shí)體創(chuàng)建2三、創(chuàng)建直線實(shí)例2五、修改圖形對象的屬性 31、打開圖形數(shù)據(jù)庫的對象 32、修改直線顏色實(shí)例 4六、用類組織函數(shù)5七、提高createline函數(shù)的可重用性 9八、升級visual studio試用版到正式版 13九、創(chuàng)建圓14十、創(chuàng)建圓?。ā叭c(diǎn)法”,“起點(diǎn)、圓心、終點(diǎn)法”,“起點(diǎn)、圓心、圓弧角度法”)19/添加計(jì)算常量 .的值的函數(shù) 21十一、創(chuàng)建多段線24十二、創(chuàng)建正多邊形 26、cad版本和vc+的版本對應(yīng)autocadvisual studio20002002vc6.020042006vc7.0
2、(vc.net2002 )20072009vc8.0 (vc2005 )20101012vc200820132014vc2010二、objectarx實(shí)體創(chuàng)建1、注冊一條直線命令2、在命令函數(shù)中添加創(chuàng)建直線對象函數(shù)( acdbline類)acgepoint3d ptstart();acgepoint3d ptend();acdbline *pline=new acdbline(ptstart,ptend);3在命令函數(shù)中添加獲得指向塊表的指針相關(guān)代碼acdbblocketable *pblocktable;acdbhostapplicationserviceso-workingdatabase
3、()-getblocktable(pblocktable,acdb:k forread);4、在命令函數(shù)中添加獲得指向特定塊表記錄的指針的相關(guān)代碼acdbblocktablerecord *pblocktablerecord;pblocktable-getat(acdb_model_space,pblocktablerecord,acdb:kforwrite);5、在命令函數(shù)中添加向塊表記錄中附加實(shí)體代碼acdbobjectid lineid;pblocktabelrecord-appendacdbentity(lineid,pline);6、在命令函數(shù)中添加關(guān)閉圖形數(shù)據(jù)庫各種對象的代碼pbl
4、ocktable-close();pblocktablerecord-close();pline-close();三、創(chuàng)建直線實(shí)例j creatline.cpr acrxentrypaintcpp 支全局范圍)/ - mshlcreatlin. creatline comiinand (do not rename) static voi d mcreatlinecre電tlin虺(void) / adi ycrnr ccd for coinnind fftshlcreatliiie. creatliite here 在內(nèi)存上創(chuàng)建一個(gè)新的配口必i必對象acgepoint3d ptstart (口
5、一口0):acgepoiint3d p tend11 口口. 10q. 0);acdbli ne *plinq=ngw aedblina tptstart, ptend);”兼得指向塊表的指針acdbblockteibl-e *pblocktable;ac dbho s tkppl i c at i ons ervi c e e ()* /*w orki ngd at ab as e () ge tbl o ckl abl e (pblaektabl e acbb: :rforread): 獲蹲指贏定的塊亮記錄(模型空間)的指針acdbbladctsblerecord #pblocktsw.e
6、rccrd;pelackrablft- tat (aceb model space, pel c ckt abl &re e tr i acbb : : kf or ir i 11);“將mdbu m類的對象添疝到塊束記錄中aciwbjtctld lineli;pbl ckt abl eki c dj app endacdben t i ty q. t ntl dj pli ne);“關(guān)閉圖形數(shù)據(jù)庫的各種對象pblocklabl&-close 0;pbl o cktabl ercor d-clse 0 ;pli xie-/-cl&ka 0;四、2.5 0bjectarx的頭文件要使用各種obj
7、也rk類,在你的.cpp源文件或上頭文件中就必須包含相應(yīng)的gjtar工 頭文件。有效的objectarx頭文件位于object.y?x sdk安裝文件夾中;inc很幸運(yùn),口b“harx向?qū)г趧?chuàng)建objtarx項(xiàng)同時(shí),在stdafx. h文件中有下列包含語句;有include arxhejjers.li4而 arxheaders-h 中有在sbjctarx sdk folder)inc中所有的 qbj8tarx 頭文件* 所 以,我們一般不用再填寫包含語句,五、修改圖形對象的屬性1、打開圖形數(shù)據(jù)庫的對象acad:errorstatus acdbopenacdbentity(acdbentity*
8、&pent,acdbobjectidid,acdb:openmode mode, bool openerasedentity=false);第一個(gè)參數(shù)返回值指向圖形數(shù)據(jù)庫實(shí)體的指針;第二個(gè)參數(shù)輸入了要獲得的實(shí)體的id號,第三個(gè)參數(shù)指定了打開該實(shí)體的方式(讀或?qū)?;第四個(gè)參數(shù)指定是否允許訪問一個(gè)已經(jīng)被刪除的實(shí)體。0bme0rx提供了另外兩個(gè)全局函數(shù)acdbopeilacdbobject和acdbopeiiobject來實(shí)現(xiàn)類 似的功能,這三個(gè)函數(shù)的區(qū)別在與適用范圍: ftcdbopmiacdbemity士適用打開繼承干acdbentity的數(shù)據(jù)庫常駐對.象,這類對象 般都能在圖形窗口中顯示,如宜
9、線、圓等. aedbopeiiacdbobject:適用了打開未繼承于acdbentity的數(shù)據(jù)陣常駐對象,這類對 象不能在圖形窗口中顯示,如層表,線型表等。 acdbopenobjecr:如何不知道要打開的對象是否繼承于acdbeutity類,可以使用這 個(gè)函數(shù),打開某個(gè)對象之后,使用。o5e函數(shù)就可以將其關(guān)閉.2、修改直線顏色實(shí)例 static acdbobjectid creatline()/在內(nèi)存上創(chuàng)建一個(gè)新的 acdbline對象acgepoint3d ptstart(0,0,0);acgepoint3d ptend(100,100,0);acdbline *pline= new a
10、cdbline(ptstart,ptend);/獲得指向塊表的指針acdbblocktable *pblocktable;acdbhostapplicationservices()-workingdatabase()-getblocktable(pblocktable,acdb:kforr ead);/獲得指向特定塊表記錄的指針acdbblocktablerecord *pblocktablerecord;pblocktable-getat(acdb_model_space,pblocktablerecord,acdb:kforwrite);/將對象添加到塊表記錄中acdbobjectid l
11、ineid;pblocktablerecord-appendacdbentity(lineid,pline);/關(guān)閉圖形數(shù)據(jù)庫的各種對象pblocktable-close();pblocktablerecord-close();pline-close();/為在命令函數(shù)中引用該函數(shù),需要返回lineidreturn lineid;static acad:errorstatus changecolor(acdbobjectid entid,adesk:uint16 colorindex) acdbentity *pentity;/打開圖形數(shù)據(jù)庫中的對象acdbopenobject(pentity
12、,entid,acdb:kforwrite);/修改實(shí)體顏色pentity-setcolorindex(colorindex);/關(guān)閉實(shí)體對象 pentity-close();/被命令函數(shù)引用時(shí)需返回值 return acad:eok;/ - mshlmodifyent.changecolor command (do not rename) static void mshlmodifyentchangecolor( void ) / add your code for command mshlmodifyent.changecolor here/創(chuàng)建直線acdbobjectid lineid;
13、lineid=creatline();/修改直線顏色changecolor(lineid,1);六、用類組織函數(shù)1、新建 objectarx 項(xiàng)目 creatent2、新建兩個(gè) c+類 creatent 和 modifyent用這個(gè)類保存創(chuàng)建實(shí)體的函數(shù) 頭文件#pragma once#include stdafx.hclass ccreatentpublic :ccreatent( void );ccreatent( void );static acdbobjectid creatline();源文件#include stdafx.h#include creatent.hccreatent:c
14、creatent( void )ccreatent:ccreatent( void ) acdbobjectid ccreatent:creatline() /在內(nèi)存上創(chuàng)建一個(gè)新的 acdbline對象acgepoint3d ptstart(0,0,0);acgepoint3d ptend(100,100,0);acdbline *pline= new acdbline(ptstart,ptend); /獲得指向塊表的指針acdbblocktable *pblocktable;acdbhostapplicationservices()-workingdatabase()-getblocktab
15、le(pblocktable,acdb:kforr ead);/獲得指向特定塊表記錄的指針acdbblocktablerecord *pblocktablerecord;pblocktable-getat(acdb_model_space,pblocktablerecord,acdb:kforwrite); /將對象添加到塊表記錄中 acdbobjectid lineid;pblocktablerecord-appendacdbentity(lineid,pline); /關(guān)閉圖形數(shù)據(jù)庫的各種對象 pblocktable-close();pblocktablerecord-close();pl
16、ine-close(); return lineid; 頭文件#pragma once#include stdafx.hclass cmodifyent public :cmodifyent( void );cmodifyent( void );static acad:errorstatus changecolor(acdbobjectid entid,adesk:uint16 colorindex); ;源文件#include stdafx.h#include modifyent.hcmodifyent:cmodifyent( void ) cmodifyent:cmodifyent(voi
17、d )acad:errorstatus cmodifyent:changecolor(acdbobjectid entid, adesk:uint16 colorindex) acdbentity *pentity;/打開圖形數(shù)據(jù)庫中的對象acdbopenobject(pentity,entid,acdb:kforwrite);/修改實(shí)體顏色pentity-setcolorindex(colorindex);/關(guān)閉實(shí)體對象pentity-close();return acad:eok;acrxentrypoint.cpp/ (c) copyright 2002-2007 by autodesk
18、, inc./ permission to use, copy, modify, and distribute this software in/ object code form for any purpose and without fee is hereby granted,/ provided that the above copyright notice appears in all copies and/ that both that copyright notice and the limited warranty and/ restricted rights notice be
19、low appear in all supporting/ documentation./ autodesk provides this program as is and with all faults./ autodesk specifically disclaims any implied warranty of/ merchantability or fitness for a particular use. autodesk, inc./ does not warrant that the operation of the program will be/ uninterrupted
20、 or error free./ use, duplication, or disclosure by the u.s. government is subject to/ restrictions set forth in far 52.227-19 (commercial computer/ software - restricted rights) and dfar 252.227-7013(c)(1)(ii)/ (rights in technical data and computer software), as applicable./acrxentrypoint.cpp/#inc
21、lude stdafx.h #include resource.h #include creatent.h#include modifyent.h/#define szrds _rxst(mshl)/objectarx entrypointclass ccreatentsapp : public acrxarxapp public :ccreatentsapp () : acrxarxapp () virtual acrx:appretcode on_kinitappmsg ( void *pkt) / todo: load dependencies here/ you *must* call
22、 on_kinitappmsg hereacrx:appretcode retcode =acrxarxapp:on_kinitappmsg (pkt);/ todo: add your initialization code herereturn (retcode); virtual acrx:appretcode on_kunloadappmsg ( void *pkt) / todo: add your code here/ you *must* call on_kunloadappmsg hereacrx:appretcode retcode =acrxarxapp:on_kunloa
23、dappmsg (pkt);/ todo: unload dependencies herereturn (retcode); virtual void registerservercomponents () / - mshlcreatents.changec010r command (do not rename) static void mshlcreatentschangecolor( void ) / add your code for command mshlcreatents.changec010r here/創(chuàng)建直線acdbobjectid lineid;lineid=ccreat
24、ent:creatline();/修改直線顏色cmodifyent:changecolor(lineid,1);;/implement_arx_entrypoint(ccreatentsapp)aced_arxcommand_entry_auto(ccreatentsapp, mshlcreatents, changecolor, changecolor, acrx_cmd_transparent, null)七、提高createline函數(shù)的可重用性ccreateent:cre:ateline函數(shù)僅能創(chuàng)建一條起點(diǎn)為(0, 0, 0)、終點(diǎn)為(100, 100, 0)的 宜線,局限性很大,因此
25、要將它改造一下,便于在程序中調(diào)用另外,考慮到所有的圖形對 象創(chuàng)建過程都要進(jìn)行獲得圖形數(shù)據(jù)庫的塊衣、獲得模型空間的塊友記錄、將實(shí)體添加到模型 空間的塊質(zhì)記錄等操作,將這些步驟分離出來,封裝成個(gè)獨(dú)立的函數(shù)由添加類 ccreateent于是,ccreateent類現(xiàn)在包含了兩個(gè)靜態(tài)成員函數(shù):頭文件#pragma once/要包含stdafx#include stdafx.hclass ccreatelinepublic :ccreateline( void );ccreateline( void );static acdbobjectid createl(acgepoint3d ptstart,ac
26、gepoint3d ptend);static acdbobjectid posttomodelspace(acdbentity *pent);源文件#include stdafx.h#include createline.hccreateline:ccreateline( void )ccreateline:ccreateline( void )acdbobjectid ccreateline:createl(acgepoint3d ptstart, acgepoint3d ptend) acdbline *pline= new acdbline(ptstart,ptend);/acdbob
27、jectid lineld;lineid= ccreateline:posttomodelspace(pline);return lineld;acdbobjectid ccreateline:posttomodelspace(acdbentity *pent)acdbblocktable *pblocktable;acdbhostapplicationservices()-workingdatabase()-getblocktable(pblocktable,acdb:kforr ead);acdbblocktablerecord *pblocktablerecord;pblocktable
28、-getat(acdb_model_space,pblocktablerecord,acdb:kforwrite);acdbobjectid entid;pblocktablerecord-appendacdbentity(entid,pent);pblocktable-close();pblocktablerecord-close();pent-close();return entid;acrxentrypoint.cpp/ (c) copyright 2002-2007 by autodesk, inc./ permission to use, copy, modify, and dist
29、ribute this software in/ object code form for any purpose and without fee is hereby granted,/ provided that the above copyright notice appears in all copies and/ that both that copyright notice and the limited warranty and/ restricted rights notice below appear in all supporting/ documentation./ aut
30、odesk provides this program as is and with all faults./ autodesk specifically disclaims any implied warranty of/ merchantability or fitness for a particular use. autodesk, inc./ does not warrant that the operation of the program will be/ uninterrupted or error free./ use, duplication, or disclosure
31、by the u.s. government is subject to/ restrictions set forth in far 52.227-19 (commercial computer/ software - restricted rights) and dfar 252.227-7013(c)(1)(ii)/ (rights in technical data and computer software), as applicable./acrxentrypoint.cpp/#include stdafx.h#include resource.h/ 一定要在entrypoint中
32、有包含自定義類的頭文件#include createline.h/#define szrds _rxst(mshl)/objectarx entrypointclass carxproject1app : public acrxarxapp public :carxproject1app () : acrxarxapp () virtual acrx:appretcode on_kinitappmsg ( void *pkt) / todo: load dependencies here/ you *must* call on_kinitappmsg hereacrx:appretcode r
33、etcode =acrxarxapp:on_kinitappmsg (pkt);/ todo: add your initialization code herereturn (retcode);virtual acrx:appretcode on_kunloadappmsg ( void *pkt) / todo: add your code here/ you *must* call on_kunloadappmsg hereacrx:appretcode retcode =acrxarxapp:on_kunloadappmsg (pkt);/ todo: unload dependenc
34、ies herereturn (retcode);virtual void registerservercomponents () / - mshlfengzhuanglei.addline command (do not rename) static void mshlfengzhuangleiaddline( void ) / add your code for command mshlfengzhuanglei.addline hereacgepoint3d ptstart(0,0,0);acgepoint3d ptend(100,100,0);acdbobjectid lineid;l
35、ineid=ccreateline:createl(ptstart,ptend); ;/implement_arx_entrypoint(carxproject1app)aced_arxcommand_entry_auto(carxproject1app, mshlfengzhuanglei, addline, addline, acrx_cmd_modal, null) 2013/11/27八、升級visual studio試用版到正式版vs2008注冊方法:非常簡單,在開始 設(shè)置控制面版 添加或刪除程序 卸載2008(名字不太記得 了)出現(xiàn)卸載界面點(diǎn)擊 next 輸入上面cd-key -出
36、現(xiàn)成功畫面即可完美將試用版升級 成為正式版。vs2008 正式版序歹u號 cdkey : pyhyp-wxb3b-b2ccm-v9dx9-vdy8t在windows 7下,vs2008試用版無法正常升級到正式版。原因是維護(hù)頁面的注冊碼輸入框和升級按鈕被隱藏。通過本補(bǔ)丁,可讓注冊碼輸入框和升級按鈕恢復(fù)正常顯示。然后輸入激活碼 pyhyp-wxb3b-b2ccm-v9dx9-vdy8t 點(diǎn)擊升級即可。補(bǔ)丁下載地址下載地址2九、創(chuàng)建圓分別用“圓心,半徑、”“直徑的兩個(gè)端點(diǎn)”、“三點(diǎn)法”創(chuàng)建圓acdbcircle類用來表示圓,該類有兩個(gè)構(gòu)造函數(shù),其形式為: acdbcircle();acdbcircl
37、e(const acgepoint3d& cntr,const acgev ector3d& nrm,double radius);兩個(gè)構(gòu)造函數(shù)名稱相同,接受不同的參數(shù),這是 c+中函數(shù)的重載。重載是 c+提供 的一個(gè)很有用的特征,相同功能的函數(shù)采用相同的名稱。第二個(gè)構(gòu)造函數(shù)接受更過的參數(shù),因此首先對該函數(shù)進(jìn)行封裝,其他幾個(gè)函數(shù)均以封裝后的函數(shù)為基礎(chǔ)程序框架:本項(xiàng)目 createcircle 創(chuàng)建了兩個(gè)自定義類:ccreateent 和 ccalculation。在ccreateent類中添加四個(gè)自定義函數(shù):1、創(chuàng)建圓的函數(shù)static acdbobjectid createcircle(ac
38、gepoint3d ptcenter,acgevector vec,double radius);和static acdbobjectid posttomodelspace(pent);這兩個(gè)函數(shù)與創(chuàng)建直線時(shí)相同2、創(chuàng)建在xoy平面上的圓的函數(shù)static acdbobjectid createcircle(acgepoint3d ptcenter,double radius);該函數(shù)與1中的createcircle是函數(shù)重載,因?yàn)橐话愣S圖形創(chuàng)建的圓都是在xoy平面上,故將1中的vec在此函數(shù)中設(shè)為(0,0,1),再返回1函數(shù),以用圓心半徑的方法創(chuàng)建 圓。3、兩點(diǎn)法創(chuàng)建圓的函數(shù)static
39、acdbobjectid createcircle(acgepoint2d pt1,acgepoint2d pt2);4、三點(diǎn)法創(chuàng)建圓的函數(shù)static acdbobjectid createcircle(acgepoint2d pt1, acgepoint2d pt2, acgepoint2d pt3);在ccalculation類中有一個(gè)自定義函數(shù)static acgepoint2d middlepoint(acgepoint2d pt1,acgepoint2d pt2);用來計(jì)算兩點(diǎn)的中點(diǎn)在entrypoint函數(shù)中定義三個(gè)命令,分別用于三點(diǎn)法,兩點(diǎn)法,圓心半徑法創(chuàng)建圓。具體函數(shù)為:en
40、trypoint .cpp 函數(shù)/ - mshlcreatecircle.addcircle3 command (do not rename)/用三點(diǎn)法創(chuàng)建圓static void mshlcreatecircleaddcircle3( void )/ add your code for command mshlcreatecircle.addcircle3 hereacgepoint2d pt1(300,200);acgepoint2d pt2(400,400);acgepoint2d pt3(800,600);acdbobjectid circleid;circleid=createent
41、:createcircle(pt1,pt2,pt3);/ - mshlcreatecircle.1 command (do not rename) /用兩點(diǎn)法創(chuàng)建圓 static void mshlcreatecircle1( void ) / add your code for command mshlcreatecircle.1 here acgepoint2d pt1(100,400);acgepoint2d pt2(400,400);acdbobjectid circleid;circleid=createent:createcircle(pt1,pt2); / - mshlcreat
42、ecircle.2 command (do not rename) /用圓心半徑創(chuàng)建圓 static void mshlcreatecircle2( void ) / add your code for command mshlcreatecircle.2 here acgepoint3d ptcenter(300,300,0);double radius=100;createent:createcircle(ptcenter,radius); createent類函數(shù) 頭文件#pragma once#include stdafx.h class createent public :creat
43、eent( void );createent( void ); /聲明創(chuàng)建圓的函數(shù) static acdbobjectid createcircle(acgepoint3d ptcenter,acgevector3d vec,double radius);static acdbobjectid posttomodelspace(acdbentity *pent);/聲明在xo坪面上創(chuàng)建圓的函數(shù)static acdbobjectid createcircle(acgepoint3d ptcenter,double radius);/聲明兩點(diǎn)創(chuàng)建圓的函數(shù)static acdbobjectid cr
44、eatecircle(acgepoint2d pt1,acgepoint2d pt2); /聲明三點(diǎn)創(chuàng)建圓的函數(shù)static acdbobjectid createcircle(acgepoint2d pt1,acgepoint2d pt2,acgepoint2d pt3); ;源文件#include stdafx.h#include createent.h #include calculation.hcreateent:createent( void ) createent:createent( void ) /封裝acdbcircle類的函數(shù),即創(chuàng)建圓的函數(shù)acdbobjectid cre
45、ateent:createcircle(acgepoint3d ptcenter, acgevector3d vec,double radius)acdbcircle *pcircle= new acdbcircle(ptcenter,vec,radius);acdbobjectid circleid;circleid=createent:posttomodelspace(pcircle); return circleid;acdbobjectid createent:posttomodelspace(acdbentity *pent) acdbblocktable *pblocktable;
46、acdbhostapplicationservices()-workingdatabase()-getblocktable(pblocktable,acdb:kforr ead);acdbblocktablerecord *pblocktablerecord;pblocktable-getat(acdb_model_space,pblocktablerecord,acdb:kforwrite);acdbobjectid entid;pblocktablerecord-appendacdbentity(entid,pent);pblocktable-close();pblocktablereco
47、rd-close();pent-close(); return entid; 添加新的函數(shù)createcircle(使用了函數(shù)重載的概念,函數(shù)名相同,但參數(shù)個(gè)數(shù)或者參數(shù)類型不同,為不同函數(shù))/用于創(chuàng)建位于xoyf面上的圓acdbobjectid createent:createcircle(acgepoint3d ptcenter,double radius)acgevector3d vec(0,0,1);return createent:createcircle(ptcenter,vec,radius); /添加兩點(diǎn)創(chuàng)建圓的函數(shù)acdbobjectid createent:createcir
48、cle(acgepoint2d pt1,acgepoint2d pt2) /計(jì)算圓心和半徑,調(diào)用 middlepoint函數(shù) acgepoint2d pt=ccalculation:middlepoint(pt1,pt2); acgepoint3d ptcenter(ptx,pty,0);double radius=pt1.distanceto(pt2)/2;/創(chuàng)建圓 return createent:createcircle(ptcenter,radius);/添加三點(diǎn)創(chuàng)建圓的函數(shù)acdbobjectid createent:createcircle(acgepoint2d pt1, acg
49、epoint2d pt2, acgepoint2d pt3) /使用幾何類acgecircarc2d gearc(pt1,pt2,pt3);acgepoint3d ptcenter(gearc.center().x,gearc.center().y,0); return createent:createcircle(ptcenter,gearc.radius(); calculation 類函數(shù) 頭文件 #pragma once #include stdafx.h class ccalculation public : ccalculation( void ); ccalculation( v
50、oid);staticacgepoint2d middlepoint(acgepoint2d pt1,acgepoint2d pt2);staticacgepoint3d middlepoint(acgepoint3d pt1,acgepoint3d pt2);源文件#include stdafx.h#includecalculationhccalculation:ccalculation( void ) ccalculation:ccalculation( void ) /計(jì)算兩點(diǎn)連線中點(diǎn)的函數(shù)acgepoint2d ccalculation:middlepoint(acgepoint2d
51、pt1,acgepoint2d pt2) acgepoint2d pt;ptx=(pt1x+pt2x)/2;pty=(pt1y+pt2y)/2; return pt;acgepoint3d ccalculation:middlepoint(acgepoint3d pt1,acgepoint3d pt2) acgepoint3d pt;ptx=(pt1x+pt2x)/2;pty=(pt1y+pt2y)/2;ptz=(pt1z+pt2z)/2; return pt;2013/12/1十、創(chuàng)建圓弧(“三點(diǎn)法”,“起點(diǎn)、圓心、終點(diǎn)法”,“起點(diǎn)、圓心、圓弧角度法”) 創(chuàng)建兩個(gè)自定義類calculatio
52、n 和createent ”createent 類 頭文件#include stdafx.h class createent public :createent( void );createent( void );static acdbobjectid createarc(acgepoint3d ptcenter,acgevector3d vec,double radius, doublestartangle, double endangle);static acdbobjectid posttomodelspace(acdbentity *pent);static acdbobjectid
53、createarc(acgepoint2dptcenter, double radius, double startangle, doubleendangle);/三點(diǎn)法創(chuàng)建圓弧函數(shù)聲明static acdbobjectid createarc(acgepoint2dptstart,acgepoint2dptonarc,acgepoint2d ptend);static acdbobjectid createarc(acgepoint2d ptstart,acgepoint2d ptonarc,acgepoint2d ptend);/起點(diǎn)、圓心、終點(diǎn)法創(chuàng)建圓弧static acdbobject
54、id createarcsce(acgepoint2d ptstart,acgepoint2d ptcenter,acgepoint2d ptend);/起點(diǎn)、圓心、圓弧角度法創(chuàng)建圓static acdbobjectid createarc(acgepoint2d ptstart, acgepoint2d ptcenter,double angle);源文件acdbobjectid createent:createarc(acgepoint3d ptcenter,acgevector3d vec,double radius, doublestartangle, double endangle) acdbarc *parc= newacdbarc(ptcenter,vec,radius,startangle,endangle);acdbobjectid arcid;arcid=createent:posttomodelspace(parc);return arcid; acdbobjectid createent:posttomodelspace(acdbentity *pent) acdbblocktable *pblo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- YY/T 1950-2024組織工程醫(yī)療器械絲素蛋白
- YY/T 0860-2024心臟射頻消融治療設(shè)備
- 貴州財(cái)經(jīng)職業(yè)學(xué)院《小組工作》2023-2024學(xué)年第一學(xué)期期末試卷
- 貴陽職業(yè)技術(shù)學(xué)院《建筑風(fēng)景表現(xiàn)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025陜西省安全員-B證考試題庫附答案
- 紅棗小鎮(zhèn)建設(shè)項(xiàng)目可行性研究報(bào)告-紅棗市場需求持續(xù)擴(kuò)大
- 廣州中醫(yī)藥大學(xué)《食品微生物學(xué)(雙語)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2025年湖南省安全員考試題庫及答案
- 2025年山東省安全員《B證》考試題庫
- 廣州醫(yī)科大學(xué)《小學(xué)語文教學(xué)設(shè)計(jì)與實(shí)訓(xùn)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2023-2024學(xué)年浙江省杭州市上城區(qū)教科版四年級上冊期末考試科學(xué)試卷
- 期末 (試題) -2024-2025學(xué)年外研版(三起)(2024)英語三年級上冊
- 2023年彌渡縣廣播電視臺(融媒體中心)招聘筆試題庫及答案解析
- 體能訓(xùn)練講解健身課件
- 2023年成都溫江興蓉西城市運(yùn)營集團(tuán)有限公司招聘筆試題庫及答案解析
- 地震工程學(xué)-反應(yīng)譜和地震時(shí)程波的相互轉(zhuǎn)化matlab編程
- 建筑工程施工現(xiàn)場視頻監(jiān)控布置實(shí)施方案
- 施工現(xiàn)場節(jié)前安全檢查表
- 松下vf100變頻器使用手冊
- 機(jī)械設(shè)計(jì)制造及其自動(dòng)化實(shí)習(xí)總結(jié)報(bào)告——某
- 角的概念推廣說課課件.
評論
0/150
提交評論