Quantcast
Channel: All Revit API Forum posts
Viewing all 66914 articles
Browse latest View live

Re: How to access a Railing's slope options through API?

$
0
0

Per communication with engineering team, it's confirmed railing slope was not supported by API yet.

 

I am sorry to say that there is currently no API access to this functionality.


The engineering team already had filed wish issue item REVIT-74218 [As an API user, I need methods for Railing path height modification, so that I can define slope of the railing] as this issue requires exploration and possibly a modification to our software. Please make a note of this number for future reference.


You are welcome to request an update on the status of this issue or to provide us with additional information at any time quoting this wish list item number.


This issue is important to me. What can I do to help?


This issue needs to be assessed by our engineering team, and prioritized against all of the other change requests that are outstanding. As a result any information that you can provide to influence this assessment will help. Please provide the following where possible:
• Impact on your application and/or your development.
• The number of users affected.
• The potential revenue impact to you.
• The potential revenue impact to Autodesk.
• Realistic timescale over which a fix would help you.
• In the case of a request for a new feature or a feature enhancement, please also provide detailed Use Cases for the workflows that this change would address.
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact Change Requests. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

 

 


Efficiently Find the Sum of Room Areas with F# - tailoryourbim.com

$
0
0

Dear readers,

 

While working on Revit, I noticed there could be a few possibilities to improve the efficiency when retrieving the sum of room areas by writing external commands. And I posted on my blog, tailoryourbim.com, how to write an external command with F# and RevitAPI, which instantly report the sum of selected room areas. I would like to share this knowledge with you.

 

[...] we want to know instantly the sum of areas from different rooms. This is quite useful, when planning the fire compartments we want to be sure that it does not exceed the limit by the law. In Revit API, an area of a room is in the API’s structure similar to as a length to a curve. It is a pre-set parameter. [...]

 

There is one related post in this forum. While I think, having a directly response while modeling might be faster than switching between views and schedules and thus improve the working efficiency.

 

If you're interested for more information, check on tailoryourbim.com.

How to add "Up text" and "Down text" parameters in a Schedule?

$
0
0

How can I put the "Up text" and "Down text" parameters in a Schedule, using the API's or in the UI?

Relative path for folder

$
0
0

Hi everyone,

 

I am starting with some first Revit add in and one thing I am concerned is how to create the relative path for my icon url for my add in as following code: 

 // Determine the data for a push button, include the name of the command to execute
                        PushButtonData pushButtonData51 = new PushButtonData("DetachModels", "DetachModels", thisAssemblyPath, "CherryBIMservices.BatchDetachedModel");

                        //Add push button to the ribbon panel
                        PushButton pushButton51 = ManagePanel.AddItem(pushButtonData51) as PushButton;

                        // Add a tool tip for a button
                        pushButton51.ToolTip = "Batch detach models";

                        // Add URL of image, set as Bitmap and set the image as the icon for the pushbutton
                        Uri uriImage51 = new Uri(@"C:\ProgramData\Autodesk\Revit\Addins\2017\CherryBIMservices\51.png");
                        BitmapImage bitmapImage51 = new BitmapImage(uriImage51);
                        pushButton51.LargeImage = bitmapImage51;

My question is how to replace the path : "

C:\ProgramData\Autodesk\Revit\Addins\2017\CherryBIMservices\51.png

by relative path. 

 

Thank you so much for your help.

 

Best Regards,

 

Cherry Truong

Re: Grafikkarte für Revit

$
0
0

Please note that this discussion forum is dedicated to programming Revit using the Revit API.

Therefore, you cannot expect an answer to a question such as yours relating to installation, product usage or end user support issues here.

You should try one of the non-API Revit product support discussion forums instead for that:

https://forums.autodesk.com/t5/revit-api-forum/this-forum-is-for-revit-api-programming-questions-not-for/td-p/5607765

The people there are much better equipped to answer your question than us programming nerds.

I hope this clarifies.

Thank you for your cooperation and understanding.

Best regards,

Jeremy

Re: Relative path for folder

Re: Efficiently Find the Sum of Room Areas with F# - tailoryourbim.com

$
0
0

Thank you very much for sharing your interesting solution.

 

I'll add a pointer to it some day soon in The Building Coder, if I may.

 

Cheers,

 

Jeremy

 

Re: Retrieving Asset from MaterialNode


multistorey stair subements

$
0
0

Hi

 

Is there any way to get the subelements (stairs, stair runs, landings, etc) of a multistory stair? 'GetAllStairsIds' only seems to return one instance of the stair, not all the instances.

 

