Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Saqib.Iqbal
in reply to: Saqib.Iqbal

Thanks all but I got my ilogic code working which add custom iproperty to assembly and all parts in that assembly, so that in BOM when you add that custom iproperties to the table, all parts/subasys have the information you want.

 

Here is the code, if someone also looking for it like i was:

 

Dim asmDoc As AssemblyDocument = ThisDoc.Document

iProperties.Value(Model, "Custom", "ABAS PN") = iProperties.Value(Model, "Project", "Part Number") &"-"& iProperties.Value(Model, "Project", "Revision Number")

Dim childDoc As Document

For Each childDoc In asmDoc.AllReferencedDocuments

Try

Dim filename = IO.Path.GetFileName(childDoc.FullFileName)

iProperties.Value(filename, "Custom", "ABAS PN") = iProperties.Value(filename, "Project", "Part Number") &"-"& iProperties.Value(filename, "Project", "Revision Number")

Catch
End Try
Next

 

 

If this answer your question, please give it a "KUDOS"