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

Re: Refresh projectbrowser (after renaming sheetnumber)

That sounds hopeful..!!! As you describe it, the project browser is a view, type of Autodesk.revit.db.view.  How to get that view?I Tried this with the standard Autodesk 'Simple Project' in Revit 2017:...

View Article


Re: Refresh projectbrowser (after renaming sheetnumber)

 This should do it (tested in 2016): Dim projectBrowser As DB.View = New DB.FilteredElementCollector(doc).OfClass(GetType(DB.View)).Cast(Of DB.View).Where(Function(v) v.ViewType =...

View Article


Raster and Vector Views in same Sheet

In the Revit 2017 help link:"About Vector Processing and Raster Processing",there is the following sentence: "If a sheet contains multiple views, Revit uses raster processing only for the views that...

View Article

Re: Refresh projectbrowser (after renaming sheetnumber)

In Holland (The Netherlands) we would say: "Dat werkt als een tierelier..!!"It means: "It's work perfectly fine...!!" Thanks a lot..!!!!!  

View Article

Re: Refresh projectbrowser (after renaming sheetnumber)

No problem - glad you got it working!I've had this issue myself in the past, so I'm sure I'll use the solution at some point. :)

View Article


Re: Setting FamilyParameter via API

MarryTookMyCoffee, Thank you, that was it.  I didn't realize that the FamilyManager had the Set/SetFormula methods for this purpose. Thank you again. 

View Article

Re: WPF xaml files go missing after build in Visual Studio 2013

Just wanted to say thank you for figuring this out. I ran into the same issue today of having a macro with the same namespace as an addin. This caused all WPF to be non-functional. After deleting the...

View Article

Re: Setting FamilyParameter via API

Glad I could help

View Article


Re: Retrive In-Place Mass Reference Level

Did you ever have any luck with this? I am running into a similar problem.  thanksKen

View Article


OnInstanceEnd called to early

Hi, We are using the Revit API interface IExportContext to export a Revit scene (document) to our software. We have experienced that some objects in the scene when they are exported we first receive a...

View Article

Remove family type parameter

Hello. I know, that Revit Api allows me to create custom parameters in .rfa files and set their values. For example:  foreach (var type in neededFamTypes) { familyManager.CurrentType = type;...

View Article

Clear family type parameter value

Hello. I know, that Revit Api allows me to create custom parameters in .rfa files and set their values. For example:  foreach (var type in neededFamTypes) { familyManager.CurrentType = type;...

View Article

Re: Clear family type parameter value

Hi,As far as I know there's no way to reset the value to .HasValue=false (other than deleting and re-creating the parameter).You must have the same parameters for each 'type', it's only their values...

View Article


Re: UIDoc.Selection as a ViewSheet is empty

Hi Matt, Thanks again for your assistance.  I am thinking you misunderstand . . . the behavior is not revit with my addin, the behavior is revit, and it affects my addin: when I select something in the...

View Article

Re: UIDoc.Selection as a ViewSheet is empty

I have solved this by using the active view . . . if it is a viewsheet then I use it.  If not then I ignore and let the user select a viewsheet from a dropdown which has been the way it works.  A...

View Article


Re: UIDoc.Selection as a ViewSheet is empty

Hi,I was trying to see if there was something else causing your issue other than Win10.I can attest that the method you wanted to use works fine on my Win7 installation.You may want to check out this...

View Article

Setting system type in advance

Hello!So I want to change the current type of my piping system from hydronic return to hydronic supply for example before I create my pipe via API. Is it possible?

View Article


Recording Executed Commands

I am trying to write a script that records the commands that a user executes. Basically, I want to record the time and the command Id in a text file. I have written an External Application and used...

View Article

Re: Setting system type in advance

Hello!If I understand you correctly, you may want to look into SetDefaultElementTypeId.If that doesn't do what you want, can you be more clear about what you are trying to achieve? -Matt

View Article

Re: Recording Executed Commands

Hi ,If you want to record user interface (UI) actions, you really need to deal with the Revit.UI namespace.The user interface and the database (DB) actions are quite clearly defined, and separate.To...

View Article
Browsing all 66660 articles
Browse latest View live