Hi,
i have custom iPropertie named partx (ipt level), but i would like value of that propertie to set in Project-Authority on assembly level.
If i have subassembly which consist 2 -5 parts max. then i have to manualy type value for authority. So i want from subassembly to pull custom value of one part (partx).
Can somebody help please
Thank you
Solved! Go to Solution.
Solved by jdkriek. Go to Solution.
Here's what that looks like in iLogic:
Dim oDoc As Document = ThisDoc.Document Dim oRefDoc As Document For Each oRefDoc In oDoc.AllReferencedDocuments If oRefDoc.DocumentType = kPartDocumentObject Then modelName = IO.Path.GetFileName(oRefDoc.FullFileName) Try ' Set the value iProperties.Value("Project", "Authority") = iProperties.Value(modelName, "Custom", "partx") Catch End Try End If Next iLogicVb.UpdateWhenDone = True
You could narrow this down if you know the name of the part each time, otherwise it will just go through all the refrenced documents looking for that property.