Thanks SolidAir for the code example. I knew there had to be a way to see if a Doc is vibile or not in VB. Now I have find a way to impliment that into my code. Hmmm.
Thanks fcsuper, that is great. I reviewed the code quickly, and it doesn't look too complicated, but still advanced for me. But...
I can see making a kind of loop to traverse through the active Assembly, but if you test each component for it's visibility won't that affect the open assembly's components. Like if you test each component in the Assembly and set it's visibility to Hidden, I would think that the components will...
Hey Guys,
I'm working with SW2006. I created a macro on a button in SolidWork to traverse through already open documents, while collecting info on them. My form is actually a lot more complicated than this one, but this form illustrates my problem the easiest. My problem is that when I press...
Ok, I can't do it. I thought it would've been easier because Solidworks already did something like it. I thought I'd ask at least. I don't really need it, it is more like convenience. Man, I feel dumb with code. I guess I really gotta sit down and go through one of those VBA books.
Thanks...
Thanks guys, I found the code, but well...this more complicated than I thought it would be. I'll have to sit down and stare at the code later.
Yeah the feature manager tree does get pretty huge. So richardfoodindustrie, what do you mean "view mate command"?
Thanks again guys for responding...
Hi fcsuper, sorry for the confusion. I was speaking about folders organized in SolidWorks Feature Manager.
Thanks dgowans and TheTick.
Hmmm, macro recording is kinda limited. :P
Can anyone point me to the right Method for this. I looked in the Help Doc under ModelDoc and AssembyDoc but can't...
Hey guys, in large assemblys we put our components and such in folders. So I usually right-click and choose GoTo and do a search for my folder. Is there a way to make that into a button. I tried recording the macro and assigning it to a button, but something must be wrong with the code. Anyone...
Hey guys, Some reason its workin' now at work. SolidAir your code works well, thanks. And TheTick, yours works too now, its a pretty neat macro you have there. The Checkbox is a good idea. I don't know why it had problems the other day.
Thanks again guys for all your help.
Pyroclasm
Hey Guys,
Ok, there must be something wrong with my computer at work. SolidAir, your code works perfectly at home. But at work I get an error, I don't remeber the exact error, but I'll post it tomarrow when I am in the office. Other than that it works well.
Heres my finished code...
Hey TheTick, thanks for the download, but it didn't work. I got an error...
Run-time error '9': Subscript out of range!
I'll sift through and study your code later. I like your web site, very useful.
Thanks,
Pyroclasm
Thanks SolidAir. I put the Length property in only because I'm used to coding in Flash and really didn't know what VBA used to do the same thing. Now I know from your example. I commented out the code because it actually caused a conflict. I don't really understand why, but I think it has to do...
Hey Guys,
I need some help. I have a form with 3 Radio buttons.
Radio Buttions:
1. Document Properties
2. Configuration Properties
3. Both
And one CommandButton, "removeButton" all on a form. My aim is to be able to remove all properties from either Document Properties, Configuration...
Thank you handleman and SolidAir for your help. Sorry I didn't respond right away, I had trouble wrapping my mind around your suggestions trying to figure out how to execute it. I am kinda new to VisualBasic and also just starting to scratch the surface of SW API.
Thank you so much for the...