Hi @htkim43EPL. I suppose that if you wanted to push this same setting to every other document that is referenced within the main assembly, you could use something like the following iLogic example, which iterates through each referenced document in the main assemblies 'AllReferencedDocuments' which extends to every level of the assembly. You could give this a try, and see if it does what you want.
If ThisDoc.Document.DocumentType <> DocumentTypeEnum.kAssemblyDocumentObject Then
MsgBox("An Assembly Document must be active for this rule to work. Exiting.", vbCritical, "")
Exit Sub
End If
Dim oADoc As AssemblyDocument = ThisDoc.Document
Dim oRefDocs As DocumentsEnumerator = oADoc.AllReferencedDocuments
For Each oRefDoc As Document In oRefDocs
Dim oMSettings As ModelingSettings = Nothing
If oRefDoc.DocumentType = DocumentTypeEnum.kAssemblyDocumentObject Then
Dim oRefADoc As AssemblyDocument = oRefDoc
oMSettings = oRefADoc.ModelingSettings
ElseIf oRefDoc.DocumentType = DocumentTypeEnum.kPartDocumentObject Then
Dim oRefPDoc As PartDocument = oRefDoc
oMSettings = oRefPDoc.ModelingSettings
End If
If IsNothing(oMSettings) Then Continue For
If oMSettings.TappedHoleDiameter <> ModelDiameterFromThreadEnum.kThreadTapDrillDiameter Then
Try
oMSettings.TappedHoleDiameter = ModelDiameterFromThreadEnum.kThreadTapDrillDiameter
Catch
End Try
End If
If oRefDoc.RequiresUpdate Then oRefDoc.Update2(True)
Next
If oADoc.RequiresUpdate Then oADoc.Update2(True)
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.
Wesley Crihfield

(Not an Autodesk Employee)