I do this quite a bit myself with self-generating part descriptions using iLogic.  The trick is to concatenate your text together and the command syntax can get you if you're not familiar with it.  If you have a carriage return, you can't have anything interrupting the concatenation, not even a remarked line.  Use the "&" symbol as the concatenate (join) command.  For example:
 
This works:
iProperties.Value("Project", "Description") = "My(Part)Is " &
Length &    'Length is a variable somewhere
chr(34) &
"long"
and would produce a result of:      My(PartIs) 12" long.
 
However this wouldn't work:
iProperties.Value("Project", "Description") = "MyPartIs " &
'Length is a variable somewhere
Length &
chr(34) &
"long"
 
The remarked line "   'Length is a variable somewhere   "  interrupts the sequence as it's on a new line, but works just fine at the end of a line.
 
Placing your special characters within the quotes or using the chr(?) feature works just great.
 
Good luck!
 
					
				
			
			
				
	Autodesk Inventor Certified Professional
