SlideShare una empresa de Scribd logo
1 de 3
Descargar para leer sin conexión
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

Más contenido relacionado

Destacado

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
 

Destacado (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

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

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