Converting CreateNote to Annotations.Note
Converting CreateNote to Annotations.Note
(OP)
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.





RE: Converting CreateNote to Annotations.Note
Try something like this:
CODE
www.nxjournaling.com
RE: Converting CreateNote to Annotations.Note
Thanks