Book a Demo

Author Topic: issues by adding notes through API  (Read 2925 times)

PY

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • I love Python
    • View Profile
issues by adding notes through API
« on: September 12, 2007, 04:50:21 am »
Hello again,

I have some strings that include line breaks, like:
strNote='my note' + '\n' + 'more notes'

I add a Note to an Element using the API as:
aNode.Element.Notes=strNotes

in Project Browser on the notes Windows I see no effect on the display, the new line is not there.

I am using EA 7.0.814 and API via Python

by older EA-versions instead of '\n' we find a '|' and no new line.

why doesn't '\n' work? it will work in later versions?

using '\r' didn't bring better results. just an strange combination of \r\n ..\t could do the job somehow.

thanks for any help in advance,

Regards,

Pablo

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: issues by adding notes through API
« Reply #1 on: September 12, 2007, 12:55:53 pm »
The strange combination of \r\n is needed because EA is a windows application using windows controls that need the standard windows newline (ie. \r\n).