C# Solidworks二次开发:枚举应用实战(第六讲)

2024-04-28 16:44

本文主要是介绍C# Solidworks二次开发:枚举应用实战(第六讲),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

大家好,今天继续介绍我们的枚举应用实战系列。

下面是今天要介绍的枚举:

(1)第一个为swMateType_e,这个枚举为装配件的类型,下面是官方的具体枚举值:

MemberDescription
swMateANGLE
swMateCAMFOLLOWER
swMateCOINCIDENT
swMateCONCENTRIC
swMateCOORDINATE20 
swMateDISTANCE
swMateGEAR10 
swMateHINGE22
swMateLINEARCOUPLER18 
swMateLOCK16 
swMateLOCKTOSKETCH12 
swMateMAGNETIC25
swMateMAXMATES14 
swMatePARALLEL
swMatePATH15 
swMatePERPENDICULAR
swMatePROFILECENTER24
swMateRACKPINION13 
swMateSCREW17 
swMateSLIDER23
swMateSLOT21
swMateSYMMETRIC
swMateTANGENT
swMateUNIVERSALJOINT19 
swMateUNKNOWN
swMateWIDTH11 

(2)第二个为swPropertyManagerPageBitmapButtons_e,这个枚举为属性管理器页面位图按钮,下面是官方的具体枚举值:

MemberDescription
swBitmapButtonImage_alongz1
swBitmapButtonImage_angle2
swBitmapButtonImage_auto_bal_circular3
swBitmapButtonImage_auto_bal_left4
swBitmapButtonImage_auto_bal_right5
swBitmapButtonImage_auto_bal_square6
swBitmapButtonImage_auto_bal_top7
swBitmapButtonImage_diameter8
swBitmapButtonImage_dimension_set_default_attributes38
swBitmapButtonImage_distance19
swBitmapButtonImage_distance210
swBitmapButtonImage_draft11
swBitmapButtonImage_dve_but_cmark_bolt12
swBitmapButtonImage_dve_but_cmark_linear13
swBitmapButtonImage_dve_but_cmark_single14
swBitmapButtonImage_favorite_add34
swBitmapButtonImage_favorite_delete35
swBitmapButtonImage_favorite_load37 
swBitmapButtonImage_favorite_save36 
swBitmapButtonImage_leader_ang_above15
swBitmapButtonImage_leader_ang_beside16
swBitmapButtonImage_leader_hor_above17
swBitmapButtonImage_leader_hor_beside18
swBitmapButtonImage_leader_left19
swBitmapButtonImage_leader_no20
swBitmapButtonImage_leader_right21
swBitmapButtonImage_leader_yes22
swBitmapButtonImage_parallel23
swBitmapButtonImage_perpendicular24
swBitmapButtonImage_reverse_direction25
swBitmapButtonImage_revision_circle26
swBitmapButtonImage_revision_hexagon27
swBitmapButtonImage_revision_square28
swBitmapButtonImage_revision_triangle29
swBitmapButtonImage_stack33
swBitmapButtonImage_stackleft30
swBitmapButtonImage_stackright31
swBitmapButtonImage_stackup32

(3)第三个为swRunMacroError_e,这个枚举为VBA宏错误代码,下面是官方的具体枚举值:

MemberDescription
swRunMacroError_BadParmCount
swRunMacroError_BadVarType10 
swRunMacroError_Busy17 
swRunMacroError_CallFailed20 
swRunMacroError_CallRejected19 
swRunMacroError_CantSave27 
swRunMacroError_ConnectionTerminated18 
swRunMacroError_DiskError26 
swRunMacroError_Exception12 
swRunMacroError_InvalidArg
swRunMacroError_Invalidindex22
swRunMacroError_InvalidProcname
swRunMacroError_InvalidPropertyType
swRunMacroError_MacrosAreDisabled
swRunMacroError_NoPermission23 
swRunMacroError_NotInDesignMode
swRunMacroError_OnlyCodeModules
swRunMacroError_OpenFileFailed28 
swRunMacroError_OutOfMemory
swRunMacroError_Overflow13 
swRunMacroError_ParmNotOptional15 
swRunMacroError_Reverted24 
swRunMacroError_SuborfuncExpected
swRunMacroError_TooManyOpenFiles25 
swRunMacroError_TypeMismatch14 
swRunMacroError_UnknownLcid16 
swRunMacroError_UserInterrupt11 
swRunMacroError_Zombied21 

