Hi.
I have used this iLogic codes.
To get iProperties from model to drawing.
If (ThisDrawing.ModelDocument Is Nothing) Then Return
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
'read the values from the Custom iProperties in the part file
'and apply them to the Custom iProperties with the same name in the drawing
iProperties.Value("Custom", "Header 1") = iProperties.Value(modelName, "Custom", "Header 1")
iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")
iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")
iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")
And this to send iProperties from the drawing to the model.
' Set a reference to the drawing document.
' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
' Set a reference to the active sheet.
Dim oSheet As Sheet
oSheet = oDrawDoc.ActiveSheet
'Get the name Of the first model in the drawing
modelName = IO.Path.GetFileName(ThisDrawing.ModelDocument.FullFileName)
iProperties.Value(modelName, "Custom", "Header 1") = iProperties.Value("Custom", "Header 1")
iProperties.Value(modelName, "Project", "Part Number")=iProperties.Value("Project", "Part Number")
iProperties.Value(modelName, "Project", "Project")=iProperties.Value("Project", "Project")
iProperties.Value(modelName, "Summary", "Title")=iProperties.Value("Summary", "Title")
iLogicVb.UpdateWhenDone = True
Easy to add or remove iProperties you want to sync.
//Jesper
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.