Questions tagged [ironpython]

IronPython is an open-source implementation of the Python programming language which is tightly integrated with the .NET Framework. IronPython can use the .NET Framework and Python libraries, and other .NET languages can use Python code just as easily. Use this tag for implementation-specific questions, general Python questions should just be tagged with "python".

Filter by
Sorted by
Tagged with
0 votes
1 answer
55 views

Visual Scripting Error After Importing IronPython3.4.1

I imported IronPython3.4.1 into my unity project and I have received these error does anyone know how to fix this? I tried deleting and re importing IronPython but that didn't work and I do now know ...
Randomguy660's user avatar
0 votes
0 answers
10 views

Add arguments to a IronPython CallExpression

I'm walking over Python code with a PythonWalker. From the bool Walk(CallExpression node) method I want to add a argument to the call if it meets certain critieras. The node.Args is readonly and the ...
Anders's user avatar
  • 17.4k
0 votes
1 answer
22 views

How can I create in IronPython a Variant holding an array of doubles to be passed to AutoCad?

I am using IronPython to modify an Autocad file using COM/ActiveX. Reading information from the file is going well but now I want to move a line in the cad file. The Move command is looking for two ...
Michelle's user avatar
0 votes
1 answer
64 views

How to fix VS Code autocompletion to access all layers of a Python.NET - .NET assembly interface?

I am programming in Python 3 in VS Code, using Python.NET to interface with a .NET based API (AudioPrecision.API.dll). I want to use autocomplete similar to Intellisense in Visual Studio, to make it ...
Ben's user avatar
  • 1
0 votes
0 answers
15 views

Create arrow heads in spotfire using python

Does Spotfire supports creating custom lines and arrowheads? I have tried creating vector using mat plot library
Z_AK's user avatar
  • 1
0 votes
1 answer
23 views

SytemError when trying to run progress bar when executing a script in spotfire

When trying this basic code snippet to test out a progress bar, I get error message "SystemError: Attempt to execute a ProgressOperation in the context of a document transaction.". from ...
Zegher V's user avatar
  • 127
0 votes
0 answers
34 views

how access data during intermediate transformation steps before final data table (i.e. need a column before it is pivoted)

Table1 is loaded as a data source, then undergoes some transformations (replace columns, join columns, etc.) from other tables and then outputs Table1Final. One of the transformations pivots ColumnA ...
Chris's user avatar
  • 495
0 votes
0 answers
20 views

C# - IronPython, running 3rd party python package

I am trying to run a python script via a C# project, so far I have downloaded the IronPython & IronPython StdLib nuget packages and manually downloaded the src files for the 3rd party python ...
Drees's user avatar
  • 688
0 votes
1 answer
29 views

How does an Indexer work with a FilteredElementCollector?

I am reading data in from CSV text file where each line in the file is a distinct record. In that record is the name of a text style which I need to convert to the elementID of a TextNoteType. I have ...
Michelle's user avatar
1 vote
0 answers
55 views

IronPython 3.4 with dotnet 6 facing problem

I am trying to create a sample dll with a function that adds two integer. I created a dll for that. Process to create the dll ===> Used VS2022 and created dll with .Net core6 sample code used ...
Rajesh Swain's user avatar
0 votes
1 answer
152 views

Spotfire ironpython replacing data table values

in Spotfire I'm trying to write a string into marked rows of a table column. from Spotfire.Dxp.Data import * dataTable = Document.Data.Tables["myTable"] cursor = DataValueCursor....
dogfrog's user avatar
  • 21
0 votes
0 answers
65 views

IronPython v Python 3.11 - Importing .dll Libraries in Python 3.11