(4)第四个为swSelectType_e,这个枚举值为返回ID类型的值,下面是官方的具体枚举值:

MemberDescription
swSelANNOTATIONTABLES98; See Remarks
swSelANNOTATIONVIEW139; See Remarks
swSelARROWS49; See Remarks
swSelATTRIBUTES8; See Remarks
swSelBLOCKDEF99; See Remarks
swSelBLOCKINST93; See Remarks
swSelBODYFEATURES22; See Remarks
swSelBODYFOLDER118; See Remarks
swSelBOMFEATURES97; See Remarks
swSelBOMS54; See Remarks
swSelBOMTEMPS64; See Remarks
swSelBorder254; See Remarks
swSelBREAKLINES31; See Remarks
swSelBROWSERITEM69; See Remarks
swSelCAMERAS136; See Remarks
swSelCENTERLINES103; See Remarks
swSelCENTERMARKS28; See Remarks
swSelCENTERMARKSYMS100; See Remarks
swSelCOMMENT127; See Remarks
swSelCOMMENTSFOLDER126; See Remarks
swSelCOMPONENTS20; See Remarks
swSelCOMPPATTERN37; See Remarks
swSelCOMPSDONTOVERRIDE72; See Remarks
swSelCONFIGURATIONS47; See Remarks
swSelCONNECTIONPOINTS66; See Remarks
swSelCOORDSYS61; See Remarks
swSelCOSMETICWELDS220; See Remarks
swSelCTHREADS39; See Remarks
swSelCUSTOMSYMBOLS60; See Remarks
swSelDATUMAXES

5; See Remarks

swSelDATUMLINES62; See Remarks
swSelDATUMPLANES4; See Remarks
swSelDATUMPOINTS6; See Remarks
swSelDATUMTAGS36; See Remarks
swSelDCABINETS42; See Remarks
swSelDETAILCIRCLES17; See Remarks
swSelDIMENSIONS14; See Remarks
swSelDISPLAYSTATE148; See Remarks
swSelDOCSFOLDER125; See Remarks
swSelDOWELSYMS86; See Remarks
swSelDRAWINGVIEWS12; See Remarks
swSelDTMTARGS40; See Remarks
swSelEDGES1; See Remarks
swSelEMBEDLINKDOC123; See Remarks
swSelEMPTYSPACE72; See Remarks
swSelEQNFOLDER55; See Remarks
swSelEVERYTHING-3; See Remarks
swSelEXCLUDEMANIPULATORS111; See Remarks
swSelEXPLLINES45; See Remarks
swSelEXPLSTEPS44; See Remarks
swSelEXPLVIEWS43; See Remarks
swSelEXTSKETCHPOINTS25; See Remarks
swSelEXTSKETCHSEGS24; See Remarks
swSelEXTSKETCHTEXT88; See Remarks
swSelFABRICATEDROUTE70; See Remarks
swSelFACES2; See Remarks
swSelFRAMEPOINT77; See Remarks
swSelFTRFOLDER94; See Remarks
swSelGENERALTABLEFEAT142; See Remarks
swSelGTOLS13; See Remarks
swSelHELIX26; See Remarks
swSelHOLESERIES83; See Remarks
swSelHOLETABLEAXES105; See Remarks
swSelHOLETABLEFEATS104; See Remarks
swSelIMPORTFOLDER57; See Remarks
swSelINCONTEXTFEAT29; See Remarks
swSelINCONTEXTFEATS32; See Remarks
swSelJOURNAL124; See Remarks
swSelLEADERS84; See Remarks
swSelLIGHTS73; See Remarks
swSelLOCATIONS-2; See Remarks
SwSelMAGNETICLINES225; See Remarks
swSelMANIPULATORS79; See Remarks
swSelMATEGROUP30; See Remarks
swSelMATEGROUPS33; See Remarks
swSelMATES21; See Remarks
swSelMATESUPPLEMENT138; See Remarks
swSelMIDPOINTS59; See Remarks
swSelNOTES15; See Remarks
swSelNOTHING0; See Remarks
swSelOBJGROUP155; See Remarks
swSelOBJHANDLES48; See Remarks
swSelOLEITEMS7; See Remarks
swSelPICTUREBODIES80; See Remarks
swSelPLANESECTIONS219; see Remarks
swSelPOINTREFS41; See Remarks
swSelPOSGROUP68; See Remarks
swSelPUNCHTABLEFEATS234; See Remarks
swSelREFCURVES23; See Remarks
swSelREFEDGES51; See Remarks
swSelREFERENCECURVES26; See Remarks
swSelREFFACES52; See Remarks
swSelREFSILHOUETTE53; See Remarks
swSelREFSURFACES27; See Remarks
swSelREVISIONCLOUDS240; See Remarks
swSelREVISIONTABLE113; See Remarks
swSelREVISIONTABLEFEAT119; See Remarks
swSelROUTECURVES63; See Remarks
swSelROUTEPOINTS65; See Remarks
swSelROUTESWEEPS67; See Remarks
swSelSECTIONLINES16; See Remarks
swSelSECTIONTEXT18; See Remarks
swSelSELECTIONSETFOLDER258; See Remarks
swSelSELECTIONSETNODE259; See Remarks
swSelSFSYMBOLS35; See Remarks
swSelSHEETS19; See Remarks
swSelSILHOUETTES46; See Remarks
swSelSIMELEMENT102; See Remarks
swSelSIMULATION101; See Remarks
swSelSKETCHBITMAP85; See Remarks
swSelSKETCHCONTOUR96; See Remarks
swSelSKETCHES9; See Remarks
swSelSKETCHHATCH56; See Remarks
swSelSKETCHPOINTFEAT71; See Remarks
swSelSKETCHPOINTS11; See Remarks
swSelSKETCHREGION95; See Remarks
swSelSKETCHSEGS10; See Remarks
swSelSKETCHTEXT34; See Remarks
swSelSOLIDBODIES76; See Remarks
swSelSOLIDBODIESFIRST81; See Remarks
swSelSUBATOMFOLDER121; See Remarks
swSelSUBSKETCHDEF154; See Remarks
swSelSUBSKETCHINST114; See Remarks
swSelSUBWELDFOLDER107; See Remarks
swSelSURFACEBODIES

75; See Remarks

swSelSURFBODIESFIRST78; See Remarks
swSelSWIFTANNOTATIONS130; See Remarks
swSelSWIFTFEATURES132; See Remarks
swSelSWIFTSCHEMA159; See Remarks
swSelTITLEBLOCK192; See Remarks
swSelTITLEBLOCKTABLEFEAT206; See Remarks
swSelUNSUPPORTED-1; See Remarks
swSelVERTICES3; See Remarks
swSelVIEWERHYPERLINK58; See Remarks
swSelWELDBEADS122; See Remarks
swSelWELDMENT106; See Remarks
swSelWELDMENTTABLEFEATS116; See Remarks
swSelWELDS38; See Remarks
swSelWIREBODIES74; See Remarks
swSelZONES50; See Remarks

其对应的备注如下所示:

swSelectType_e

IModelDocExtension::SelectByID2
string

ISelectionMgr::GetSelectedObject6
return value

IFeature::GetSpecificFeature2
return value

swSelNOTHING 

swSelEDGES 

"EDGE"

IEdge

swSelFACES 

"FACE"IFace2

swSelVERTICES

"VERTEX"

IVertex

swSelDATUMPLANES

"PLANE"

Feature2

IRefPlane

swSelDATUMAXES

"AXIS"

Feature2

IRefAxis

swSelDATUMPOINTS

"DATUMPOINT"Feature1

No specific interface

swSelOLEITEMS

"OLEITEM"

Not Supported

swSelATTRIBUTES

"ATTRIBUTE"Feature1

IAttribute

swSelSKETCHES

"SKETCH"Feature2

ISketch

swSelSKETCHSEGS

"SKETCHSEGMENT"

ISketchSegment

swSelSKETCHPOINTS 

"SKETCHPOINT"

ISketchPoint

swSelDRAWINGVIEWS

"DRAWINGVIEW"

IView

swSelGTOLS

"GTOL"

IGtol

swSelDIMENSIONS

"DIMENSION"

IDisplayDimension

swSelNOTES

"NOTE"

INote

swSelSECTIONLINES

"SECTIONLINE"Feature1

IDrSection

swSelDETAILCIRCLES

"DETAILCIRCLE"Feature1

IDetailCircle

swSelSECTIONTEXT

"SECTIONTEXT"

swSelSHEETS

"SHEET"

ISheet

swSelCOMPONENTS 

"COMPONENT"

IComponent2

swSelMATES

"MATE" Feature2

IMate

swSelBODYFEATURES

"BODYFEATURE"3Feature1

No specific interface

swSelREFCURVES

"REFCURVE"Feature1

IReferenceCurve

swSelEXTSKETCHSEGS

"EXTSKETCHSEGMENT"

ISketchSegment

swSelEXTSKETCHPOINTS

"EXTSKETCHPOINT"

ISketchPoint or origin point

swSelHELIX 

"HELIX"

swSelREFERENCECURVES

"REFERENCECURVES"

Feature1

IReferenceCurve

swSelREFSURFACES 

"REFSURFACE"

swSelCENTERMARKS

"CENTERMARKS"

Not supported

swSelINCONTEXTFEAT

"INCONTEXTFEAT"

swSelMATEGROUP 

"MATEGROUP"

swSelBREAKLINES 

"BREAKLINE"

IBreakLine

swSelINCONTEXTFEATS

"INCONTEXTFEATS"
swSelMATEGROUPS"MATEGROUPS"
swSelSKETCHTEXT

"SKETCHTEXT"

swSelSFSYMBOLS 

"SFSYMBOL"ISFSymbol
swSelDATUMTAGS "DATUMTAG"IDatumTag
swSelCOMPPATTERN 

"COMPPATTERN"

swSelWELDS 

"WELD"

IWeldSymbol

swSelCTHREADS 

"CTHREAD"

Feature or ICThread4

ICosmeticThreadFeatureData

swSelDTMTARGS 

"DTMTARG"

IDatumTargetSym
swSelPOINTREFS"POINTREF"
swSelDCABINETS "DCABINET"
swSelEXPLVIEWS 

"EXPLODEDVIEWS"

swSelEXPLSTEPS "EXPLODESTEPS"

swSelEXPLLINES 

"EXPLODELINES"

swSelSILHOUETTES 

"SILHOUETTE"

ISilhouetteEdge

swSelCONFIGURATIONS 

"CONFIGURATIONS"Feature1

IConfiguration

swSelOBJHANDLES 

swSelARROWS

"VIEWARROW"

IProjectionArrow

swSelZONES 

"ZONES"

swSelREFEDGES 

"REFERENCE-EDGE"IEdge

swSelREFFACES 

swSelREFSILHOUETTE 

Feature1

swSelBOMS 

"BOM"
swSelEQNFOLDER "EQNFOLDER"
swSelSKETCHHATCH"SKETCHHATCH"
swSelIMPORTFOLDER "IMPORTFOLDER"
swSelVIEWERHYPERLINK"HYPERLINK"

swSelMIDPOINTS 

swSelCUSTOMSYMBOLS - Obsolete

"CUSTOMSYMBOL"

ICustomSymbol

swSelCOORDSYS 

"COORDSYS"
swSelDATUMLINES "REFLINE"

swSelROUTECURVES 

swSelBOMTEMPS

"BOMTEMP"

swSelROUTEPOINTS 

"ROUTEPOINT"
swSelCONNECTIONPOINTS "CONNECTIONPOINT"
swSelROUTESWEEPS 

swSelPOSGROUP 

"POSGROUP"
swSelBROWSERITEM "BROWSERITEM"
swSelFABRICATEDROUTE

"ROUTEFABRICATED"

swSelSKETCHPOINTFEAT  "SKETCHPOINTFEAT"

swSelCOMPSDONTOVERRIDE

swSelLIGHTS

"LIGHTS"

swSelWIREBODIES

swSelSURFACEBODIES

"SURFACEBODY"
swSelSOLIDBODIES"SOLIDBODY"
swSelFRAMEPOINT"FRAMEPOINT"

swSelSURFBODIESFIRST

swSelMANIPULATORS

"MANIPULATOR"
swSelPICTUREBODIES"PICTURE BODY"

swSelSOLIDBODIESFIRST

swSelLEADERS

"LEADER"

swSelSKETCHBITMAP

"SKETCHBITMAP"
swSelDOWELSYMS"DOWLELSYM"

IDowelSymbol

swSelEXTSKETCHTEXT

"EXTSKETCHTEXT"

swSelBLOCKINST - Obsolete

"BLOCKINST"IBlockInstance

swSelFTRFOLDER

"FTRFOLDER"
swSelSKETCHREGION"SKETCHREGION"

swSelSKETCHCONTOUR

"SKETCHCONTOUR"
swSelBOMFEATURES

"BOMFEATURE"

swSelANNOTATIONTABLES

"ANNOTATIONTABLES"
  • ITableAnnotation
  • ITitleBlockTableAnnotation

swSelBLOCKDEF

"BLOCKDEF"
swSelCENTERMARKSYMS"CENTERMARKSYMS"
swSelSIMULATION"SIMULATION"
swSelSIMELEMENT

"SIMULATION_ELEMENT"

swSelCENTERLINES"CENTERLINE"
swSelHOLETABLEFEATS"HOLETABLE"IHoleTable
swSelHOLETABLEAXES"HOLETABLEAXIS"

swSelWELDMENT

"WELDMENT"

swSelSUBWELDFOLDER

"SUBWELDMENT"
swSelEXCLUDEMANIPULATORS

swSelREVISIONTABLE

"REVISIONTABLE"

swSelSUBSKETCHINST"SUBSKETCHINST"

ISketchBlockInstance

swSelWELDMENTTABLEFEATS"WELDMENTTABLE"IWeldmentCutListFeature
swSelBODYFOLDER"BDYFOLDER"IBodyFolder
swSelREVISIONTABLEFEAT"REVISIONTABLEFEAT"
swSelSUBATOMFOLDER

swSelWELDBEADS3

"WELDBEADS"

swSelEMBEDLINKDOC"EMBEDLINKDOC"
swSelJOURNAL"JOURNAL"
swSelDOCSFOLDER

"DOCSFOLDER"

swSelCOMMENTSFOLDER"COMMENTSFOLDER"

ICommentFolder

swSelCOMMENT

"COMMENT"IComment
swSelCAMERAS"CAMERAS"Feature1ICamera
swSelMATESUPPLEMENT"MATESUPPLEMENT"IMateLoadReference
swSelANNOTATIONVIEW

"ANNVIEW"

swSelGENERALTABLEFEAT"GENERALTABLEFEAT"
swSelSUBSKETCHDEF"SUBSKETCHDEF"ISketchBlockDefinition
swSelDISPLAYSTATE "VISUALSTATE"
swSelTITLEBLOCK"TITLEBLOCK"

ITitleBlock

swSelEVERYTHING  "EVERYTHING"
swSelLOCATIONS "LOCATIONS"
swSelUNSUPPORTED

 "UNSUPPORTED"

swSelSWIFTANNOTATIONS"SWIFTANN"Feature1IDimXpertAnnotation
swSelSWIFTFEATURES"SWIFTFEATURE"Feature1IDimXpertFeature
swSelSWIFTSCHEMA"SWIFTSCHEMA"IDimXpertManager 
swSelTITLEBLOCKTABLEFEAT"TITLEBLOCKTABLEFEAT"ITitleBlockTableFeature 
swSelOBJGROUP"OBJGROUP" 
swSelCOSMETICWELDS"COSMETICWELDS"

swSelMAGNETICLINES

"MAGNETICLINES"
swSelSELECTIONSETFOLDER"SELECTIONSETFOLDER"

ISelectionSetFolder

swSelSELECTIONSETNODE"SUBSELECTIONSETNODE"

swSelPUNCHTABLEFEATS"PUNCHTABLE"IPunchTable
swSelHOLESERIES"HOLESERIES"

1 Use Feature::GetSpecificFeature2 to get the interface shown in the fourth column.

2 Use QueryInterface to get the interface shown in the fourth column.

3 Use swSelWELDBEADS to select caterpillar or end-treatment weld beads in drawings. To select fillet bead features, use "BODYFEATURE" with IModelDocExtension::SelectByID2.  

4 Feature or CThread depending on whether you select the cosmetic thread feature in a part or assembly or you select the cosmetic thread annotation in a drawing.

这篇关于C# Solidworks二次开发:枚举应用实战(第六讲)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/943747

相关文章

Java枚举类实现Key-Value映射的多种实现方式

《Java枚举类实现Key-Value映射的多种实现方式》在Java开发中,枚举(Enum)是一种特殊的类,本文将详细介绍Java枚举类实现key-value映射的多种方式,有需要的小伙伴可以根据需要... 目录前言一、基础实现方式1.1 为枚举添加属性和构造方法二、http://www.cppcns.co

使用C#代码在PDF文档中添加、删除和替换图片

《使用C#代码在PDF文档中添加、删除和替换图片》在当今数字化文档处理场景中,动态操作PDF文档中的图像已成为企业级应用开发的核心需求之一,本文将介绍如何在.NET平台使用C#代码在PDF文档中添加、... 目录引言用C#添加图片到PDF文档用C#删除PDF文档中的图片用C#替换PDF文档中的图片引言在当

详解C#如何提取PDF文档中的图片

《详解C#如何提取PDF文档中的图片》提取图片可以将这些图像资源进行单独保存,方便后续在不同的项目中使用,下面我们就来看看如何使用C#通过代码从PDF文档中提取图片吧... 当 PDF 文件中包含有价值的图片,如艺术画作、设计素材、报告图表等,提取图片可以将这些图像资源进行单独保存,方便后续在不同的项目中使

C#使用SQLite进行大数据量高效处理的代码示例

《C#使用SQLite进行大数据量高效处理的代码示例》在软件开发中,高效处理大数据量是一个常见且具有挑战性的任务,SQLite因其零配置、嵌入式、跨平台的特性,成为许多开发者的首选数据库,本文将深入探... 目录前言准备工作数据实体核心技术批量插入:从乌龟到猎豹的蜕变分页查询:加载百万数据异步处理:拒绝界面

C#数据结构之字符串(string)详解

《C#数据结构之字符串(string)详解》:本文主要介绍C#数据结构之字符串(string),具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录转义字符序列字符串的创建字符串的声明null字符串与空字符串重复单字符字符串的构造字符串的属性和常用方法属性常用方法总结摘

C#如何动态创建Label,及动态label事件

《C#如何动态创建Label,及动态label事件》:本文主要介绍C#如何动态创建Label,及动态label事件,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录C#如何动态创建Label,及动态label事件第一点:switch中的生成我们的label事件接着,

Spring Boot + MyBatis Plus 高效开发实战从入门到进阶优化(推荐)

《SpringBoot+MyBatisPlus高效开发实战从入门到进阶优化(推荐)》本文将详细介绍SpringBoot+MyBatisPlus的完整开发流程,并深入剖析分页查询、批量操作、动... 目录Spring Boot + MyBATis Plus 高效开发实战:从入门到进阶优化1. MyBatis

MyBatis 动态 SQL 优化之标签的实战与技巧(常见用法)

《MyBatis动态SQL优化之标签的实战与技巧(常见用法)》本文通过详细的示例和实际应用场景,介绍了如何有效利用这些标签来优化MyBatis配置,提升开发效率,确保SQL的高效执行和安全性,感... 目录动态SQL详解一、动态SQL的核心概念1.1 什么是动态SQL?1.2 动态SQL的优点1.3 动态S

C# WinForms存储过程操作数据库的实例讲解

《C#WinForms存储过程操作数据库的实例讲解》:本文主要介绍C#WinForms存储过程操作数据库的实例,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、存储过程基础二、C# 调用流程1. 数据库连接配置2. 执行存储过程(增删改)3. 查询数据三、事务处

Pandas使用SQLite3实战

《Pandas使用SQLite3实战》本文主要介绍了Pandas使用SQLite3实战,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学... 目录1 环境准备2 从 SQLite3VlfrWQzgt 读取数据到 DataFrame基础用法:读