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!

Macro to Toggle "Show Component Descriptions". 1

Status
Not open for further replies.

felix7502

Mechanical
Mar 24, 2003
222
Does anyone have a 2007 macro to toggle "Show Component Descriptions" from the Tree Display?
Thanks,
Sylvia
 
Replies continue below

Recommended for you

macduff-
I'm with a new company where previous employees created numerous Toolbox items with catalog p/ns. We are in the process of assigning random, consecutive p/ns and obsoleting the originals. Many of our assemblies are unique, and can be revised during a slow time, so we are only replacing on an "as needed" basis. As we obsolete, we created a component description that shows what it was replaced with. This macro allows me to toggle the description on to replace and then off when completed. It also helps when searching through the tree for specific items, because we use random p/ns. It was just inconvenient the othe way, and we will use it multiple times a day. Sylvia
 
Thanks for you reply Sylvia. Sounds like you got your work cutout for you.

Macduff [spin]
Colin Fitzpatrick
Mechanical Design Engineer
Solidworks 2007 SP 5.0
Dell 390 XP Pro SP 2
Intel 2 Duo Core, 2GB RAM
nVida Quadro FX 3450 512 MB

 
handleman:

I've never made much use of the Application keywork in VB. Can you expound? Got any links?

Can't use Google for this. Keywords "VB Application keyword" yields way to much junk.
 
Tick,

I'm not really sure. Maybe it's VBA-specific? Program-specific? I'm pretty much self-taught with all this stuff, so there are some pretty large gaps in my knowledge. I do know that the object returned is dependent on what program is running the VBA. For example, if you're using Excel VBA to drive SolidWorks, you can't use Application.SldWorks to get the SolidWorks object. That's pretty much the limit of my knowledge. In the code I posted, I'm not really using it any differently than you are. I just chained a bunch of objects together.
 
I've had spotty results with object chaining in SW API. That's how I got in the habit of writing variables for each object.
 
Yeah, normally I do as well. I like to get the IntelliSense (I think that's what they call that dropdown box) help eliminate typos. I just wanted to rib ya about line count. :-D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor