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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

APTCUSTOM

peter.li
1-Newbie

APTCUSTOM

Hi,


Is there a way to set this outside of the environmental variables (SET APTCUSTOM=xxxxxx), e.g. in acl?


Cheers


Pete


11 REPLIES 11

Hi Peter,


I'm not sure if you can set it in ACL, but you can set the env. variable at runtime in a bat file.


@echo off

set APTCUSTOM=C:\custom;%%D

cd "C:\Program Files\PTC\Arbortext Editor\bin\x86"start " "editor.exe" %*



In Reply to Peter Li:



Hi,


Is there a way to set this outside of the environmental variables (SET APTCUSTOM=xxxxxx), e.g. in acl?


Cheers


Pete



Hey Jeff,


Thanks for replying, but the customer is specifically looking for a solution where the environment variable is not set through control panel or a batch file.


They want something else that Editor looks atso it knows where to find customisations, it may not exist!


Cheers


Pete

Hi Peter--

By default, Arbortext looks for customizations in its own installation tree (usually C:\Program Files\PTC\Arbortext Editor\custom). If your customer can put their files there, they should be OK. Otherwise, I'm afraid they are going to have use some environment variables to configure things.

--Clay

Sent from my iPad

We (re)define variables in our startup file. Something like this:

# set spell-check cache buffer higher
$ENV["APTACCEPTC"]=2000

Dave

Hi Dave--



You're right, you can redefine certain variables in the startup file.
However, in the case of APTCUSTOM, I don't think that would work,
because by the time your code runs to redefine it, it's already too
late--you're already well into the startup process, where you would have
wanted all those custom init scripts to run.



--Clay





Clay Helberg

Senior Consultant

TerraXML


Hey Pete,
Maybe if you can go into more detail about your customer's constraints,
someone will have an idea. I think we've exhausted the potential APTCUSTOM
environment variable solution ...

For what it's worth, add me to the folks who support multiple authoring
applications and use shortcuts to batch files that set APTCUSTOM (among
others) before launching Editor.

I'll second Paul's request for more information about the customer's
real goal (things like "don't mess with environment variables" are
usually subordinate to the real goal/requirement).

One thing to keep in mind, which does not seem to be widely known, is
that setting an environment variable in a batch file only affects
processes that run from that batch file, and nothing else. So, if the
goal is to isolate this configuration setting from the rest of the
system, batch files are a great way to do it.

-Brandon 🙂


Hey Guys,


Thanks a lot for your suggestions and advice 🙂


Brandon, you nailed the 'real' reason pretty well.


We've already said as much to the customer and I have suggested he test it in his environment and let me know if this is adequate.


Cheers


Pete

This solution just came across my e-mail in one of my PTC support

Hi Paul,


Yes, that bulletin came out as a result of my query 🙂


I haven't tried the siteprefs solution as this seems to be linked to the repository adapters so what happens if the customer is not using one?


I couldn't get the acl solution to work, if anyone out there manages it I would love a copy of their .acl file


The customer is going to try the batch file for now...


Cheers


Pete


Hi Pete,


I needed something similar for a customer solution and it worked ok, within my application /init/setStuff.acl i just had:


sh setx MYVAR STUFF;

Cheers


Chris




Chris Western
www.tformat.com


Top Tags