Resources to learn to understand the code in a macro

Programming and macros
User avatar
pitbullxp
Posts: 14
Joined: Tue May 11, 2021 3:13 am
Answers: 0
x 4
x 4

Resources to learn to understand the code in a macro

Unread post by pitbullxp »

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) :D
User avatar
Jaylin Hochstetler
Posts: 387
Joined: Sat Mar 13, 2021 8:47 pm
Answers: 4
Location: Michigan
x 379
x 355
Contact:

Re: Resources to learn to understand the code in a macro

Unread post by Jaylin Hochstetler »

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 goal is only a wish until backed by a plan.
User avatar
pitbullxp
Posts: 14
Joined: Tue May 11, 2021 3:13 am
Answers: 0
x 4
x 4

Re: Resources to learn to understand the code in a macro

Unread post by pitbullxp »

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.
User avatar
jcapriotti
Posts: 1810
Joined: Wed Mar 10, 2021 6:39 pm
Answers: 29
Location: The south
x 1158
x 1957

Re: Resources to learn to understand the code in a macro

Unread post by jcapriotti »

Channeling @matt for his powers of relocation.
Jason
User avatar
zwei
Posts: 701
Joined: Mon Mar 15, 2021 9:17 pm
Answers: 18
Location: Malaysia
x 185
x 600

Re: Resources to learn to understand the code in a macro

Unread post by zwei »

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.
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.
User avatar
mattpeneguy
Posts: 1386
Joined: Tue Mar 09, 2021 11:14 am
Answers: 4
x 2489
x 1899

Re: Resources to learn to understand the code in a macro

Unread post by mattpeneguy »

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.
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.
Post Reply