Given a text location, I'd like to use the Doc object's addtext method to a "normal" space. I say normal space because I can't actually figure out what type of space FrameMaker is using by default and I haven't been able to find any documentation about it either. My understanding is that a space is a special character, which means I have to pass the addtext method a hexadecimal representation of the character.
So I looked for the characer set PDF for framemaker 10. I could only find one for FrameMaker 9, which is available here: http://help.adobe.com/en_US/FrameMaker/9.0/CharacterSets/character_sets.pdf. According to that PDF, the following spaces have a hexidecimal representation.
I have tried them all. This is an example:
While the method successfully adds a space, the space is not the normal spacing that occurs when I press the space bar. That is the spacing I want the AddText method to add in. Is there another space with a hex representation I need to pass in?
Normal spaces are not special characters. Just use vDoc.AddText(vTextLoc,' ')
Yes, that was the first thing I tried. No space gets added all. Are you seeing something different? Can you actually get this to work?
To expland slightly, I am trying to fix the problem here:
To address the above problem, I tried to add that space and nothing got added but if I used one of the hex codes then a space was added.
It works as described in my simple test file. Possibly the combination with entering a new variable after first clearing the text is causing some problems. Can you determine the end offset of the variable and make sure there is a space at that location, and otherwise add one, after replacing the text with the variable ?