I am having an issue importing a .dll library in Python 3.11. For IronPython, the import is successfull and looks as follows (example is for using the API of a structural analysis package called Robot ...
Björn Steinhagen's user avatar
1 vote
0 answers
36 views

How do you change the linestyle of a detail line in Revit?

After banging my head for awhile trying to figure out how to change - using the Revit API - the linestyle of an existing detail line to another given the name of the linestyle, I finally figured it ...
Michelle's user avatar
0 votes
0 answers
9 views

In Revit Python Shell, why does one piece of code work directly from console but not if it is in a module?

I am using Revit Python Shell with Iron Python to create a complex program but at the moment, I am working on logging. I have a piece of code - shown below - which works if entered directly into RPS ...
Michelle's user avatar
0 votes
0 answers
40 views

Spotfire - Iron python Script to get details of all tables and columns used in report

I am searching for a iron python script to get details of all tables and columns used in the entire report. It would also be great if i can also get the Information Links used in the report. Thanks in ...
nikhil kishan j's user avatar
0 votes
1 answer
46 views

How to change the width of a tableplot in spotfire via ironpython

This can be done manually by dragging the borders, but is there a way to set the width of the visualization (not the columns within the visualization) to a set width?
Zegher V's user avatar
  • 127
0 votes
1 answer
62 views

How to set a filtering scheme to data function input via ironpython?

I am executing a data function via ironpython, and the input is predefined (a column from an existing data table). Now I would like to filter this input by applying a filtering scheme to it. How do I ...
Zegher V's user avatar
  • 127
0 votes
0 answers
27 views

Deserialize with .NET SoapFormatter

I have an C# application which exports data by the SoapFormatter. This data should be imported by an application running in an IronPython environment. For this the .NET SoapFormatter is used. The data ...
UHM's user avatar
  • 337
0 votes
1 answer
39 views

How can I draw a curve based on expression via ironpython?

In my scatterplot visualization, I added a "Curve from Data Table" with a custom expression that references variables from this data table. How can I do this via ironpython?
Zegher V's user avatar
  • 127
1 vote
0 answers
19 views

Can I install/use Python Log Indenter with Revit Python Shell?

I would like to install Python Log Indenter (Document Page ) for use with RevitPytonShell (IronPython version). The docs for Python Log Indenter indicate that PIP be used for installation but I am not ...
Michelle's user avatar
0 votes
1 answer
41 views

Why can I not cast my filter as listboxfilter in ironpython?

The result of my .AsListBoxFilter is None, as per the error message AttributeError: 'NoneType' object has no attribute 'SetValues'. I see no reason why this would fail, since my data is categorical. ...
Zegher V's user avatar
  • 127
1 vote
1 answer
54 views

Failed to import external libraries in IronPython

I want to run a Python application with IronPython. This is the error: Unhandled exception. IronPython.Runtime.Exceptions.ImportException: Cannot import name IntFlag at Microsoft.Scripting.Runtime....
michael aa's user avatar
0 votes
0 answers
21 views

How do I get in python the path/name of the calling module inside another module called by import

The problem looks like this: Imagine a package/module abc.py that provides basic functionality to a framework (e.g. open, close, connect, print, etc). There is another module component01.py that uses ...
wizglins's user avatar
0 votes
0 answers
24 views

Scripting in Spotfire to match Excel File input with Data Tables in database

I am trying to introduce a diary on Spotfire that will allow users to input Item IDs into a Microsoft Excel file that will be linked to the Spotfire Data Connection to search for additional ...
ISuckAtCoding's user avatar
0 votes
1 answer
91 views

Installing IronPython on Ubuntu Using Mono

I am trying to install IronPython On Ubuntu 22.04 using Mono. I've followed each of the steps mentioned here - https://davidtavarez.github.io/2018/installing_ironpython/, but I'm still unable to ...
suman paul's user avatar
0 votes
0 answers
7 views

ironpython run error : mainWindow has no attribute

`Ironpython can't excute exist button_click event? <Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x=...
inface0443's user avatar
0 votes
0 answers
45 views

IronPython: no module named 'nltk'

i use ironPython last version 3.4.1 in Nuget (https://www.nuget.org/packages/IronPython/3.4.1#readme-body-tab) so, i got simple .py file with that code (let's name it test.py): import nltk def ...
Kate 's user avatar
  • 33
0 votes
0 answers
48 views

I can use Ironpython in my workplace lap but not in my personal pc, with Visual Studio Code 2022

I want to use iron python with visual code in my home pc, the problem is that I can not, the weird thing is that in the laptop which I work I can do it, I do not know what could be missing in my home ...
Gilberto GZ's user avatar
0 votes
1 answer
27 views

Spotfire Ironpython: Filters disappear after running a table through script?

I have a data table that I put into a script in a button. It takes the table and formats various visualizations on it, but after it goes through, the items in the filter bar on the right disappears ...
intergalactic's user avatar
0 votes
1 answer
102 views

Attach VS Code to IronPython

I am attempting to attach the VS Code debugger to an application that is hosting IronPython from a nuget package. This does not work as Visual Studio Code returns this error: This is my Script.cs ...
user8934733's user avatar
0 votes
0 answers
14 views

Delegate event handler from Excel in IronPython not working

I am doing a small development within Rhinoceros (a CAD program) through an IronPython interface inside the program itself. One of the main elements of the code is to manage that Rhinoceros is able to ...
messiahCode's user avatar
0 votes
1 answer
40 views

Redirecting output not working after upgrading to IronPython 3

I've upgraded from IronPython 2 to IronPython 3, but after upgrading I am no longer able to get output. My class: public class UnityLogWriter : StreamWriter { private readonly Action<string> ...
Riley B's user avatar
  • 13
0 votes
0 answers
56 views

Why does ObjectDBX.AxDBDocument not release file lock if I add an object to the DWG file?

I have a python program that I am developing using RevitPythonShell and one task that it does is to establish a COM link to an Autocad file using the ObjectDBX.AxDBDocument interface. The program will ...
Michelle's user avatar
0 votes
1 answer
221 views

Ironpython in spotfire to change the active datatable or visualization?

I was hoping someone would be able to help me figure out how to change the currently active datatable and/or visualization using IronPython in Spotfire. I currently have a button configured to run an ...
TheNewGuy123's user avatar
0 votes
1 answer
40 views

How to get a Python Style Traceback in Ironpython3?

I have a script that can run a python string but if there is an error I want to be able to get a string formatted like a standard python error. I'm using IronPython 3.4 This is the C# code I currently ...
Riley B's user avatar
  • 13
0 votes
1 answer
70 views

Most efficient way to calculate and remove overlapping timelines from one timeline in Spotfire

I have a question about timelines in Spotfire. I have a script that takes two timelines from several machines and tasks. -One timeline shows all the task times from several tasks per machine -One ...
Philip's user avatar
  • 9
0 votes
1 answer
58 views

Header format of imported excel files into Spotfire IronPython?

I have a script that writes multiple excel files and I am trying to have another script in Spotfire that creates visualizations from these files. I am getting a "Failed to execute data source ...
intergalactic's user avatar
0 votes
0 answers
51 views

How to import mysql-connector in IronPython (Unity)

EDIT: NOT SOLVED, BUT PROBLEM AVOIDED: Instead of running a Python script which executes SQL, I have decided to just send http requests from the C# script straight to a python flask server which can ...
lrainey6-eng's user avatar
1 vote
1 answer
82 views

When accessing Autocad via COM using IronPython, how can I convert return value into a Python list?

I am using IronPython with the RevitPythonShell to access a DWG file via COM. I have the COM access portion working but I can not figure out how to convert the return value into a Python list. My ...
Michelle's user avatar
0 votes
0 answers
40 views

When calling scripts from Python files to c# code, the IronPython library does not see libraries from Python code

Using a Python script that uses pyvisa to access third-party devices. How can I call this script in my C# program so that there is no error No module named 'pyvisa'? The python code itself works and ...
Sanekyakar's user avatar
1 vote
0 answers
24 views

Is there a version of the PyDev debugger that supports Python 3.4 in LiClipse?

I want to use IronPython 3.4 as my project interpreter in the latest version of LiClipse. The program runs fine but there is an error when trying to debug it. I tried to run the debugger on my program ...
Amber's user avatar
  • 11
0 votes
2 answers
151 views

Is it possible to change the number format category of individual Y-axis scales in Spotfire using IronPython script?

I am new to spotfire and I am trying to apply different Y axes scales and format each one according to a document property that is changeable with a dropdown. Here is the code I am using, this script ...
Mehrez's user avatar
  • 1
0 votes
0 answers
31 views

IronPython .NET launcher in Microsoft Visual Studio

I've installed IronPython then installed Microsof Visual Studio I want to be able to step into C# code but the 'IronPython (.NET) launcher' is not in the Debug window (shown below) only the 2 shown: ...
magicsword's user avatar
  • 1,229
0 votes
0 answers
16 views

Nltk not running in c# window application form

As i am running my index.py file in c# form (using ironpython), it is giving me error that couldn't find ntlk even though I already installed it. When i am running my index.py file in jupyter notebook ...
Shreyansh Rawat's user avatar
1 vote
2 answers
63 views

Install Python package inside an IronPython script

I want to install a python package inside an IronPython script. I want to write an IronPython script which checks if a package is already installed; if not, the script installs the package. I tried ...
Farhad's user avatar
  • 29
0 votes
0 answers
45 views

Access Visual Studio DTE members specified in DTE2 interface in IronPython

Using IronPython 3.4.0 I can get the visual studio's DTE object using: import System dteClassType = System.Type.GetTypeFromProgID("VisualStudio.DTE.16.0") dte = System.Activator....
omarL2's user avatar
  • 1
0 votes
1 answer
178 views

POST request with json data using ironpython

I'm writing code in ironpython and I'm trying to send a http post request to the server with json in the request body. For this I use the C# method: HttpWebRequest. I know there are more advanced and ...
Eyal Sinay's user avatar
0 votes
0 answers
209 views

Iron Python script to capture Spotfire columns that have been marked and/or filtered and send them to a JSON?

I am currently working with this script: import clr import sys clr.AddReference('System.Web.Extensions') from System.Web.Script.Serialization import JavaScriptSerializer from Spotfire.Dxp.Data import ...
tech_ofedges's user avatar
0 votes
0 answers
32 views

How to populate a filter using ironpython

I tried adding a filtering scheme using the code below, but when I want to populate it with a list ("demandcompounds"), I get the error message AttributeError: 'DataFilteringSelection' ...
Zegher V's user avatar
  • 127
0 votes
1 answer
102 views

Spotfire: Replacing NULLs with next valid value after it within a group

I have a requirement wherein I need to substitute the NULL rows in Spotfire with the next valid value after it. This substitution should be done per "State-City" combination. I tried using ...
user3162403's user avatar

1
2 3 4 5
53