Component Visibility Macro?

Component Visibility Macro?

Anonymous
Not applicable
368 Views
5 Replies
Message 1 of 6

Component Visibility Macro?

Anonymous
Not applicable
I haven't really touched on this writing Macro stuff but i am in dire need of one that would scan the .iam that i have open on the screen and search all the sub assemblies to the highest level and automatically shut off and turn on the visibility of any .ipt that had a file name starting with BLT. Like BLT-0540. Basically these are all the bolts in my assemblies and if i turn the all off i think i would have better performance in my IDW's. Is it even possible? Any good online material about inventor customization? Running IV7. Thanks for reading J
0 Likes
369 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Is it possible? Sure. Can I write it? Maybe Is there good documentation? Look at the assembly traversal samples provided with IV. Bob S. "Jesse" wrote in message news:40d9ba8e$1_1@newsprd01... > I haven't really touched on this writing Macro stuff but i am in dire > need of one that would scan the .iam that i have open on the screen and > search all the sub assemblies to the highest level and automatically > shut off and turn on the visibility of any .ipt that had a file name > starting with BLT. Like BLT-0540. Basically these are all the bolts in > my assemblies and if i turn the all off i think i would have better > performance in my IDW's. Is it even possible? Any good online material > about inventor customization? Running IV7. > Thanks for reading > J
0 Likes
Message 3 of 6

Anonymous
Not applicable
You could use my KWiKFind tool to search for and select them all, then you just have to RMB Visiblity www.kwikmcad.com -- Kent Keller Autodesk Discussion Forum Facilitator "Jesse" wrote in message news:40d9ba8e$1_1@newsprd01... > I haven't really touched on this writing Macro stuff but i am in dire > need of one that would scan the .iam that i have open on the screen and > search all the sub assemblies to the highest level and automatically > shut off and turn on the visibility of any .ipt that had a file name > starting with BLT. Like BLT-0540. Basically these are all the bolts in > my assemblies and if i turn the all off i think i would have better > performance in my IDW's. Is it even possible? Any good online material > about inventor customization? Running IV7. > Thanks for reading > J
0 Likes
Message 4 of 6

Anonymous
Not applicable
Beauty! Sheer Beauty! That thing works awesome! Thanks man J Kent Keller wrote: > You could use my KWiKFind tool to search for and select them all, then you > just have to RMB Visiblity > > www.kwikmcad.com >
0 Likes
Message 5 of 6

Anonymous
Not applicable
While Kent is extremly helpful, and very useful, I don't know I would go as far as to say he was beautiful! But whatever skids yer tyres I guess! ;-) Brian "Jesse" wrote in message news:40d9d72a_1@newsprd01... > Beauty! Sheer Beauty! > That thing works awesome! > Thanks man > J > > > > Kent Keller wrote: > > You could use my KWiKFind tool to search for and select them all, then you > > just have to RMB Visiblity > > > > www.kwikmcad.com > >
0 Likes
Message 6 of 6

Anonymous
Not applicable
I know this is a bit late, but you can also look at the link "VBA & Inventor API Introduction" at www.autodesk.com/developinventor. The second example in this document does almost exactly what you're asking for. Instead of it using the file name it uses the display name of the occurrence, (which usually is the same as the filename). You could change it to use the filename only by changing the line If UCase(oOccurrence.Name) Like UCase(SearchName) Then to If UCase(oOccurrence.Definition.Document.FullFileName) Like UCase(SearchName) Then -- Brian Ekins Autodesk Consulting Services Discussion Q&A: http://www.autodesk.com/discussion "Jesse" wrote in message news:40d9ba8e$1_1@newsprd01... > I haven't really touched on this writing Macro stuff but i am in dire > need of one that would scan the .iam that i have open on the screen and > search all the sub assemblies to the highest level and automatically > shut off and turn on the visibility of any .ipt that had a file name > starting with BLT. Like BLT-0540. Basically these are all the bolts in > my assemblies and if i turn the all off i think i would have better > performance in my IDW's. Is it even possible? Any good online material > about inventor customization? Running IV7. > Thanks for reading > J
0 Likes