Comments (11)
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.
I have updated pyrevit to d50f9e4, but the same error occurred
from pyrevitmep.
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.
Thank you very much for your reply. I upload the Shared parameter file.
建筑规划方案.txt
from pyrevitmep.
Now I can reproduce it.
Some mess about character encoding apparently. Let me some time to see how I can fix this.
from pyrevitmep.
from pyrevitmep.
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.
Done (pyrevitlabs/pyRevit@1c3fbce). Please update both pyRevit and pyRevitMEP. Try carefully and let me know if something else is going wrong.
from pyrevitmep.
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.FuncCallInstruction
2.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.DynamicInstruction
3.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.
And when the second click to delete the parameter, revit crashed
from pyrevitmep.
Hello @lcwewei,
I am really sorry that it took me so long to fix this one…
from pyrevitmep.
Related Issues (20)
- Change Level Crash - Revit 2019 HOT 9
- Shared Parameter File HOT 6
- Update to pyRevit 4.7 and testing HOT 2
- Exception: No module named revitutils HOT 1
- Revit Crashes while Trying to Use "Change Level" HOT 1
- Revit does not delete selected Elements when "ModelessForm" Script is run HOT 14
- [PULL REQUEST] Cou HOT 1
- strange behaviour of function ducts transition elements[BUG] HOT 4
- [BUG] Change Level doesn't work with Air Terminals, Mechanical Equipment and Plumbing Fixtures HOT 4
- View Rename_Clicking inside the formula line for floor plans crashed Revit 2019.2 HOT 4
- [BUG] UnitType obsolete HOT 1
- Element3D rotation function [BUG] HOT 4
- [BUG] Crash on Family Parameter commit (workaround included) HOT 2
- [BUG] HOT 1
- CreateSectionFrom is using "Prefix" only first time[BUG] HOT 1
- CreateSectionFrom use opposide to place Section HOT 1
- [BUG] Change level bug on Revit 2023
- usage of RoomToSpace [BUG] HOT 1
- RenameViews enhancement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyrevitmep.