2,628 questions
0
votes
1
answer
48
views
Is there a way to get Revit Python Shell not to buffer the print statement?
Is there a way to get Revit Python Shell not to buffer the print statement?
For example, with this code, it is clear to see that RPS will not show anything on the screen until after the loop has ...
0
votes
0
answers
46
views
How do I include the os module with IronPython 3.4 in my C# project, and also run a script?
I am attempting to use IronPython 3.4 with my C# / .NET MAUI project. As IronPython 3.4 is pretty new, I am not sure if there is much support for it yet.
As a part of experimentation, I am attempting ...
0
votes
0
answers
27
views
Binding TextBox to the last Item in a ListBox and Initialize TextBox value to 0
In my WPF form below, I bound the TextBox x_position to listX's SelectedItem. However, I'm struggling to initialize x_position to 0 before clicking the ajouter_X_Click event. When the event is clicked,...
0
votes
0
answers
43
views
Loading wpf User Control issue
Using pyrevit and IronPython, I've created a user control called IntegerUpDown.py, which I want to use in my main script Grids_script.py. However, I'm encountering the folowing error that I don't know ...
0
votes
0
answers
32
views
Issue for loading XAML layout inline as a string
I’m using pyrevit, and my WPF form is not being displayed (no error appears on the screen). The XAML layout is defined inline as a string. Interestingly, in another form where the XAML layout is also ...
0
votes
0
answers
65
views
Possible to copy sheet in Excel with Python API Excel.Application?
I have a small Python script that writes data to an existing Excel file.
The script is run from Ansys Workbench and in the Ansys installation python version is IronPython 2.7.4 for which Pandas (and ...
2
votes
2
answers
48
views
How can i understand what is running IronPython or Python?
With what command inside code can I understand that IronPython or Python is running?
0
votes
1
answer
69
views
When i run inversetest.py in wpf app, I get error on predict model
When I run python code in c#, I get error on line of predict model but it run in python well. I used any way such as python.net, ironPython, Process,... but it did not work:
private void ...
0
votes
0
answers
18
views
Progress Bar : How to NOT show the Import settings pop-up when replacing the source of a data table?
I have a IronPython script where I am replacing the source of a Data Table.
Here an extract of my code :
def execute():
memstream = MemoryStream()
memwriter = StreamWriter(memstream)
...
0
votes
0
answers
44
views
Setting up IronPython3.4.1 in PyCharm
I have installed IronPython3.4.1 from the windows instalaltion file (.msi) and then I installed PyCharm Community 2024.2.3
Ihave created a new Python project and choose ipy.exe as a system interpreter....
0
votes
0
answers
26
views
What files does IronPython require in the C:\Python27 folder?
We use IronPython 2.7 in a desktop app, which is used to programmatically run simple Python scripts which might import standard modules like 'sys', 'time', and so on. It retrieves these from the C:\...
1
vote
1
answer
35
views
Given a font and a specific character, is there a way to tell which subrange the character belongs to?
I need to determine if a given character in a given font belongs to a given subrange. For example, U+0041 according to Windows Character Map app belongs to the Latin Subrange. Is there a way to get ...
0
votes
1
answer
106
views
Embedded IronPython debugging with breakpoints
Our codebase is written mostly in C# with some scripting capabilities using IronPython 3.4. Until recently we based the project on the outdated .Net Framework 4.8 but made the move to .Net 8 recently.
...
0
votes
0
answers
79
views
Spotfire ironpython: how to set multiple expressions on a box plot x axis?
I'm trying to automate creating a box plot in Spotfire with the API. I can set the axis column by myVis.XAxis.Expression = '', but I couldn't find anything in the API reference to add multiple columns ...
0
votes
0
answers
73
views
Using ironpython from C# async-await causes the app to hang
From C# we have to call python function, in this case the nltk lib lemmatize function (which still has no good C# implementation). We call it like this:
private string Lemmatize(string word)
{
using (...