Twullf
Mechanical
- Jan 24, 2012
- 196
I am modifying an existing automation. I simply wish to select the note and change its color. Current note creation code reads:
I wish to change the color using the following code:
I need to get the previously created note set as an Annotations.Note so I can reference it as an object.
Any help would be greatly appreciated.
Code:
ufs.Drf.CreateNote( 1, RootLineNote, RootLineNotePt, 1, TheNote )
Code:
Dim displayModification1 As DisplayModification
displayModification1 = theSession.DisplayManager.NewDisplayModification()
displayModification1.ApplyToAllFaces = False
displayModification1.ApplyToOwningParts = False
displayModification1.NewColor = 108
Dim objects1(0) As DisplayableObject
Dim note1 As Annotations.Note = CType(workPart.FindObject("ENTITY 25 25 1"), Annotations.Note)
objects1(0) = note1
displayModification1.Apply(objects1)
displayModification1.Dispose()
I need to get the previously created note set as an Annotations.Note so I can reference it as an object.
Any help would be greatly appreciated.