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

Get an up-to-date material preview image file path

Hi, I thought the new Revit 2018.1 API dedicated to materials would help me solve a quite old issue, but it seems that it is not the case. I want to retrieve (then show) the image preview of a...

View Article


Re: Get AssemblyDetailViewOrientation from existing view

Hello, Still looking for a solution to this!Thanks!

View Article


Re: Schedules and data

Hi Jeremy,Thanks for your answer. I'll try.And if you have an idea of what was wrong in my definition of Shared Parameter...Benoit

View Article

Parameter.Set() error ( iteration over non-sequence of type Parameter)

I've started learn Revit API by myself and I'm really stuck at writing parameter values. You can find in below my script in PYTHON. I would be very grateful for any feedback you could might be able to...

View Article

Re: Parameter.Set() error (the parameter is read-only)

choix = 0

View Article


Re: Parameter.Set() error ( iteration over non-sequence of type Parameter)

I solved my problem . I just changed my collector line : Collector=FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls).WhereElementIsNotElementType()

View Article

Re: How do I create conduit between 2 connectors?

JeremyThank you for your answer.Yes. I have created a conduit connector in the box. I can manually connect 2 boxes with conduit.I tried conduit.create and this method only requests coordinates as...

View Article

Re: How do I create conduit between 2 connectors?

DaleThank you for your answer. As I replied to Jeremy, I used this method but the conduit didn't connect to the boxes.  

View Article


Re: Delete materials and subcategories not used in family

Thank you, Jeremmy!I have seen Harry's solution, but it works only in project, not in family editor and not all unused materials are deleted. Also that solutions is not deleting unused subcategories.

View Article


New schedule using API but don't know how to turn off the grid lines with API

I created a new schedule using the API but can't seem to find code for turning off the grid lines when the schedule gets created. Please, can someone help me with the appropriate code?

View Article

IndependentTag - How do i call this in Revit?

I have a working Ribbon Tab with panels and buttons which work in calling Dialog boxes just for testing. I am now attempting to expand my abilities into something a bit more difficult and though id try...

View Article

Re: How do I create conduit between 2 connectors?

What happens if you ask the connector on one of the boxes to connect to the connector on the other box? Does it automatically create a conduit between them? Please study this series of research...

View Article

Re: Model Line changes it's Length without edit.

Revit tends to treat two curves with a common endpoint as a (part of a) chain, and strives to keep the  curves joined. For that reason copying a (model)line and then rotating or moving the copy, is...

View Article


Family Instance References w/ 2018 API

I am trying to make a command that makes copies of a family instance at every curtain grid line of a curtain wall and locks them.  I have no trouble making the new family instances, locking them is...

View Article

How to copy a wall and it belongs via API?

I want to copy a wall in revit via API using  var el= ElementTransformUtils.CopyElement(doc, wa.Id,new XYZ());But it copyed nothing ,is there I'm wrong?Besides,I want to know how to copy wall and it...

View Article


Re: How to copy a wall and it belongs via API?

make sure you are creating a transaction before using this code,select the elements you want to copyforeach(ElementId eid in eids){XYZ newplace= new XYZ(x,y,z);var g =...

View Article

How to read correct BuiltInParameter values from a list of FamilyParameter

I'm trying to read BuiltInParameter, Parameter Name, Parameter Type etc from a list of FamilyParameter instance. The code I'm using to read the FamilyParameter is written here on the GitHub. The output...

View Article


Re: How to read all parameters including Omni Class, Assembly Description and ot

Thanks, , I used the following code, that helped me to read OmniClass and other relevant family parameter data as well. Family familyowner = doc.OwnerFamily; var parameters = from par in...

View Article

Re: Reload Revit Links From...

Hi , Thanks for your reply! Your methodology suggestion did actually put me on the right path and I managed to make the tool working! The problem was that my revLinkType parameter was not pointing to...

View Article

Anywhere to download revit 2014 & 2015 SDK and Add-in manager?

Hi guys, Sorry to bother you since this is not a "technical issue", but I've been looking around for a long time and can't find any solution. Recently I've gotten a task to develop plugin for rvt 2014...

View Article
Browsing all 67020 articles
Browse latest View live


Latest Images

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