![]() ![]() This layer could have drawing details and dimensions not included on the SHOP layer. ![]() The dimensions on the ENG layer were to four places and a little smaller text height. The dimensions were decimal to three places and a medium text height. On the SHOP layer were all of the dimensions necessary to manufacture the part. The three different formats and layers were SHOP, ENG, and SALES. Object Atts=(object)blkRef.GetAttributes() ĪttRef=(dbx.Where I once worked, each part drawing had three different dimension formats with each format on a different layer. Public object GetValueByAttributeName(dbx.AcadBlockReference blkRef,string AttributeName) }// end of foreach thisDrawing.ModelSpace }//end of entity.EntityName="AcDbBlockReference" If (entity.EntityName="AcDbBlockReference") Public dbx.AcadBlockReference GetBlockReference(dbx.AxDbDocument thisDrawing,string blkName)įoreach (dbx.AcadEntity entity in thisDrawing.ModelSpace ) If (System.IO.File.Exists (FileName)=false) throw new Exception (" 文件不存在。 ") String programeID ="ObjectDBX.AxDbDocument.17" ĪutoCAD.AcadApplication AcadApp = Connector.Application ĭbxDoc=(dbx.AxDbDocument)AcadApp.GetInterfaceObject(programeID) Public dbx.AxDbDocument GetThisDrawing(string FileName,string PassWord)ĪCAD.AutoCADConnector Connector=new AutoCADConnector() Public AutoCAD.AcadApplication Application If (!this._Disposed & this._Initialized ) Protected virtual void Dispose(bool disposing) _Application = new AutoCAD.AcadApplicationClass() This._Application = (AutoCAD.AcadApplication)Marshal.GetActiveObject("AutoCAD.Application.17") Private AutoCAD.AcadApplication _Application Public class AutoCADConnector:IDisposable ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |