SlideShare uma empresa Scribd logo
1 de 3
Baixar para ler offline
SOLIDWORKS Tutorials for Beginners - Introduction to
SOLIDWORKS VBA
Welcome. In this article in our SOLIDWORKS tutorials for beginner’s series, I'm going
to talk about some basics of working with SOLIDWORKS VBA/API. You might be
wondering what the heck these terms mean. VBA stands for Visual Basic for
Applications. API stands for Application Programming Interface.
Rather than talking about what this is at first, because I know you might just tune it all
out, just like Charlie Brown tunes out his adults ("blah blah blah), let's get right into it.
With SOLIDWORKS open, if you go to Tools on the standard menu strip, and scroll
down to Macro, then select New. A Save As dialog window opens; once you enter a
name and click Save (you can enter your own unique, descriptive name--this is what I
recommend) or just accept the default name, Macro1), you'll be in what's called the VBA
environment. This looks different than SOLIDWORKS, huh? You've just entered Visual
Basic for Applications. This is based on a Microsoft programming language, Visual
Basic.
If you've never used VB before, it might seem intimidating, but in reality it's actually
pretty simple once you wrap your mind around the basic concepts. Tremble not; you isn’t
goanna be doing any raw programming! You're just manipulating pre-programmed
objects. (For this reason, hard core programmers think Visual Basic isn't a serious
language, but as you can see, if you're in the VBA for SOLIDWORKS right now, it looks
real enough!)
Visual Basic is based on a language called Basic. This is a programming language
developed in the 1960s as a kind of learning language. In the 1990s, Microsoft released
the first Visual Basic for Applications for Windows-based applications. Today's Visual
Basic doesn't have much in common with its original Basic language, but Basic is in fact
its true foundation.
VBA works for many applications--Inventor, SOLIDWORKS, Microsoft Access,
Microsoft Excel and more. This is where you write some code to make custom changes to
the application, changes that you can't make by modifying the pre-programmed options in
the Options dialog window of the various software. So, in a nutshell, VBA is where you
tweak not your model, but the SOLIDWORKS software itself, to make it work for you
even better.
What is so great about VBA? Do you need this if you're just trying to do design work in
SOLIDWORKS? Maybe not, right now. But you'll find that with a small command of
VBA you can create a much more customized environment for your modeling work--
something that can help you speed up your work and increase your productivity. For
example, you can create your own custom tools, your own custom dialog windows and
options boxes etc.
You work in the Visual Basic for Applications in your SOLIDWORKS software, and it
connects to the SOLIDWORKS API (the application programming interface) to make the
changes you want. This concludes our overview of what VBA means; stay tuned for our
next installment of the SOLIDWORKS tutorials for beginner’s series where we'll learn
about creating and running macros, essentially your building block, and a little program
that you "write" simply by asking VBA to record your movements on screen.
About US:-
Video-tutorials.net is a family-based business that provides high quality video tutorial
training in Computer Aided Design (CAD) software like Solidworks Tutorials, CATIA
Tutorials, and Autodesk Inventor Tutorials and Autodesk AutoCAD tutorials.
Contact details:-
Video-Tutorials.Net
132-250 Shawville Blvd #136
Calgary, Alberta, Canada.
Zipcode-T2Y 2Z7
Tel- 403.254.9622
Email- info@video-tutorials.net

Mais conteúdo relacionado

Destaque

Programming inexcelvba anintroduction
Programming inexcelvba anintroductionProgramming inexcelvba anintroduction
Programming inexcelvba anintroductionOfun Emma
 
E learning excel vba programming lesson 1
E learning excel vba programming  lesson 1E learning excel vba programming  lesson 1
E learning excel vba programming lesson 1Vijay Perepa
 
Intro macros in Excel 2007
Intro macros in Excel 2007Intro macros in Excel 2007
Intro macros in Excel 2007Hasrudin Tazep
 
Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)
Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)
Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)Trung tâm Advance Cad
 
Belajar macro excel 2007
Belajar macro excel 2007Belajar macro excel 2007
Belajar macro excel 2007doni sandra
 
Manual solidworks
Manual solidworksManual solidworks
Manual solidworksmonique33
 
Solid works practicas esime azcapo
Solid works practicas esime azcapoSolid works practicas esime azcapo
Solid works practicas esime azcapoSicea Ingenieria
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programmingRoger Argarin
 
SW 2013 beginners guide
SW 2013 beginners guideSW 2013 beginners guide
SW 2013 beginners guideRahman Hakim
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosExcel
 

Destaque (14)

Programming inexcelvba anintroduction
Programming inexcelvba anintroductionProgramming inexcelvba anintroduction
Programming inexcelvba anintroduction
 
