Hi all.
I'm quite new to the whole macro making stuf and i want to learn. But i need some reading/watching/exercise material
Lets say i don't have any experience in coding. So ik will need to understand the basic. I used en implemented macro's, changed PDF to DXF, changed some custom properties. That's all.
I hope you can help me (and future macro makers)
Resources to learn to understand the code in a macro
- Jaylin Hochstetler
- Posts: 387
- Joined: Sat Mar 13, 2021 8:47 pm
- Location: Michigan
- x 380
- x 355
- Contact:
Re: Resources to learn to understand the code in a macro
I am in the same shoes except I have a little bit of experience programming in Python so I know the basics.
A really good resource I refer to is https://www.codestack.net/ done by @artem Thanks @artem!
Here is the page about VBA coding https://www.codestack.net/visual-basic/.
A really good resource I refer to is https://www.codestack.net/ done by @artem Thanks @artem!
Here is the page about VBA coding https://www.codestack.net/visual-basic/.
A goal is only a wish until backed by a plan.
Re: Resources to learn to understand the code in a macro
So first i see that i posted this in the PDM sup and not the macro sup. Is it possible to relocate this post?
I was looking around here and i came across codestack. looks promising. I certainly will use that.
I was looking around here and i came across codestack. looks promising. I certainly will use that.
- jcapriotti
- Posts: 1868
- Joined: Wed Mar 10, 2021 6:39 pm
- Location: The south
- x 1207
- x 1995
Re: Resources to learn to understand the code in a macro
Channeling @matt for his powers of relocation.
Jason
Re: Resources to learn to understand the code in a macro
One thing that i used a lot when I first started is SOLIDWORKS API HELP
It is quite helpful if you know what function/code you need (which you normally identify using macro recorder
) as well as having some great example
http://help.solidworks.com/2019/english ... 0a8492#Pg0
As you mention you had close to none programming knowledge, you might wan to learn some basic of programming, for example, IF Else statement, loops.
It is quite helpful if you know what function/code you need (which you normally identify using macro recorder
) as well as having some great example
http://help.solidworks.com/2019/english ... 0a8492#Pg0
As you mention you had close to none programming knowledge, you might wan to learn some basic of programming, for example, IF Else statement, loops.
Far too many items in the world are designed, constructed and foisted upon us with no understanding-or even care-for how we will use them.
- mattpeneguy
- Posts: 1386
- Joined: Tue Mar 09, 2021 11:14 am
- x 2489
- x 1899
Re: Resources to learn to understand the code in a macro
There's some great advice so far in this thread. I'll just add that there are a lot of great examples in the help. I'd start there by copying code from simple examples and build on that. Start small and then build up. If you were to start off taking one of @artem's advanced macros and try to analyze it, you may be overwhelmed.Zhen-Wei Tee wrote: ↑Wed May 12, 2021 10:52 am One thing that i used a lot when I first started is SOLIDWORKS API HELP
It is quite helpful if you know what function/code you need (which you normally identify using macro recorder
) as well as having some great example
http://help.solidworks.com/2019/english ... 0a8492#Pg0
As you mention you had close to none programming knowledge, you might wan to learn some basic of programming, for example, IF Else statement, loops.