i've downloaded the vb.net addin template from:
http://www.solidworks.com/pages/services/APIDownloads.html
and opened it up fine. it works great, and shows how my macro can now look... but...
the menus disappear when you open an assembly, which is the one time i need them to appear. i can't...
The problem i had was that a main assembly's configuration can only determine whether or not a subassembly is suppressed, and which config of the subassembly is referenced.
it can't adjust the suppression of individual parts in a subassembly.
Found it. in each configuration (main), right-clicking on the subassembly and selecting properties allows you to choose which configuration (sub) is associated with the active configuration (main)...
in case anyone else wanted to read...
sorry bout the subject.
I'm working with pipe fabrications in subassemblies within a main assembly. the problem i'm having is that my configurations in the main assembly can only determine wether or not each entire subassembly is suppressed. if i want only half of a subassembly to show in one...
I'm traversing the feature tree looking for parts, because they're organised in folders. the problem i'm having is the fact that all folders contain an assembly. i can find assemblies, but can't get the parts they contain. if i have a variable (as feature) that is the assembly, how do i open the...
Here's a zip file from solidworks. i don't know why i didn't find this earlier, and now we've restructured the drawings and no longer need the calculated cells, but if anyone else needs some help here, this file includes a nice powerpoint slideshow and some useful programs to cause calculated...
there were quite a few things i tried recording macros for and ended up with a bunch of code that was all 'SelectByID2' lines. i can't remember at the moment if it was all BOM stuff, but it may have been.
i'm quite convinced this isn't built into the API. should be, though.
Also, i've tried recording a macro making the change. all i get (as I usually do) is a program that selects my BOM.
why is the macro recorder such a piece of crap?
i hadn't read that, but i already knew how to do it through those checkboxes... but i can't find any reference to sum cells or total cells in the object browser, or searching in the API help.
could it be part of another reference that i don't have installed? how would i know what i need...
I suppose thats the only way to do it. seems rediculous though, that you can't just change the property of the cell to 'sum/total' like you can when viewing a drawing. it would be so easy to program....
I've got code that creates a drawing, inserts views, and inserts a table (not excel based) and adds a row to the bottom... now i need it to add a sum/total cell to a column, but i can't find how, or if it's even possible...
anyone done this successfully before?
first, i set the worksheet pointers to Nothing, then set the WB.saved = True (to avoid save confirmation when closing), close the workbook, set that to Nothing, then xlapp.quit, set that to Nothing, then go through the SW references i've created doing the same...
i'm not clear on the different...