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

Re: Remove project parameter(shared parameter) form Category?

Because you are changing the model by removing the parameter from a category, you will need to use a Transaction to commit the changes to the model.

View Article


Re: Remove project parameter(shared parameter) form Category?

Yes, I have tried, but it can't. 

View Article


Re: Passing Arguments in Revit Ribbon Elements

That explains the expression, "bounced off". At the article bottom is the question, "Was this article helpful? Yes or No". We all eventually reach this article. No, it is not helpful in regard to...

View Article

Re: Remove project parameter(shared parameter) form Category?

It's useful ElementCategoryFilter filter = new ElementCategoryFilter(BuiltInCategory.OST_Walls);            FilteredElementCollector collector = new FilteredElementCollector(doc);...

View Article

Re: Remove project parameter(shared parameter) form Category?

Dear Archilies,  Do you solve your issue?. if Not then try below steps. Step 1.  Find Appropriate Parameter from Document:Definition df =null;ElementBinding bid =null;BindingMap map =...

View Article


Re: Isolate elements on a newly created view

Ok, so the internal version of Revit still has this "issue", lets hope you guys can track it down. Thanks for the work around, i tried two transactions as well before, but it didn't work. The trick is...

View Article

[bug report] Isolate model group in view

In response to: https://forums.autodesk.com/t5/revit-api-forum/isolate-elements-on-a-newly-created-view/td-p/6206355 We are unable to isolate Model Groups in Views. It looks like the Model Group is...

View Article

Re: Revit 2017 Add-In using Macro API

Hi Troy Thx for the response. Do you execute your macro manually via the Revit UI then, by accessing the macro manager? PS. Noticed one can only close the last active document via the Revit UI, either...

View Article


Re: Parameters wich changes equally across different types in a family?

Dear KB, want to know parameter  name will be same or parameter value. For parameter value: You have to create Type Parameter. Note: Parameter name is same for all mapped category. To creating...

View Article


Revit 2017 Add-In Executing a Custom External Command

Hi Having some external command issues, seems like my command executes just fine from the Revit UI, but when executed from my add-in there seems to be no exceptions - but the desired result is not...

View Article

Re: Get Pipe Length

Hi, it's hard to guess the cause without seeing what you do exactly.What do you try to cast into what ?  Revitalizer

View Article

retrieving type id based on family name

I have to retrieve the type id (typically returned by Element.getTypeId()). The only info I have is a family name and there does not have to be an instance loaded into the project. I manage to find the...

View Article

Re: Enclosed Region using Room Separator

This should get you going:public void CreateRoomAndSeperators() { Document doc = this.ActiveUIDocument.Document; View activeView = doc.ActiveView; //You should make sure you're in a Plan View XYZ pt1 =...

View Article


Re: Isolate elements on a newly created view

Dear Michal, Thank you for your test, confirmation and sample code! I summarised, cleaned up and published our conversation here of others to enjoy better still:...

View Article

Pick new Command

I am trying to write an API that requires to trigger the pick new command.  RevitCommandId RCID =...

View Article


Re: Revit 2017 Add-In using Macro API

I am using it via an addin and not in a macro. 1) External Command that loads form that batch open/closes documents. Once the form has completed running the batch process (Steps 2 and 3 below), it...

View Article

Re: Passing Arguments in Revit Ribbon Elements

Also, there is nothing in the text explaining how these events are triggered in the command.  Maybe I'm setting this up wrong, but there isn't anything explaining how to properly do this. I have a DLL...

View Article


Re: browsing model files in the cloud (A360 C4R)

Hi Jeremy, Just wondering if there has been any progress made or discussion happening within the API team regarding C4R document management. This is really a major hangup for our add-in. We've looked...

View Article

Re: Passing Arguments in Revit Ribbon Elements

Here is a very simple example showing how to create a barebones TextBox and grab the value when the Enter Key is pressed. Once you have the textBox.Value, you can send that to your command. public void...

View Article

CentralFileCommunicationException in OpenAndActivateDocument with OpenOptions

var openOptions = new OpenOptions(); openOptions.DetachFromCentralOption = DetachFromCentralOption.DetachAndDiscardWorksets; uiapp.OpenAndActivateDocument(filePath, openOptions, false);I'm getting an...

View Article
Browsing all 66662 articles
Browse latest View live


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