Skip to main content
1-Visitor
March 28, 2012
Question

APTCUSTOM

  • March 28, 2012
  • 11 replies
  • 3121 views

Hi,


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


Cheers


Pete


    11 replies

    1-Visitor
    March 29, 2012

    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.li1-VisitorAuthor
    1-Visitor
    March 29, 2012

    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

    18-Opal
    March 29, 2012
    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

    1-Visitor
    March 29, 2012
    We (re)define variables in our startup file. Something like this:

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

    Dave
    18-Opal
    March 29, 2012
    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


    1-Visitor
    March 29, 2012
    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.

    1-Visitor
    March 29, 2012
    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.li1-VisitorAuthor
    1-Visitor
    March 30, 2012

    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

    1-Visitor
    April 3, 2012
    This solution just came across my e-mail in one of my PTC support
    peter.li1-VisitorAuthor
    1-Visitor
    April 3, 2012

    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