Re: [Ironpython-users] Scripting Ansys with IronPython - Unable to call values from dictionary

2011-11-24 Thread Ossi Heinonen
Hi again Could it be possible to use some sort of wildcard method in this one? Like verifiedValues['*P1*'] or verifiedValues['?P1?'] Just a thought that seems intuitive, but is it doable? Best regards Ossi Heinonen On 24.11.2011 10:54, Ossi Heinonen wrote: Hi all! I have a proble

[Ironpython-users] IronPython, Daily Digest 11/23/2011

2011-11-24 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New comment] Bug with Log() function 2. [New issue] IronPython 2.7.1 csv pyc 3. [New comment] IronPython 2.7.1 csv pyc 4. [New comment] IronPython 2.7.1 csv pyc 5. [New comment] IronPytho

Re: [Ironpython-users] Setting __name__ to __main__

2011-11-24 Thread Markus Schaber
Hi, First, Sorry to all users which I mailed personally, this was not intentional. It seems that, even after several years of being forced to use it, Outlook and me are still not compatible. :-( Von: Markus Schaber > I want to set the __name__ variable to "__main__" in the script I execute.

Re: [Ironpython-users] Scripting Ansys with IronPython - Unable to call values from dictionary

2011-11-24 Thread Ossi Heinonen
Hi Liu Thanks for the reply! I did as you suggested. Here's what I got with type() type(verifiedValues) So it is a dictionary, right? Then I tried dir(verifiedValues) dir(verifiedValues) ['Add', 'Clear', 'Contains', 'ContainsKey', 'CopyTo', 'Count', 'Equals', 'GetEnumerator', 'G

Re: [Ironpython-users] Scripting Ansys with IronPython - Unable to call values from dictionary

2011-11-24 Thread 刘振海
Hi, I think you should check the type of verifiedValues like "type( verifiedValues)" then use the dir function to check the content of verifiedValues. maybe try to use new_verifiedValues=dict(verifiedValues) Hope it will help! Regards, Liu Zhenhai 2011/11/24 Ossi Heinonen > Hi all! > > I have a

[Ironpython-users] Scripting Ansys with IronPython - Unable to call values from dictionary

2011-11-24 Thread Ossi Heinonen
Hi all! I have a problem with scripting the FEA software Ansys Workbench with IronPython. I need to come up with a script that gets the variable values in an optimum point that I have found using the optimization tools. I found some help for this with "VerifyCandidate" in the scripting guide