Struggling with swAddMateError_e Enumeration in Python
Posted: Thu Sep 23, 2021 11:07 am
Greetings all,
I got a wild hair to apply my rudimentary python skills to write macros for SolidWorks.
I'm making good progress. Some interesting gyrations to jump through, but I'm establishing a good book of knowledge to use in the future.
But I'm hamstrung on the longstatus parameter used in AddMate3 https://help.solidworks.com/2015/englis ... Mate3.html
In the VBA script that I'm using as a go-by, longstatus is defined as:
Dim longstatus as SwConst.swAddMateError_e
I've created a python class with the swAddMateError_e enum, to use in defining longstatus, but every variation I use gets kicked back.
I've tried to set longstatus to 0, which technically should work, but get a type mismatch.
Help!
Bently
I got a wild hair to apply my rudimentary python skills to write macros for SolidWorks.
I'm making good progress. Some interesting gyrations to jump through, but I'm establishing a good book of knowledge to use in the future.
But I'm hamstrung on the longstatus parameter used in AddMate3 https://help.solidworks.com/2015/englis ... Mate3.html
In the VBA script that I'm using as a go-by, longstatus is defined as:
Dim longstatus as SwConst.swAddMateError_e
I've created a python class with the swAddMateError_e enum, to use in defining longstatus, but every variation I use gets kicked back.
I've tried to set longstatus to 0, which technically should work, but get a type mismatch.
Help!
Bently