Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CustomTable cells with multiline contents

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
oransen
358 Views, 2 Replies

CustomTable cells with multiline contents

Manually you can edit the cell of a custom table in an IDW and put a carriage return in, and the cell shows the two lines.

If you put a \n or \r in the string of a C++ call to...

 

pCell->put_Value ("1st line\n2nd line")

 

...the \n is removed and the whole of the text is put on one line.

So manually it works, but I can't find out programatically how to do it. Is there a special code which says "new line in this cell"?

Another point is that if the string does contain a \n or \r then the height of the columns changes, even though the string stays one line.


2 REPLIES 2
Message 2 of 3
xiaodong_liang
in reply to: oransen

Hi, I tried in VBA with vbCrLf, it can work. So in theory, it can also support ,multi-lines with C++ Have you tried with /r/n together. This is the equivalent token I know.
Message 3 of 3
oransen
in reply to: xiaodong_liang

Magic! \r\n in the C++ string gives me the new line in an individual custom table cell. Thanks!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report