cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

config.pro mapkey variables

lbalthazor-2
1-Newbie

config.pro mapkey variables

Is there a way to use an O/Svariable such as %userprofile% within a mapkey?


For example, I am trying to replace:
mapkey(continued) `c:\\User\\<userlogin>\\Documents\\config.pro`;\
With:
mapkey(continued) `c:\\%userprofile%\\Documents\\config.pro`;\


The mapkey does not recognize the %userprofile% variable.


Thank you,


Lee


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.
1 REPLY 1

Yep, but you only need a single $ prefix:



This:



c:\\$userprofile\\Documents\\config.pro



Not this:



c:\\%userprofile%\\Documents\\config.pro



Doug Schaefer
--
Doug Schaefer | Experienced Mechanical Design Engineer
LinkedIn
Top Tags