I'm looking to find where the insertion point of a macro is stored. I've gone through the SQLite database of the macro and I can't find a record for it. I've also looked into the meta data on the .ewg file and can't find it either. There has to be a location where it stores the x,y coordinates of the insertion point somewhere.
I maintain nearly a couple thousand macros that I use with Excel Automation to generate my electrical projects and every time I create a macro with any kind of symbol or wire in it, the insertion point of that macro is in a different spot (I haven't determined exactly what drives the location of the insertion point, I'd love to know that too).
I'd really like to add a command to my add-in that will set the insertion of every macro to 0,0 so that I don't have to open each macro after its created and set it manually.
I'm using Solidworks Electrical 2020 SP4.
Interesting concept. From experience, every macro has an insertion point of X0,Y0. The macro ignores insertion points and is stored relative to X0,Y0 of the sheet it was created from. Tell me if I'm wrong.
The solution I use, is to create any Macros from X0,Y0 initially, which saves me from the trouble of editing. This obviously doesn't help you, due to the fact that you have "nearly a couple thousand" macros already.