Message 1 of 24
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all ,
I have one code to count the number of holes in the whole assembly , but I need to also sort the holes based on the dia.
for example 10 mm = # 100
12 mm = # 50
and so on , so can Count the fasteners based on these details.
holes counting rule .
'To run external rule for all sheet metal parts Dim aDoc As AssemblyDocument aDoc = ThisApplication.ActiveDocument Dim iDoc As Document For Each iDoc In aDoc.AllReferencedDocuments If iDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then auto = iLogicVb.Automation auto.RunExternalRule(iDoc, ”Hole”) iDoc.Close() End If Next iLogicVb.UpdateWhenDone = True
thanks in advance.
Solved! Go to Solution.