Giáo trình phay solidcam
Giáo trình phay solidcamGiáo trình phay solidcam
Giáo trình phay solidcam
 
E learning excel vba programming lesson 1
E learning excel vba programming  lesson 1E learning excel vba programming  lesson 1
E learning excel vba programming lesson 1
 
SOLIDWORKS 2015 Overview
SOLIDWORKS 2015 OverviewSOLIDWORKS 2015 Overview
SOLIDWORKS 2015 Overview
 
Intro macros in Excel 2007
Intro macros in Excel 2007Intro macros in Excel 2007
Intro macros in Excel 2007
 
Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)
Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)
Thiết kế kim loại tấm -Sheetmetal Solidworks (demo)
 
Belajar macro excel 2007
Belajar macro excel 2007Belajar macro excel 2007
Belajar macro excel 2007
 
Manual solidworks
Manual solidworksManual solidworks
Manual solidworks
 
Excel ch10
Excel ch10Excel ch10
Excel ch10
 
Solid works practicas esime azcapo
Solid works practicas esime azcapoSolid works practicas esime azcapo
Solid works practicas esime azcapo
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
SW 2013 beginners guide
SW 2013 beginners guideSW 2013 beginners guide
SW 2013 beginners guide
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Introduction To Excel 2007 Macros
Introduction To Excel 2007 MacrosIntroduction To Excel 2007 Macros
Introduction To Excel 2007 Macros
 

Último

FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 

Último (20)

FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 

Solidworks tutorials for beginners introduction to solidworks vba

  • 1. SOLIDWORKS Tutorials for Beginners - Introduction to SOLIDWORKS VBA Welcome. In this article in our SOLIDWORKS tutorials for beginner’s series, I'm going to talk about some basics of working with SOLIDWORKS VBA/API. You might be wondering what the heck these terms mean. VBA stands for Visual Basic for Applications. API stands for Application Programming Interface. Rather than talking about what this is at first, because I know you might just tune it all out, just like Charlie Brown tunes out his adults ("blah blah blah), let's get right into it. With SOLIDWORKS open, if you go to Tools on the standard menu strip, and scroll down to Macro, then select New. A Save As dialog window opens; once you enter a name and click Save (you can enter your own unique, descriptive name--this is what I recommend) or just accept the default name, Macro1), you'll be in what's called the VBA environment. This looks different than SOLIDWORKS, huh? You've just entered Visual Basic for Applications. This is based on a Microsoft programming language, Visual Basic. If you've never used VB before, it might seem intimidating, but in reality it's actually pretty simple once you wrap your mind around the basic concepts. Tremble not; you isn’t goanna be doing any raw programming! You're just manipulating pre-programmed objects. (For this reason, hard core programmers think Visual Basic isn't a serious
  • 2. language, but as you can see, if you're in the VBA for SOLIDWORKS right now, it looks real enough!) Visual Basic is based on a language called Basic. This is a programming language developed in the 1960s as a kind of learning language. In the 1990s, Microsoft released the first Visual Basic for Applications for Windows-based applications. Today's Visual Basic doesn't have much in common with its original Basic language, but Basic is in fact its true foundation. VBA works for many applications--Inventor, SOLIDWORKS, Microsoft Access, Microsoft Excel and more. This is where you write some code to make custom changes to the application, changes that you can't make by modifying the pre-programmed options in the Options dialog window of the various software. So, in a nutshell, VBA is where you tweak not your model, but the SOLIDWORKS software itself, to make it work for you even better. What is so great about VBA? Do you need this if you're just trying to do design work in SOLIDWORKS? Maybe not, right now. But you'll find that with a small command of VBA you can create a much more customized environment for your modeling work-- something that can help you speed up your work and increase your productivity. For example, you can create your own custom tools, your own custom dialog windows and options boxes etc.
  • 3. You work in the Visual Basic for Applications in your SOLIDWORKS software, and it connects to the SOLIDWORKS API (the application programming interface) to make the changes you want. This concludes our overview of what VBA means; stay tuned for our next installment of the SOLIDWORKS tutorials for beginner’s series where we'll learn about creating and running macros, essentially your building block, and a little program that you "write" simply by asking VBA to record your movements on screen. About US:- Video-tutorials.net is a family-based business that provides high quality video tutorial training in Computer Aided Design (CAD) software like Solidworks Tutorials, CATIA Tutorials, and Autodesk Inventor Tutorials and Autodesk AutoCAD tutorials. Contact details:- Video-Tutorials.Net 132-250 Shawville Blvd #136 Calgary, Alberta, Canada. Zipcode-T2Y 2Z7 Tel- 403.254.9622 Email- info@video-tutorials.net