Skip to main content
1-Visitor
September 21, 2016
Question

How to include apostrophe in a restricted value definition file enum list

  • September 21, 2016
  • 2 replies
  • 4347 views

Hi, I have a list in a restricted definition file where one of the values includes an apostrophe (a name list).

The file will not load with the syntax I have tried so far. Can anyone help with how this is accomplished?

The file loads and works well with the list commented out. I have read thru several of the help topics online

but have not seen this covered (or, I am missing something ) .

 

 

Thanks in advance,

Doug

 

Creo Parametric 3.0

Win 7

 


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

2 replies

23-Emerald IV
September 21, 2016

Try delimiting it.

Creo Parametric Help Center

P.S.  I'm sort of questioning the double quotes statement. All the sample files I've seen use single quotes around the string values...

dpowers1-VisitorAuthor
1-Visitor
September 21, 2016

Tom,

Appreciate the reply. I did try the \' and also \\' previously. It did not work for me. I had seen the syntax help page also. Agree on the single quotes comment.

Thanks,

Doug

23-Emerald IV
September 21, 2016

dpowers‌,

I just did some testing and I confirm that double quotes are not accepted and using the backslash as a delimiter does not work.  I've opened a case with tech support.  I'll let you know what they say.

12-Amethyst
October 10, 2016

Sounds like people have figured it out, but to close the loop, the way to get a single quote in the middle of the string

'Oneal'

is to put the single quote in twice:

'O''neal'

Note that this is two copies of a single-quote, not one double-quote.

The documentation is wrong and will be corrected under the SPR noted above.

23-Emerald IV
October 10, 2016

Matthew Ender‌, maybe you should let tech support and R&D know.  I filed and the case and haven't heard anything since September 23rd.

12-Amethyst
October 11, 2016

Typically, TS gets back to the customer after the resolution is submitted and verified.  In the normal situation, this is to let you know the code fix is coming in the next maintenance release, or to say that the patched model has just been provided.  This situation is quite unusual, as the software is working just fine, just needs doc fixed, *and* that the problem gets in the way of using of software (which most doc-only issues don't).

The developer informed Documentation of what update to make, and it's just waiting on the formality of putting it in the system and translating into all the languages.  I was CC'd on that, and figured I could provide you all with some immediate benefit by posting the pending doc update here, even though it's not 100% formalized yet.