Message 1 of 7
Differentiate enabled vs disabled parts in Assembly using VBA
Not applicable
08-28-2003
01:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an assembly where I count parts and place them in a database.
Currently, I am counting all parts (by name). I would like to exclude the
parts where the snabled feature is turned off in the specific assembly.
For Each oPCompRef In oPCompRefs
PartNo = Left((oPCompRef.ReferencedFileDescriptor.DisplayName),
Len(oPCompRef.ReferencedFileDescriptor.DisplayName) - 4)
QTY = oPCompRef.ImmediateOccurrences.Count
I am thinking possibly, that changing the QTY variable to ount differently
might be a viable solution. On the other hand, perhaps there is another if
agrument that must be added???
Thanks in advance for your help!
Steve Anderson
Engineer / Documentation Coordinator _
METRO MACHINE & ENGINEERING CORP.
vmail: (952) 259-3683 fax: (952) 937-2374
email: sanders.tec@netzero.com
-- NOTE NEW EMAIL ADDRESS --
Currently, I am counting all parts (by name). I would like to exclude the
parts where the snabled feature is turned off in the specific assembly.
For Each oPCompRef In oPCompRefs
PartNo = Left((oPCompRef.ReferencedFileDescriptor.DisplayName),
Len(oPCompRef.ReferencedFileDescriptor.DisplayName) - 4)
QTY = oPCompRef.ImmediateOccurrences.Count
I am thinking possibly, that changing the QTY variable to ount differently
might be a viable solution. On the other hand, perhaps there is another if
agrument that must be added???
Thanks in advance for your help!
Steve Anderson
Engineer / Documentation Coordinator _
METRO MACHINE & ENGINEERING CORP.
vmail: (952) 259-3683 fax: (952) 937-2374
email: sanders.tec@netzero.com
-- NOTE NEW EMAIL ADDRESS --