Community
Hi fabiangaitan,
Please find below an example that allows you to take an iproperty from the assembly shown in a drawing and copy it into a new iProperty in the drawing.
It takes the part number from the assembly shown in the drawing and creates an iProperty in the drawing called PropertyName to store this value.
The addition of the different items should be done maybe at an assembly level. It is not very clear to me what you exactly were intending to do.
SyntaxEditor Code Snippet
Dim oDrawingDoc As Inventor.DrawingDocument Dim sText As String oDrawingDoc = ThisApplication.ActiveDocument sText = iProperties.Value(ThisDrawing.ModelDocument, "Project", "Part Number") iProperties.Value(oDrawingDoc , "Custom", "PropertyName")= sText
I hope this can help you.