cadÐĵÃÈý£º¹ØÓÚc#.netϵÄdatabaseÀàµÄ·½·¨ºÍÊôÐÔ
1. ͨ¹ý get { return HostApplicationServices.WorkingDatabase; } µÃµ½µ±Ç°¹¤×÷Êý¾Ý¿â£¬¼´µ±Ç°Îĵµ±»×°ÈëCAD»·¾³ºóµÃµ½µÄËùÓж«Î÷¡£
2. ÊôÐԺͷ½·¨£º
¹¹Ô캯Êý£º
ÊôÐÔ£º
Attmode ÉèÖÃ
mode
ΪÊý¾Ý¿âµÄ
ATTMODE
Öµ£¬
ÊäÈëÐèÒªµÄ
ATTMODE
ϵͳ±äÁ¿Öµ£¨±ØÐëÔÚ·¶Î§
0-2
Ö®¼ä
Aunits ÊäÈëÐèÒªµÄ
AUNITS
ϵͳ±äÁ¿Öµ£¨±ØÐëÔÚ
0-4
µÄ·¶Î§ÖÐ
Auprec ÊäÈëÐèÒªµÄ
AUPREC
ϵͳ±äÁ¿Öµ
Angbase ÉèÖÃÊý¾Ý¿âʹÓÃ
angle
×÷Ϊ
ANGBASE
Öµ¡£
ÊäÈëÐèÒªµÄ
ANGBASE
ϵͳ±äÁ¿½Ç£¨»¡¶È
Angdir ÊäÈë²¼¶ûÖµ£¬±íʾÐèÒªµÄ
ANGDIR
ϵͳ±äÁ¿Öµ£¬ÉèÖÃ
dir
ΪÊý¾Ý¿âµÄ
ANGDIR
Öµ¡£
false
µÄֵΪ
0
¡£
true
µÄֵΪ
1
¡£
BlockTableId
CurrentSpaceId
µ±Ç°¿é±í¼Ç¼ID
Clayer
Elevation »ñÈ¡Ä£ÐÍ¿Õ¼äµÄ¸ß¶È
Extmax
»ñÈ¡Ä£ÐÍ¿Õ¼äµÄ×î´ó¼¸ºÎ·¶Î§µã
Extmax
»ñÈ¡Ä£ÐÍ¿Õ¼äµÄ×îС¼¸ºÎ·¶Î§µã
Filename
GroupDictionaryId »ñÈ¡Êý¾Ý¿âµÄ×é×ÖµäID
Insbase
»ñÈ¡µ±Ç°Ä£ÐÍ¿Õ¼äµÄ²åÈë»ùµã£¬wcs×ø±êϵÏÂ
Insunits ÊäÈë±íʾͼÐÎʹÓõij¤¶È²âÁ¿µÄµ¥Î»µÄÀàÐÍ£¬
¸Ä±äÕâ¸öÖµ²»»á¸Ä±äÊý¾Ý¿âÖеÄÈκαÈÀý»ò×ø±êÊý¾Ý
IsPartiallyOpened
LastSavedAsMaintenanceVersion ·µ»Øµ±Ç°¹¤×÷ÈÎÎñÖÐ×îºó´¢´æµÄά»¤°æ±¾¡£Èç¹ûµ±Ç°¹¤×÷ÈÎÎñÔÚÕâ¸öͼÐÎÖÐδ´¢´æ£¬Ôò·µ»ØÁã
LastSavedAsVersion ·µ»Øµ±Ç°¹¤×÷ÈÎÎñÖе±Ç°Í¼ÐÎ×îºó´¢´æµÄ°æ±¾¡£Èç¹ûµ±Ç°¹¤×÷ÈÎÎñÔÚÕâ¸öͼÐÎÖÐδ´¢´æ£¬Ôò·µ»ØÁã
Latitude Ä£Ð͵Äά¶È£¬-90µ½90 ±±Î³
LayerTableId
LayerZero
»ñȡͼ²ã0µÄ²ã±í¼Ç¼
Limcheck ÊÇ·ñ¼ì²éÄ£ÐÍ¿Õ¼äµÄ·¶Î§
Limmax
Ä£ÐÍ¿Õ¼äµÄ¶þάͼÐνçÏÞµã
£¬wcs×ø±êϵÏÂ
Limmin
Ä£ÐÍ¿Õ¼äµÄ¶þάͼÐνçÏÞµã
£¬wcs×ø±êϵÏÂ
LinetypeTableId
LineWeightDisplay
ÊÇ·ñÏÔʾÏß¿í
Longitude
¾¶È -180µ½180 ¶«¾
Ltscale
µ±Ç°ÏßÐͱÈÀý
Measurement ÉèÖÃÊý¾Ý¿âµÄµ±Ç°µÄ
MEASUREMENT
Öµ£¬
ÒªÓÃÓÚ²âÁ¿µÄµ¥Î»µÄÀàÐÍ
Menu ·µ»ØÖ¸ÏòÊý¾Ý¿âµÄµ±Ç°
MENUNAME
ÖµµÄ×Ö·û´®µÄÒ»·Ý¿½±´¡£Ó¦ÓóÌÐò¸ºÔðɾ³ý×Ö·û´®ÄÚ´æ
Mirrtext
NamedObjectsDictionaryId
ÃüÃû¶ÔÏó×Öµäid
NorthDirection ±±·½ÏòµÄ½Ç¶È£¬wcs×ø±êϵÏÂ
NumberOfSaves
µ±Ç°»á»°Öб»±£´æ´ÎÊý
ObscuredColor
ObscuredLineType
OleStartUp
OriginalFileMaintenanceVersion ·µ»ØÊý¾Ý¿âÎļþµÚÒ»´Î´ò¿ªÊ±µÄά»¤°æ±¾Êý
OriginalFileName
±»´ò¿ªÇ°µÄÎļþÃû
OriginalFileSavedByMaintenance
Ïà¹ØÎĵµ£º
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using ......
¹ØÓÚC#ÖÐtimerÀà ÔÚC#Àï¹ØÓÚ¶¨Ê±Æ÷Àà¾ÍÓÐ3¸ö
1.¶¨ÒåÔÚSystem.Windows.FormsÀï
2.¶¨ÒåÔÚSystem.Threading.TimerÀàÀï
3.¶¨ÒåÔÚSystem.Timers.TimerÀàÀï
System.Windows.Forms.TimerÊÇÓ¦ÓÃÓÚWinFormÖеģ¬ËüÊÇͨ¹ýWindowsÏûÏ¢»úÖÆÊµÏ ......
ÔÚÏàͬ×Ö·û´®µÄÐí¶à²Ù×÷ÉÏ£¬Ê¹ÓÃStringBuilderÀà»á±ÈʹÓÃString¶ÔÏó¸üÓÐЧÂÊ¡£
µ±Äã¶ÔÒ»¸östring¶ÔÏó¸³ÖµÊ±£¬Õâʱ»áÉú³ÉÒ»¸öÕâ¸ö¶ÔÏóµÄ¸±±¾£¬Èç¹ûÄ㸳ֵ¶à´ÎµÄ»°ÔÚϵͳÖоͻᱣ´æ¶à¸öÕâ¸ö¶ÔÏóµÄ¸±±¾£¬»á¶Ôϵͳ×ÊÔ´Ôì³ÉºÜ´óµÄÀË·Ñ£¬µ«ÊÇStringBuilder²»»á³öÏÈÉÏÊöÇé¿ö
StringÊý¾ÝÀàÐÍ´ú±íµÄ ......
ÕâÊÇÒ»¸öÓйطÖÒ³µÄʵÀý,½ö¹©²Î¿¼(´úÂëÀ´×ÔÍøÂç)
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SQLite;
using System.Threading;
using System.Collections;
us ......
dzÎöC# ÖÐobject senderÓëEventArgs e
Ò»¡¢Á˽âC#ÖеÄÔ¤¶¨Òåʼþ´¦Àí»úÖÆ
ÔÚд´úÂëÇ°ÎÒÃÇÏÈÀ´ÊìϤ.net¿ò¼ÜÖкÍʼþÓйصÄÀàºÍίÍУ¬Á˽âC#ÖÐÔ¤¶¨ÒåʼþµÄ´¦Àí¡£
EventArgsÊÇ°üº¬Ê¼þÊý¾ÝµÄÀàµÄ»ùÀà,ÓÃÓÚ´«µÝʼþµÄϸ½Ú¡£
EventHandlerÊÇÒ» ......