APTCUSTOM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
APTCUSTOM
Hi,
Is there a way to set this outside of the environmental variables (SET APTCUSTOM=xxxxxx), e.g. in acl?
Cheers
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
# set spell-check cache buffer higher
$ENV["APTACCEPTC"]=2000
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
