Skip to main content
Mar 28, 2012 2:31 PM UTC
Question

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

    Mar 29, 2012 12:42 PM UTC

    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



    peter.liAuthor
    Mar 29, 2012 12:50 PM UTC

    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

    Mar 29, 2012 1:39 PM UTC
    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

    Mar 29, 2012 6:38 PM UTC
    We (re)define variables in our startup file. Something like this:

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

    Dave
    Mar 29, 2012 10:06 PM UTC
    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


    Mar 29, 2012 10:22 PM UTC
    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.

    Mar 29, 2012 11:12 PM UTC
    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 🙂


    peter.liAuthor
    Mar 30, 2012 6:31 AM UTC

    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

    Apr 3, 2012 5:04 PM UTC
    This solution just came across my e-mail in one of my PTC support
    peter.liAuthor
    Apr 3, 2012 7:34 PM UTC

    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