Questions tagged [revit-2015]
29 questions
5
votes
3 answers
Gettings information about stairsruns and stairs from elements containing such information
Hello I have the following code:
public static void HandleStairs(Document doc)
List ret = new List();
FilteredElementCollector collector = new FilteredElementCollector(doc);
…

Thijser
- 2,625
- 1
- 36
- 71
4
votes
3 answers
How can I activate (display) a view using Revit API?
I am trying to activate a view using Revit API. What I want to do exactly is to prompt the user to select some walls, but when the user is asked that, he can't switch views to select more walls (everything is greyed out at that point).
So the view…

Arnaud
- 445
- 4
- 18
2
votes
3 answers
How to load Revit file in API using C#?
I want to load the *.api file in C# code. I am trying to export the images from Revit file for specific views in c# application. The issue is to get the ExternalCommandData from revit (*.rvt) file.
public Autodesk.Revit.UI.Result…

Pravin Wadichar
- 39
- 1
- 7
2
votes
5 answers
Revit API - Wrong full class name
I'm very new to C# and coding. If possible I'm after some assistance figuring out how to fix this piece of code up to work.
They work individually. I can create a new button on the ribbon and execute the standard hello world. i also have a macro…

Shaps
- 21
- 2
2
votes
2 answers
Use python to get view filters for views in Revit project
I would like to be able to find all of the view filters in my project that are not being used.
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
# Import DocumentManager and…

dkam47
- 21
- 3
1
vote
1 answer
Hide elements in Sheets or Revit Document
I am Having a doubt in Revit API. I want to hide some elements in Sheets of the Revit document. But I need an Active view to hide that. view.HideElements(ids) If I take a view which is active and try to hide elements in it, I am getting exception…

Rocker-APK
- 51
- 6
1
vote
3 answers
Matching elements by their category
Once a category is selected we hit the button and the name of the category "goes into" this variable called "selected". Now, how to put inside of ElementCategoryFilter that variable containing the necessary category? selected category
public void…

fysharp
- 101
- 7
1
vote
1 answer
Connecting to SQL Server database with RevitAPI
I'm trying to export Revit data to an external database. What I'm looking for is to use RevitAPI to do the job of exporting. Though if there is a way to do so using Revit's own tools it'll be fine. As long as I can choose and modify the columns in…

Hamed Moghaddam
- 11
- 3
1
vote
1 answer
Determining adjacent wall using Revit API
I have couple of walls in a project. I want to find out which walls are adjacent to each other.

Robert
- 79
- 14
1
vote
1 answer
Calculate geometry of Reference Point
I have 4 placement points which I am using to create a outer panel. However, I have reference points which I want to use it for creating inner panel inside the outer panel. I have offset values available from each side of the outer panel. Now I want…

Robert
- 79
- 14
1
vote
2 answers
"Split Wall" using Revit API
I have a wall and have to split it using Revit API. I have placement points as an input and need to split the wall based on those points. Do we have any command to achieve this using Revit API?
Any help would be greatly appreciated.

Robert
- 79
- 14
0
votes
1 answer
Roof Creation Issue with Revit API
I'm trying to create the roof as shown in below image using the revit api.
Selected roof is placed at Offset From Roof Base at 10' 1" and Adjacent roof is placed at 9'1".
But using the revit api I'm getting this as output.
Please let us know how…

Veeresh Huvinahalli
- 55
- 4
0
votes
0 answers
How can I extract the lines from a fill pattern in Revit using revit-api?
Can I get the lines from a fill pattern in Revit? I've tried a lot of ideas, so is there anyone who has a solution?
I tried the solution from https://forums.autodesk.com/t5/revit-api-forum/dimension-on-hatch-pattern-slab/td-p/7063302, but I didn't…
0
votes
0 answers
Can not add Calculated Value to Schedule
I'm working to create Schedule on Revit by C# but Can not add Calculated Value
Create Schedule on Revit By C#
0
votes
1 answer
How to retrieve the openings of Wall (not the coordinates)?
I have retreive the levels as treeview(List of levels in treeview in WPF form) and then selected a wall(e.g xyz_wall) from a specific level(e.g. Level1) in Revit project, I want to retrieve the list openings(doors and windows) of selected wall and…

Abhijit
- 9
- 4