Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Known Issues - Viewpoint Tools    Don't use hotspot text with inch marks

Moderators: e_phoenix13
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Junior Member
Posted
Hi, I'm new to this forum and to these tools. I hate to tell you how long it took me to figure this one out. I edited an MTX file in SceneBuilder and used hotspot text giving dimensions of an object with inch marks as part of the string. Saving the MTX file I kept getting errors, crashing the program, then the MTX file would not reopen (error=couldn't parse). The parser error referred to a line number, I checked it in a text editor and found that the double quotes (inch marks) were confused with the double quotes around the tags. Any way around this?
 
Posts: 1 | Registered: January 24, 2003Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Inch marks, or " are one of the building blocks of the code. If you open an MTX file in notepad you'll see this. Adding " to anything will break the code in the wrong spot.
 
Posts: 37 | Registered: May 23, 2003Reply With QuoteEdit or Delete MessageReport This Post
<viewpointED>
Posted
If you need to display special characters as hotspot text then use the ASCII character code. For instance, feet would be written as
& # 3 9 ;
and inches would be wrritten as
& # 3 4 ;
. You'll have to remove the space of course, I just added them to get the code to display as code on this forum.
--ED--
 
Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

Viewpoint Developer Central    Viewpoint Forums    Viewpoint Forums  Hop To Forum Categories  Known Issues - Viewpoint Tools    Don't use hotspot text with inch marks