Example #1
0
        /// <summary>
        /// Retrieves the position of the node
        /// </summary>
        /// <param name="note">Dynamo.Graph.Nodes.NodeModel</param>
        /// <returns name="position">string</returns>
        /// <search>
        /// dynamo, api, note, model, position, x, y
        /// </search>
        public static string Position(Dynamo.Graph.Notes.NoteModel note)
        {
            double x = note.CenterX;
            double y = note.CenterY;

            string pos = "x = " + x.ToString() + ", y = " + y.ToString();

            return(pos);
        }
Example #2
0
 /// <summary>
 /// Retrieves the text of the note
 /// </summary>
 /// <param name="note">Dynamo.Graph.Notes.NoteModel</param>
 /// <returns name="text">string</returns>
 /// <search>
 /// dynamo, api, note, text, string
 /// </search>
 public static string Text(Dynamo.Graph.Notes.NoteModel note)
 {
     return(note.Text);
 }
Example #3
0
 /// <summary>
 /// Retrieves the guid of the note
 /// </summary>
 /// <param name="note">Dynamo.Graph.Notes.NoteModel</param>
 /// <returns name="guid">guid</returns>
 /// <search>
 /// dynamo, api, note, model, guid
 /// </search>
 public static Guid GUID(Dynamo.Graph.Notes.NoteModel note)
 {
     return(note.GUID);
 }