Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to #13

Closed
sechanbask opened this issue Jul 1, 2019 · 6 comments
Closed

Connect to #13

sechanbask opened this issue Jul 1, 2019 · 6 comments
Labels
rocket mode bug Bugs which only appears in rocket mode

Comments

@sechanbask
Copy link

Hello,

I often have this error when I try "connect to"

`IronPython Traceback:
Traceback (most recent call last):
File "C:\Users\Cedric\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension\pyRevitMEP.tab\Modify.panel\ConnectTo.pushbutton\script.py", line 100, in
File "C:\Users\Cedric\AppData\Roaming\pyRevit\Extensions\PyRevitMEP.extension\pyRevitMEP.tab\Modify.panel\ConnectTo.pushbutton\script.py", line 79, in connect_to
File "C:\Users\Cedric\AppData\Roaming\pyRevit-Master\pyrevitlib\rpw\db\transaction.py", line 33, in init
Exception: The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone.

Script Executor Traceback:
Autodesk.Revit.Exceptions.InvalidObjectException: The referenced object is not valid, possibly because it has been deleted from the database, or its creation was undone.
at Microsoft.Scripting.Interpreter.NewInstruction.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at IronPython.Compiler.Ast.CallExpression.Invoke2Instruction.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Scripting.Interpreter.FuncCallInstruction6.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4) at IronPython.Runtime.Types.LateBoundInitBinder.FastInitSite1.CallTarget(CallSite site, CodeContext context, Object inst, T0 arg0)
at IronPython.Runtime.Types.PythonType.FastTypeSite1.CallTarget(CallSite site, CodeContext context, Object type, T0 arg0) at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2) at Microsoft.Scripting.Interpreter.DynamicInstruction4.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run1[T0,TRet](T0 arg0)
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at Microsoft.Scripting.Interpreter.DynamicInstruction3.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) at PyRevitBaseClasses.ScriptExecutor.ExecuteScript(PyRevitCommandRuntime& pyrvtCmd)

CyrilWaechter added a commit that referenced this issue Jul 2, 2019
Added error handling but need more info to really solve the issue.
@CyrilWaechter
Copy link
Owner

Hi,

I added some error handling until we figure out better what is really happening. In what case do you get this error ?

Is pyRevit up to date ?
Is pyRevitMEP up to date ?
What Revit version do you use including update release version ?
Can describe step by step your issue ? Give a minimalist rvt where you are to reproduce the error consistently ?

@sechanbask
Copy link
Author

Hello,

I'm using Revit 2019.2
I have pyRevit 4.6.23 and pyRevitmep last commit 4c8756f

I am able to reproduce the error on this project, you can find the project here :

https://we.tl/t-xGcxqA7HCn

@CyrilWaechter
Copy link
Owner

CyrilWaechter commented Jul 3, 2019

I am sorry but I get no issue with your file. I am able to connect the flange to the STAF and the opposite.

I am also using 2019.2 french version. I have pyRevit 4.6.24 but it is not supposed to change something.

Also what python engine is used ? Mine use 2.7.9.
image

I know there was some issue with modeless tools in rocket mode but never with modal tools (like ConnectTo). Try to deactivate rocket mode in pyRevit settings just in case.

@sechanbask
Copy link
Author

sechanbask commented Jul 4, 2019 via email

@CyrilWaechter CyrilWaechter added the rocket mode bug Bugs which only appears in rocket mode label Jul 5, 2019
@CyrilWaechter
Copy link
Owner

pyRevitMEP has been updated for pyRevit 4.7.4 #16 Please update and test. A new pyRevit feature may solve the rocket mode issue. Please also try with rocket mode reactivated.

@CyrilWaechter
Copy link
Owner

No answer for about a month. Considered as solved. Reopen it if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rocket mode bug Bugs which only appears in rocket mode
Projects
None yet
Development

No branches or pull requests

2 participants