Traceback (most recent call last):
File "<string>", line 55, in <module>
EnvironmentError: System.Runtime.InteropServices.COMException (0x80070057): Generata eccezione di tipo 'System.Runtime.InteropServices.COMException'.
in com.alibre.automation.DesignProperties.ExtendedDesignProperty(ADExtendedDesignProperty propertyID, Object propertyValue)
in Microsoft.Scripting.Interpreter.ActionCallInstruction`3.Run(InterpretedFrame frame)
in Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
in Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
in Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame)
in Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
in Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
in IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
in Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
in AlibreScript.UI.IronTextBoxControl.#P2b(Object #Dp)
>>>
I have used your script with pleasure
I'll update it when V23 is officially released. The Beta testing procedure is not convinient enough for me...all the install, deinstall and...you would like to update it to Alibre version 23
Hello Francesco,unfortunately I cannot insert an Excel sheet here
Stefan, a small clarification .... If I use the script and then modify the material using one Customized by me (Working with wood mainly I have to refer to weights taken directly from the supply) the subsequent data are deleted .... what normal?Hello Francesco,
take a look at cell B16. There should be a date for "AD_MFG_APPROVED_DATE"... you've given a value of "Cator" and this is not what is expected there.
Change it to eg. "2021.05.15" and it will work.
View attachment 33589
I've addapted the script to V23 (to get rid of the warnings...) and corrected the failure at trying to open with no file chosen.
Regards
Stefan
sorry, i'm not sure what you mean. Can you make some screenshots?the subsequent data are deleted
looks the time has come...May some time i will get access to this materials from the data base...
made_with = 343305
made_with_Alibreversion = 'PRODUCTVERSION 23,0,0,23050'