Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by pyroclasm

  1. pyroclasm

    SW API - Get Next Component (only visible ones)?

    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...
  2. pyroclasm

    SW API - Get Next Component (only visible ones)?

    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...
  3. pyroclasm

    SW API - Get Next Component (only visible ones)?

    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...
  4. pyroclasm

    SW API - FeatureManager GoTo?

    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...
  5. pyroclasm

    SW API - FeatureManager GoTo?

    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...
  6. pyroclasm

    SW API - FeatureManager GoTo?

    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...
  7. pyroclasm

    SW API - FeatureManager GoTo?

    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...
  8. pyroclasm

    SW API - How do I Remove All Properties in a Document?

    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
  9. pyroclasm

    SW API - How do I Remove All Properties in a Document?

    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...
  10. pyroclasm

    SW API - How do I Remove All Properties in a Document?

    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
  11. pyroclasm

    SW API - How do I Remove All Properties in a Document?

    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...
  12. pyroclasm

    SW API - How do I Remove All Properties in a Document?

    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...
  13. pyroclasm

    SW API - How do I use GetNext?

    Oh, that makes sense. Thanks TheTick.
  14. pyroclasm

    SW API - How do I use GetNext?

    Thanks again SolidAir for all your help. It works now.
  15. pyroclasm

    SW API - How do I use GetNext?

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

Part and Inventory Search