카테고리 없음2021. 6. 15. 12:16

ACT_NumPy_Ex3.xml

---------------------------------------------------------------------------------------------------------------

<extension version="192" minorversion="0" name="ACT_NumPy_Ex3">
    <guid shortid="ACT_NumPy_Ex3">98V1CB96-4EEE-4DF2-AA62-EC8F9838543A</guid>
    <author>SanthoshM</author>
    <description> Asd
    </description>
    <script src="main.py" compiled="true"/>
    <script src="A_NumpyFun3.py" compiled="true"/>
    <interface context="Mechanical">
        <images>images</images>
        <callbacks>
            <oninit>init</oninit>
        </callbacks>

        <toolbar name = "ACT_NumPy_Ex3" caption = "ACT_NumPy_Ex3">
            <entry name = "ACT_NumPy_Ex3" icon = "hand">
                <callbacks>
                    <onclick>CreateCustomPost</onclick>
                </callbacks>
            </entry>
        </toolbar>
    </interface>
    
    
        <simdata context ="Mechanical">
        
            <result name="CustomRes" version="1" caption="CustomNumPyRes" icon="hand" location="node" type="scalar" >
                <callbacks>
                    <evaluate>Manupulate</evaluate>
                </callbacks>
                
                <property name="Geometry" caption="Geometry" control="scoping"> </property>
                <property name="DispFactor" caption="DispFactor" control="float" default="5.0"> </property>
                <property name="InputFileName" caption="Input csv File Name" control="text" default="auto" readonly="true"> </property>
                <property name="OutputFileName" caption="Output csv File Name" control="text" default="auto" readonly="true"> </property>
                
            </result>
        
        </simdata>
        
</extension>

 

---------------------------------------------------------------------------------------------------------------

 

main3.py

 

---------------------------------------------------------------------------------------------------------------

https://stackoverflow.com/questions/66887591/ansys-ironpython-act-does-not-run

 

Ansys ironpython ACT does not run

I am trying to make the code work from the 9-17min mark in this youtube video: https://www.youtube.com/watch?v=oX5hDU0Qg-Q I wrote down every single line of code and it should work, however I get the

stackoverflow.com

 

def __init__(context): ExtAPI.Log.WriteMessage("initiating Scipy manipulate...") pass def CreateCustomPost(analysis): ExtAPI.Log.WriteMessage("clicked on CustomPost button") result=analysis.CreateResultObject("CustomPost")

Posted by 오늘보다 나은 내일