Giter VIP home page Giter VIP logo

Comments (11)

CyrilWaechter avatar CyrilWaechter commented on September 24, 2024

Hi,

As you can see in commit list, the pyRevitMEP version you use (aed4ff9) is previous c98e12c (Update to pyRevit 4.7.4 and use of rsparam) and is therefore not compatible with pyRevit 4.7.4.

Please update pyRevitMEP. If update fails, uninstall and reinstall pyRevitMEP from extensions manager.

from pyrevitmep.

lcwewei avatar lcwewei commented on September 24, 2024

I have updated pyrevit to d50f9e4, but the same error occurred

from pyrevitmep.

CyrilWaechter avatar CyrilWaechter commented on September 24, 2024

I launched Revit in simplified chinese and create a group called 标高 and F1 but I wasn’t able to reproduce your error following your steps. Can you provide me you shared parameter file ?

from pyrevitmep.

lcwewei avatar lcwewei commented on September 24, 2024

Thank you very much for your reply. I upload the Shared parameter file.
建筑规划方案.txt

from pyrevitmep.

CyrilWaechter avatar CyrilWaechter commented on September 24, 2024

Now  I can reproduce it.

Some mess about character encoding apparently. Let me some time to see how I can fix this.

from pyrevitmep.

lcwewei avatar lcwewei commented on September 24, 2024

from pyrevitmep.

CyrilWaechter avatar CyrilWaechter commented on September 24, 2024

Hi,
Issue is solved in dev branch. I need to wait pyRevit next release to push it (there is a fix of a used library in it).

from pyrevitmep.

CyrilWaechter avatar CyrilWaechter commented on September 24, 2024

Done (pyrevitlabs/pyRevit@1c3fbce). Please update both pyRevit and pyRevitMEP. Try carefully and let me know if something else is going wrong.

from pyrevitmep.

lcwewei avatar lcwewei commented on September 24, 2024

There is now a new problem with the following error when deleting parameters

IronPython Traceback:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension\pyRevitMEP.tab\Manage.panel\Parameters.stack\ManageSharedParameter.pushbutton\script.py", line 12, in
File "C:\Users\Administrator\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension\lib\pyrevitmep\parameter\manageshared.py", line 266, in show_dialog
File "C:\Users\Administrator\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension\lib\pyrevitmep\parameter\manageshared.py", line 131, in delete_click
File "C:\Users\Administrator\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension\lib\pyrevitmep\parameter_init_.py", line 304, in delete_from_definition_file
File "D:\pyRevit-Master\pyrevitlib\rsparam_init_.py", line 160, in get_params
File "D:\pyRevit-Master\pyrevitlib\rsparam_init_.py", line 91, in read_entries
File "codecs.py", line 898, in open
TypeError: expected str, got DefinitionFile

Script Executor Traceback:
Microsoft.Scripting.ArgumentTypeException: expected str, got DefinitionFile
在 Microsoft.Scripting.Runtime.LightExceptions.ThrowException(LightException lightEx)
在 Microsoft.Scripting.Runtime.LightExceptions.CheckAndThrow(Object value)
在 Microsoft.Scripting.Interpreter.FuncCallInstruction2.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) 在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) 在 IronPython.Compiler.PythonCallTargets.OriginalCallTarget3(PythonFunction function, Object arg0, Object arg1, Object arg2) 在 System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) 在 IronPython.Compiler.Ast.CallExpression.Invoke2Instruction.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3) 在 IronPython.Compiler.PythonCallTargets.OriginalCallTarget3(PythonFunction function, Object arg0, Object arg1, Object arg2) 在 CallSite.Target(Closure , CallSite , Object , Object , RoutedEventArgs ) 在 System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) 在 _Scripting_(Object[] , Object , RoutedEventArgs ) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.Controls.Primitives.ButtonBase.OnClick() 在 System.Windows.Controls.Button.OnClick() 在 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) 在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent) 在 System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e) 在 System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) 在 System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs) 在 System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) 在 System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) 在 System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) 在 System.Windows.Input.InputManager.ProcessStagingArea() 在 System.Windows.Input.InputManager.ProcessInput(InputEventArgs input) 在 System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) 在 System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel) 在 System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 在 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 在 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 在 System.Windows.Window.ShowHelper(Object booleanBox) 在 System.Windows.Window.ShowDialog() 在 Microsoft.Scripting.Interpreter.FuncCallInstruction2.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)
在 System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
在 Microsoft.Scripting.Interpreter.FuncCallInstruction5.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2) 在 IronPython.Compiler.Ast.CallExpression.Invoke0Instruction.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) 在 Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) 在 IronPython.Runtime.Method.MethodBinding.SelfTarget(CallSite site, CodeContext context, Object target) 在 System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) 在 Microsoft.Scripting.Interpreter.DynamicInstruction3.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
在 IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
在 PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)

from pyrevitmep.

lcwewei avatar lcwewei commented on September 24, 2024

And when the second click to delete the parameter, revit crashed

from pyrevitmep.

CyrilWaechter avatar CyrilWaechter commented on September 24, 2024

Hello @lcwewei,

I am really sorry that it took me so long to fix this one…

from pyrevitmep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.