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

[Bug]: WIP 5.*** pyRevit "Match Paint" return this error #2465

Open
5 tasks done
Garyebeck opened this issue Nov 23, 2024 · 0 comments
Open
5 tasks done

[Bug]: WIP 5.*** pyRevit "Match Paint" return this error #2465

Garyebeck opened this issue Nov 23, 2024 · 0 comments
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Tools Issues related to pyRevit commands [subsystem]

Comments

@Garyebeck
Copy link

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

Running Windows 10, running 2025 Revit and the WIP 5.** version of pyRevit.

Under the ‘Match’ menu, I just tried "Match Paint" selecting a Catch Basin family .rfa and attempting to paste to an identical Catch Basin .rfa family.
I wanted the copy and paste the magenta line color graphic override, to a catch basin with no graphic overrides. It provided this error


ERROR [pyrevit.revit.db.transaction] Error in Transaction Context. Rolling back changes. | <type 'exceptions.Exception'>:The element's face cannot be painted.
Parameter name: face

IronPython Traceback:
Traceback (most recent call last):
File "C:\Program Files\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Modify.panel\edit1.stack\Match.splitpushbutton\Match Paint.pushbutton\script.py", line 36, in
Exception: The element's face cannot be painted.
Parameter name: face

Script Executor Traceback:
Autodesk.Revit.Exceptions.ArgumentException: The element's face cannot be painted.
Parameter name: face
at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame) in //Src/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs:line 405
at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) in /
/Src/Microsoft.Dynamic/Interpreter/Interpreter.cs:line 135
at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) in //Src/Microsoft.Dynamic/Interpreter/Interpreter.cs:line 150
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in /
/Src/Microsoft.Dynamic/Interpreter/Interpreter.cs:line 96
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) in //Src/Microsoft.Dynamic/Interpreter/LightLambda.Generated.cs:line 86
at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) in D:\a\pyRevit\pyRevit\dev\modules\pyRevitLabs.IronPython2\Src\IronPython\Compiler\PythonScriptCode.cs:line 65
at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) in D:\a\pyRevit\pyRevit\dev\modules\pyRevitLabs.IronPython2\Src\IronPython\Compiler\RuntimeScriptCode.cs:line 85
at Microsoft.Scripting.Hosting.CompiledCode.Execute(ScriptScope scope) in /
/Src/Microsoft.Scripting/Hosting/CompiledCode.cs:line 63
at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)

⌨ Error/Debug Message

ERROR [pyrevit.revit.db.transaction] Error in Transaction Context. Rolling back changes. | <type 'exceptions.Exception'>:The element's face cannot be painted. 
Parameter name: face

IronPython Traceback:
Traceback (most recent call last):
 File "C:\Program Files\pyRevit-Master\extensions\pyRevitTools.extension\pyRevit.tab\Modify.panel\edit1.stack\Match.splitpushbutton\Match Paint.pushbutton\script.py", line 36, in <module>
Exception: The element's face cannot be painted.
Parameter name: face

Script Executor Traceback:
Autodesk.Revit.Exceptions.ArgumentException: The element's face cannot be painted.
Parameter name: face
 at Microsoft.Scripting.Interpreter.ThrowInstruction.Run(InterpretedFrame frame) in /_/Src/Microsoft.Dynamic/Interpreter/Instructions/ControlFlowInstructions.cs:line 405
 at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) in /_/Src/Microsoft.Dynamic/Interpreter/Interpreter.cs:line 135
 at Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception) in /_/Src/Microsoft.Dynamic/Interpreter/Interpreter.cs:line 150
 at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame) in /_/Src/Microsoft.Dynamic/Interpreter/Interpreter.cs:line 96
 at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1) in /_/Src/Microsoft.Dynamic/Interpreter/LightLambda.Generated.cs:line 86
 at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx) in D:\a\pyRevit\pyRevit\dev\modules\pyRevitLabs.IronPython2\Src\IronPython\Compiler\PythonScriptCode.cs:line 65
 at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope) in D:\a\pyRevit\pyRevit\dev\modules\pyRevitLabs.IronPython2\Src\IronPython\Compiler\RuntimeScriptCode.cs:line 85
 at Microsoft.Scripting.Hosting.CompiledCode.Execute(ScriptScope scope) in /_/Src/Microsoft.Scripting/Hosting/CompiledCode.cs:line 63
 at PyRevitLabs.PyRevit.Runtime.IronPythonEngine.Execute(ScriptRuntime& runtime)

♻️ To Reproduce

No response

⏲️ Expected behavior

Copy and Paste Graphic Overrides

🖥️ Hardware and Software Setup (please complete the following information)

Windows 10

Additional context

No response

@Garyebeck Garyebeck added the Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] label Nov 23, 2024
@sanzoghenzo sanzoghenzo added the Tools Issues related to pyRevit commands [subsystem] label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug that stops user from using the tool or a major portion of pyRevit functionality [class] Tools Issues related to pyRevit commands [subsystem]
Projects
None yet
Development

No branches or pull requests

2 participants