Questions tagged [revit-api]

Revit's API allows users to create customizations of the Autodesk Revit environment with tools that can greatly enhance end users' capabilities. The program is built around Microsoft's .NET Framework.

Revit's API allows users to create customize the environment with tools that can greatly enhance end users capabilities. The program is built around Microsoft's .NET Framework.

Resources:

Forums:

977 questions
-1
votes
1 answer

sloped walled direction and the host for windows and doors revit api

1- How can I find the angle for sloped wall in the x,y.I used the code below to find it for the walls but it didn't work for sloped wall. When I use it for the ordinary walls it gives XYz like 0,1,0/0,-1,0/1,0,0/-1,0,0 but for the sloped wall it…
uakam
  • 27
  • 6
-1
votes
1 answer

Revit API Class Opening Infomation

can we add new parameters to the opening class in Revit? not for the shaft opening but for the others opening: Rectangular Straight Wall Opening Floor Opening cut Roof Opening Cut can we change the opening class family name or add parameter to the…
Jason Kee
  • 1
  • 1
-1
votes
1 answer

Revit Macro Manager C# Error

I am trying to create a macro using c# in revit. I am getting 3 errors. i) The name 'WallSection' does not exist in the current context (CS0103) ii) The name 'WallLayerDimensions' does not exist in the current context (CS0103) iii) Then name…
kulkul
  • 1
-1
votes
1 answer

Deserialize Json XYZ Point

Autodesk Revit Development I serialized an XYZ point form a class (Points) from a container (Points and Tags) to a file. public class Serialize_pack { public View_3D_Data v3ddata; public Tag_Class tg; } through this Method public static…
M.Khalil
  • 33
  • 2
  • 7
-1
votes
1 answer

Pass Element Id from file to another filer Revit Api c#

I'm trying to make copy from family file contain Extrusion (the Element i want to select ) and make copy of it in another file "I mean there is two opened files where i select the element from the family file and paste it in another project file…
-2
votes
1 answer

Convert python to C# Revit API

I am beginer in C# and Api, so it some difficult for me to convert useful solutions to my code. Please help understand how do it? In goal need find shortest way. Have some elements which connected each other by connectors. With this in hand I can…
Bender__SS
  • 21
  • 4
-2
votes
1 answer

Revit Api.. How can I set the "View Template" parameter to none? I am using C# to duplicate a view

I am duplicating a View using the API through an external Application but I want to set the "View Template" type parameter to none once it is created.
-2
votes
1 answer

C# Form Difference in text display

I am making an addin for a modelling program called Revit. In my addin several UI elements will be used and I want them to look exactly like the UI's of Revit. I have found the font Revit uses and which size but the UI of Revit has some blue and…
-2
votes
1 answer

How to find Exterior wall facing south-east, south-west, north-east, north-west in C# Revit API

I need to find "exterior wall facing" in c# revit API...please help me. I want the wall facing.. the wall is in which facing like southEast, southwest, northeast, northwest. I have referred this…
dev_Pin
  • 3
  • 3
-2
votes
1 answer

generate handwash and toilets with Revit api

Within Revit, there is the possibility of locating toilets or handwash, using the option within the system and plumbing fixture. My question is is there the possibility of creating them using the Revit api? The only thing I've seen is the creation…
j-j suarez
  • 111
  • 3
-2
votes
1 answer

Room Tag type - REVIT API

I have Room Tag family & its types as follows : Room Tag Rec : Length X Width Room Tag Rec : Width X Length Room Tag Rec : Square My question is, How to assign above room tag types in room tag in REVIT 2018 API My existing tag name is Room Tag :…
-2
votes
2 answers

Combine elements of two arrays in pairs

I have three arays: string[] comet1 ={comenta1,comenta2,coment3,......This way for all the selected elements}; string[] paramet1 = { long1,long2,lon2,......}; string[] parametr2={ alt1,alt2,alt2,......}; TextWriter tw = new…
KURRY
  • 1
  • 1
-3
votes
1 answer

What is "|" in a C# property?

Some context first. Revit is a software used by architects which has an API you can use to automate some tasks, one of the things you can do is create a dialog which will look like a normal Revit pop up. This dialog has a CommonButton property that…
G-BC
  • 101
  • 1
  • 10
-3
votes
3 answers

Visual Studio 2019 Error when debug attach to process

I have used visual studio 2019 (C#) to develop an add-in for Revit software. But when I debug "attach to process". My Visual studio return a error "Your app has entered a break state, but no code is currently executing that is supported by the…
MauNguyenVan
  • 187
  • 2
  • 8
-6
votes
3 answers

Where I can find proper guidance to create Add-in for Revit using C#?

i have been assigned with a task to create an Add-In for auto desk applications. Please guide me where can i learn to create the add-in, because i am new to auto desk applications. Thanks in advance.
Programmer
  • 63
  • 2
  • 8
1 2 3
64
65