Home > Community > Forums > Custom IC SKILL > How to update cdsenv variable dynamically

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to update cdsenv variable dynamically 

Last post Fri, Aug 27 2010 1:15 PM by skillUser. 2 replies.
Started by Vijay Srinivas 27 Aug 2010 12:23 PM. Topic has 2 replies and 1419 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Aug 27 2010 12:23 PM

    How to update cdsenv variable dynamically Reply

    Hi All,

    I am new to SKILL and I am trying to update the cdsenv variable "asimenv saveDir" variable dynamically, that is while running ICFB. I would like to update this variable depending on the open library.

    I am thankful for any piece of information or advice that you guys can provide me.

     

     

    Thanks,

    Vijay

    • Post Points: 35
  • Fri, Aug 27 2010 1:07 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,535
    • Points 14,940
    Re: How to update cdsenv variable dynamically Reply

     Hi Vijay,

    You can set or update such environment variables using the envSetVal function: 

    
      envSetVal("asimenv" "saveDir" 'string "~/.artist_states")
    

     

    I hope that this answers your question?

    Regards,

    Lawrence.

    • Post Points: 5
  • Fri, Aug 27 2010 1:15 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,535
    • Points 14,940
    Re: How to update cdsenv variable dynamically Reply

     I just saw your comment about the "open library" - there is not really a concept of an open library, but you could get the current cellview and obtain the library of that.  geGetEditCellView() is an example of such a function, so you might use the following:

    geGetEditCellView()~>libName

     Hopefully that more fully answers your question?

    Regards,

    Lawrence.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Vijay Srinivas at 27 Aug 2010 12:23 PM. Topic has 2 replies.