Questions tagged [revitpythonshell]

RevitPythonShell is an Addin for Autodesk Revit that provides an IronPython console to run scripts within the Revit API. This addin allows to save and manage scripts from the Revit toolbar and offers convenient tools for scripts creation and deployment.

Installation

An installer is provided for all current Revit versions :

https://github.com/architecture-building-systems/revitpythonshell#installation


Contribution & Support

Github repository : https://github.com/architecture-building-systems/revitpythonshell

Google Discussion Goup : http://groups.google.com/group/RevitPythonShell

143 questions
0
votes
2 answers

Revit Python Shell: How to get Type names of 'Pipe Types' Family with no instances in project?

End goal is to pass the ElementId of the PipeType I want (Plex Wire) to Pipe.Create, but I don't know how to select the correct PipeType ElementId in a project with no Pipe instances to inspect. In a test project, I have used Transfer Project…
0
votes
0 answers

how can I conversion list to array at ironpython?

I want to conversion list[int] to array[int] or int to array[int] I tried to install Mathnet.numerics. but I don't know where I install it and how to install.. for i in range(len(lst)): k = List.GetItemAtIndex(lst,i) p = array[ o =…
0
votes
2 answers

How to get create a vector from a curve?

Maybe I'm misunderstanding the concept of 'curve' in Revit API, but I'm basically trying to create a vector from a curve. What I was guessing was creating a vector from both end points of the curve(using GetEndPoint class), but it seems like it's…
Yongjoon Kim
  • 107
  • 1
  • 8
0
votes
2 answers

Get Geometry from revit element

I have Created the following code and Iam stuck at extracting geometry from the element(in my case it going to be a CAD import) I am expecting solutions to these: How to classify or filter geometry types in the iron python. what is a indexer# I…
0
votes
1 answer

Couldnot import module revit python wrapper (rpw) on revitpythonshell2018

I want to use revit python wrapper with revitpythonshell. I cloned revit python wrapper repo from https://github.com/gtalarico/revitpythonwrapper onto my desktop. Then what should i do so that revitpythonshell can have access to this module? All rpw…
shahabaz sha
  • 61
  • 1
  • 9
0
votes
2 answers

How can I set a ForeignKey on a specific attribute from another table?

This is my first class Klant which means customer. It has an id, a customer-name and users from the customer which is a ManyToManyField referring to users from the the User-table django gives me. class Klant(models.Model): id =…
0
votes
1 answer

How can I fix "ValueError: "" needs to have a value for field "klant" before this many-to-many relationship can be used."

Here are the imports: from django.db import models from datetime import datetime, timedelta from django.contrib.auth.models import User This is the first class I defined. It is the status of the action (Actie) and it has a status-id and a…
0
votes
1 answer

How can I add a new record with multiple actie_gebruiker(s) via the Python shell?

Here are the imports: from django.db import models from datetime import datetime, timedelta from django.contrib.auth.models import User This is the first class I defined. It is the status of the action (Actie) and it has a status-id and a…
0
votes
1 answer

Creating Materials Via API With Appearance Asset

I have a CSV File with RGB Values that im using to create materials in Revit through Dynamo Python scripting, However the materials that are created does not have AppearanceAsset assigned to it(even though it has a appearance asset tab}.Since when i…
Caroni
  • 35
  • 8
0
votes
0 answers

IronPython 2.7.7 win32api

I am working in IronPython 2.7.7 and have Python 3.6 installed. I installed pywin32 in order to be able to access the win32api. I'm looking to use win32api to send keys to a dialog that pops up in Revit (not sure if this will even work) Whenever I…
DanBoghean
  • 85
  • 3
0
votes
1 answer

Get a room's neighbours within Revit 2017 API

I am trying to browse all rooms (or actually all spaces) of a building, in order to get the list of adjacent spaces to each of these spaces. I have read some quite old posts about it here and here, but these use the "Element" property of…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

Specific Heat units specification via Revit 2017 API

Referring to a previous question I posted here, I also have a problem with the units required by Revit. In the RevitAPI.chm help, I read for the ThermalAsset.SpecificHeat Property that "Values are in feet per Kelvin, squared-second (ft/(K s²))...".…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

Specify the specific heat of a material with Revit 2017 Python API

With Revit 2017 Python API, I am trying to create new materials, and then assembling some of these to create new type of walls. It goes pretty well for all properties, except for the specific heat! Basically, what I do is: create a…
Arnaud
  • 445
  • 4
  • 18
0
votes
1 answer

Ironpython and GDAL

I usually use Python 2.7, especially for processing GIS-data. When I want to work with Revit/Dynamo script, I have to use Ironpython 2.7. Both version are installed on my computer and they work fine. Now I want to integrate some GIS processes in…
0
votes
3 answers

Python Code-While loop never end

I am new to Python.Trying to learn it. This is my Code: import sys my_int=raw_input("How many integers?") try: my_int=int(my_int) except ValueError: ("You must enter an integer") ints=list() count=0 while count
1 2 3
9
10