Hi.
I have used this in the past. Don't know if it will work.
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("Custom", "Header 2") = iProperties.Value(modelName, "Custom", "Header 2")
iProperties.Value("Custom", "Header 3") = iProperties.Value(modelName, "Custom", "Header 3")
iProperties.Value("Custom", "Remarks") = iProperties.Value(modelName, "Custom", "Remarks")
iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")
iProperties.Value("Summary", "Company")=iProperties.Value(modelName, "Summary", "Company")
iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")
iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")
'iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")
iProperties.Value("Custom", "Header 3") = iProperties.Value("Summary", "Title")
'iProperties.Value("Custom", "Mass") = iProperties.Value(modelName, "Custom", "Mass")
And then I have used this to push iProperties from the drawing back to the 3D model.
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("Custom", "Header 2") = iProperties.Value(modelName, "Custom", "Header 2")
iProperties.Value("Custom", "Header 3") = iProperties.Value(modelName, "Custom", "Header 3")
iProperties.Value("Custom", "Remarks") = iProperties.Value(modelName, "Custom", "Remarks")
iProperties.Value("Project", "Part Number")=iProperties.Value(modelName, "Project", "Part Number")
iProperties.Value("Summary", "Company")=iProperties.Value(modelName, "Summary", "Company")
iProperties.Value("Project", "Project")=iProperties.Value(modelName, "Project", "Project")
iProperties.Value("Summary", "Title")=iProperties.Value(modelName, "Summary", "Title")
'iProperties.Value(modelName, "Project", "Revision Number") = iProperties.Value("Project", "Revision Number")
iProperties.Value("Custom", "Header 3") = iProperties.Value("Summary", "Title")
'iProperties.Value("Custom", "Mass") = iProperties.Value(modelName, "Custom", "Mass")
Then I don't have to go back to the 3D to update the properties.
//Jesper
Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.