Quantcast
Channel: All Revit API Forum posts
Browsing all 66664 articles
Browse latest View live

Re: system family name

I believe this is NOT achievable by Revit API :)

View Article


Re: Macro for Duplicating an Existing Sheet and Views RVT2014

Hi Giovanni,please try this:// gets all view ids from viewports in viewsheetvar vpIds = vs.GetAllViewports();List<ElementId> viewIds = new List<ElementId>();foreach (var vpId in...

View Article


Image may be NSFW.
Clik here to view.

Re: Splitting Duct using the API

Hi, The function Split is not accessible with API.The only solution is to recreate the fonction. For split a duct, you must :1) select a point on a duct2) create two duct with a space between them...

View Article

Re: Nurbscreation Error

thanks for your reply, but if I am not mistaken the weight of my knots comply with those prerequisits Knots are = 0, 0, 0.25, 0.25, 0.25, 0.25, 1, 1  It would be good to know what I am doing wrong.

View Article

Image may be NSFW.
Clik here to view.

Re: Splitting Duct using the API

Charles.Piro wrote:Hi, The function Split is not accessible with API.The only solution is to recreate the fonction. For split a duct, you must :1) select a point on a duct2) create two duct with a...

View Article


Obtain Sync With Central Number Via API?

When using a Workshared environment, a *.slog file is created in the Backup sub-folder. Each time a sync with central occurs, a line is written in the slog file that contains the Number of that...

View Article

trouble getting a list of WallType objects that are usable

Im really thrashing about attempting to get a collection of WallTypes in the revit api. I dont want a list of WallTypes that are currently in the document (assume that the document is a blank template)...

View Article

Re: trouble getting a list of WallType objects that are usable

maybe a workout.http://adndevblog.typepad.com/aec/2012/05/accessing-system-families-in-a-revit-template.html

View Article


Mock RevitAPI

Hi! I bet this question has been raised a bunch of times before, but this is an important matter (to me). Q: Why does RevitAPI.dll require Revit to run? Will it ever be possible to mock the API?...

View Article


Image may be NSFW.
Clik here to view.

Re: Mock RevitAPI

Hi, you can read this post : https://forums.autodesk.com/t5/revit-api/revit-api-code-without-user-interaction-in-application/td-p/5988165 

View Article

Re: Mock RevitAPI

Thank you, Charles. The post you refer to discuss how to access data in revit-files outside of Revit (which is really interesting, and i've actually written a method that extracts all metadata from out...

View Article

Image may be NSFW.
Clik here to view.

Re: Mock RevitAPI

Sorry, but I don't interstand that you want.In visual Studio, you can debug with Revit, but you want test your code without running Revit ? To test different lines of code, I use macros in Revit. It's...

View Article

Re: How to run the add-in program with out Not responding?

I solve the problem with one line code. Application.DoEvents(); Thanks for the information.

View Article


Image may be NSFW.
Clik here to view.

Re: Mock RevitAPI

Charles,  "you want test your code without running Revit ?" -Correct. That is exaclty what I want. And to be honest, it is rather crucial for efficient coding and ensuring high quality of the code....

View Article

Re: Obtain Sync With Central Number Via API?

Hi Dave, I do not believe so except to either keep a counter in your logic or read the slog file when a sync happens. Dan Tartaglia

View Article


Re: trouble getting a list of WallType objects that are usable

It's been a while since I've extracted wall types. The below came from an older app: FilteredElementCollector collector = newFilteredElementCollector(Command.doc);FilteredElementIterator itor =...

View Article

Re: trouble getting a list of WallType objects that are usable

neither of these works in revit 2016.here's a snippet:UIApplication uiApp = commandData.Application; var doc = uiApp.ActiveUIDocument.Document; var collector = new FilteredElementCollector( doc ); var...

View Article


Why DimensionType Class don't have SetUnitsFormatOption ?

Why DimensionType Class have SetAlternateUnitsFormatOptions and don't have SetUnitsFormatOption ?http://joxi.ru/nAyBoBMhXDVzbr 

View Article

Image may be NSFW.
Clik here to view.

2016 API Bug at LineLoad curve indexing?

I have a plate with 6 edges. I want to create a LineLoad on the first line (with index 0) but it throws exception. I tried it with all the other lines and it worked. First I thought the indexing maybe...

View Article

Re: trouble getting a list of WallType objects that are usable

I should probably mention that i need the elementIds of valid walls are needed as I'm usingWall.Create(Document, Curve, ElementId, ElementId, Double, Double, Boolean, Boolean)method 

View Article
Browsing all 66664 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>