The only way I have managed to do this is to unpin the stair (as documented here: https://forum.dynamobim.com/t/multistory-stair-components/23767/29). But the problem with this method is that when the stair is re-pinned, any associated dimensions drop off.

 

How can I get all the subelements of a multistorey stair without unpinning each individual stair?

Re: Collaborate In Cloud . . . what is happening?

$
0
0

Hi,

Unfortunately, Revit does not expose the API to automatically enable a user to save/initiate his model to cloud yet, but that's a good suggestion, I already forwarded to our engineering team as a request. Thanks.

Re: Autodesk - Subscription center Email address to change?!

$
0
0
it does not work. see the Sdreenshoot

Re: Relative path for folder

$
0
0

Hi,

replace

C:\ProgramData

With

 

Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)

 

 

Thanks & Regards

Sanjay Pandey

Re: Selecting in Linked Documents

$
0
0

Hi,

 

Here You go:

  UIApplication uiapp = commandData.Application;
            UIDocument uidoc = uiapp.ActiveUIDocument;
            Application app = uiapp.Application;
            Document doc = uidoc.Document;
			ObjectType obt=ObjectType.LinkedElement;
			Reference refElemLinked;
			Element linkedelement = null;
			refElemLinked = uidoc.Selection.PickObject(obt, "Please pick an element in the linked model");
                        RevitLinkInstance elem = doc.GetElement(refElemLinked.ElementId) as RevitLinkInstance;
                        Document docLinked = elem.GetLinkDocument();
						linkedelement = docLinked.GetElement(refElemLinked.LinkedElementId);

Thanks & Regards

Sanjay Pandey

Re: Relative path for folder

$
0
0

One more suggestion for you. I use:

 

System.Reflection.Assembly.GetExecutingAssembly().Location

 

This line of code gives you the path where your DLL is located. Make sure your PNGs are in the same folder and then it is easy to find them.

Re: How do I go into Group Edit mode with the API? & then return to the main

$
0
0

Is there any updates on this item?

i am currently facing similar issues when facing groups.

We are assigning parameter values in bulk, but once we hit groups it is getting very tedious to get it all working.

 

Does one of the newer api's (as the post is from 2016) offer some new options for assigning project parameter values (instance/vary per group)?


Re: Beam and Column Dimensions

$
0
0

Does anybody know how to get section parameters in newer versions of Revit?

 

I have the following code and I want to get width and height values of the column.

FilteredElementCollector collector = new FilteredElementCollector(Global.doc()).WhereElementIsNotElementType().OfCategory(BuiltInCategory.OST_StructuralColumns); // select all structural columns
List<Element> allcolumnList = collector.ToList(); // select all structural columns as a List

Re: Change Design Option in Revit API

$
0
0

Here is a Q & A on this from the Revit API Panel @ AU Las Vegas 2017:

 

http://thebuildingcoder.typepad.com/blog/2017/11/revit-api-panel-au-las-vegas-2017.html

 

Q: Have a requirement to accept design options on the project.

A: Not exposed on the API, but just accept design option is easier, but needs to be on Revit Ideas.

 

Please check for a wish list item for the desired functionality in the Revit Idea Station and vote for it, if found; submit a new one, if not.

 

Here is a very tricky workaround suggestion, if you are willing to hack:

 

http://thebuildingcoder.typepad.com/blog/2015/03/list-and-switch-design-options-using-ui-automation.html

 

Cheers,

 

Jeremy

  

Re: multistorey stair subements

$
0
0

Dear Paul,

 

Thank you for your query and for raising it here in the public forum after our private linkedin discussion.

 

I passed it on to the development team for you and will let you know as soon as I hear back from them.

 

Best regards,

 

Jeremy

 

Create customised note block

$
0
0

Is there any way create customised noteblock in revit api and I need to add instance parameter to schedule after its creation.

Capture.PNG

Regards

Navya Y.B

Cutting with BREP voids

$
0
0

Hi,

 

Presently, I can create BREP solid instance families with the Revit (2019) Brep builder API without an issue, it works very well.

 

I am now attempting to create BREP void in place families using a similar technique (change the BRepType from SOLID to VOID) and ensure that the face normals and co-edge directions are correct for voids. The BREP void appears to be created without issue but when I try and cut an object with an instance of this BREP void, either via the API (InstanceVoidCutUtils.AddInstanceVoidCut() or the UI cut tool, the cut fails. 

 

I have tried several times to find out why this is so but so far no luck, any thoughts on what is happening here, is something being missed or are BREP void cuts not really allowed?

 

Many thanks,

 

Gary Easom

Viewing all 66914 articles
Browse latest View live


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