Skip to content

RBP + Revit 2025 #139

Description

@AlBabr

I try RBP v.1.11.0 and v.1.12.1 with Revit 2025 and fail. The .py script includes just 1 line print("test"). Everything works fine with Revit 2024. If I run in cmd that's the error message:

17:26:49 : Microsoft.Scripting.SyntaxErrorException: invalid syntax
17:26:49 : at Microsoft.Scripting.ErrorSink.Add(SourceUnit source, String message, SourceSpan span, Int32 errorCode, Severity severity)
17:26:49 : at IronPython.Compiler.Parser.ReportSyntaxError(Int32 start, Int32 end, String message, Int32 errorCode)
17:26:49 : at IronPython.Compiler.Parser.ReportSyntaxError(Token t, IndexSpan span, Int32 errorCode, Boolean allowIncomplete)
17:26:49 : at IronPython.Compiler.Parser.EatNoEof(TokenKind kind)
17:26:49 : at IronPython.Compiler.Parser.ParseSuite()
17:26:49 : at IronPython.Compiler.Parser.ParseTryStmtHandler()
17:26:49 : at IronPython.Compiler.Parser.ParseTryStatement()
17:26:49 : at IronPython.Compiler.Parser.ParseStmt()
17:26:49 : at IronPython.Compiler.Parser.ParseSuite()
17:26:49 : at IronPython.Compiler.Parser.ParseClassOrFuncBody()
17:26:49 : at IronPython.Compiler.Parser.ParseFuncDef(Boolean isAsync)
17:26:49 : at IronPython.Compiler.Parser.ParseStmt()
17:26:49 : at IronPython.Compiler.Parser.ParseFileWorker(Boolean makeModule, Boolean returnValue)
17:26:49 : at IronPython.Compiler.Parser.ParseFile(Boolean makeModule, Boolean returnValue)
17:26:49 : at IronPython.Runtime.PythonContext.ParseAndBindAst(CompilerContext context)
17:26:49 : at IronPython.Runtime.PythonContext.CompilePythonCode(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink)
17:26:49 : at IronPython.Runtime.PythonContext.CompileSourceCode(SourceUnit sourceUnit, CompilerOptions options, ErrorSink errorSink)
17:26:49 : at Microsoft.Scripting.SourceUnit.Compile(CompilerOptions options, ErrorSink errorSink)
17:26:49 : at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
17:26:49 : at Microsoft.Scripting.SourceUnit.Execute(Scope scope)
17:26:49 : at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
17:26:49 : at BatchRvt.ScriptHost.ScriptHostUtil.ExecuteBatchScriptHost(String pluginFolderPath, Object uiApplicationObject) in C:\Users\psmith\dev_github\RevitBatchProcessor\BatchRvtScriptHost\Util\ScriptHostUtil.cs:line 74
17:26:49 : at BatchRvt.Addin.Revit2025.BatchRvtExternalEventHandler.Execute(UIApplication uiApp) in C:\Users\psmith\dev_github\RevitBatchProcessor\BatchRvtAddin2025\BatchRvtAddinApplication.cs:line 75

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions