您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 项目/工程管理 > 英文版利用VB进行SW二次开发的初步教程
IntroductiontoProgrammingtheSolidWorksAPIwithVisualBasicJamesLewontinBitwrightSoftware“API”=“ApplicationProgrammingInterface”API=AmeansforcontrollingaSolidWorkssessionTheSolidWorksAPI=TheSolidWorksAPI=MethodsandPropertiesofSolidWorksObjectsVisualBasicisacomputerlanguageformanipulatingobjects.VBOBJECTSYNTAX:DimvariableNameasObjectVBOBJECTSYNTAX:DimvariableNameasObjectVisualBasictypeObject=C++typeLPDISPATCHVBOBJECTSYNTAX:DimvariableNameasObjectVBOBJECTSYNTAX:DimvariableNameasObjectSetvariableName=objectVBOBJECTSYNTAX:DimvariableNameasObjectvariableName.somethingSetvariableName=objectVBOBJECTSYNTAX:DimvariableNameasObjectvariableName.property=newValueSetvariableName=objectVBOBJECTSYNTAX:DimvariableNameasObjectvariableName.property=newValuevalue=variableName.propertySetvariableName=objectVBOBJECTSYNTAX:DimvariableNameasObjectvariableName.property=newValuevalue=variableName.propertyvariableName.method[parms]SetvariableName=objectreturn=variableName.method([parms])VBOBJECTSYNTAX:DimvariableNameasObjectvariableName.property=newValuevalue=variableName.propertyvariableName.method[parms]SetvariableName=objectreturn=variableName.method([parms])VBOBJECTSYNTAX:DimvariableNameasObjectvariableName.property=newValuevalue=variableName.propertyvariableName.method[parms]SetvariableName=objectHowtogetaDispatchpointertoaSolidWorksobject?HowtobreakintotheSolidWorksobjecthierarchy?SetswApp=CreateObject(“SldWorks.Application”)DimswAppasObjectNavigatetheSolidWorksAPIObjectHierarchy:•“DigDown”•Traverse•SelectObjectsIntroductiontoProgrammingtheSolidWorksAPIwithVisualBasicJamesLewontinBitwrightSoftware
本文标题:英文版利用VB进行SW二次开发的初步教程
链接地址:https://www.777doc.com/doc-3882464 .html