- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
at first sorry for my bad English. I found an ilogic who is working very well but I have one problem:
It is changing my material in librarys too. I like to change code in this way that it changes only parts which are in the
folder of the iam. Maybe something with ThisDoc.PathAndFileName(False)?
Here is the Code I use:
For Each ComponentOccurrence In ThisApplication.ActiveDocument.ComponentDefinition.Occurrences
If iProperties.Value ("Custom", "Werkstoff") = "1.4301" Then
If iProperties.MaterialOfComponent (ComponentOccurrence.Name) = "St 37-2" Then
iProperties.MaterialOfComponent (ComponentOccurrence.Name) = "1.4301"
End If
End If
If iProperties.Value("Custom", "Werkstoff") = "St 37-2" Then
If iProperties.MaterialOfComponent (ComponentOccurrence.Name) = "1.4301" Then
iProperties.MaterialOfComponent(ComponentOccurrence.Name) = "St 37-2"
End If
End If
Next
--------------------------------
Best Regards
Michael
Solved! Go to Solution.