Re: Get Load on Electrical Element (or, Get Parameter from Connector)
Hi David, I agree with Nathan that the #1 way should be good solution:- Gets FamilySymbol of FamilyInstance: FamilySymbol sym = doc.GetElement(FamilyInstance.GetTypeId()) as FamilySymbol- Edit the...
View ArticleRe: Add Ribbon panel to custom Ribbon tab
payalorna-This link should get you going. https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2016/ENU/Revit-API/files/GUID-1547E521-59BD-4819-A989-F5A238B9F2B3-htm.html. Nate
View ArticleRe: Graphics parameters of storagetype elementID. How to access possible values
I'm running into this same problem. It's probably not the thing everyone does on a day to day basis but I've got myself in a situation where I need to do this. I have a family with nested families...
View ArticleRe: Modify CropBox of Elevation View
This is a bug. See discussion here:http://forums.autodesk.com/t5/revit-api/modify-cropbox-of-elevation-view/td-p/3604982(also a good idea to search prior to posting: this is the same exact post...
View ArticleRe: HostObjectUtils
One thing is that it seems you're variable names may not be helping: faces = HostObjectUtils.GetBottomFaces(element) face = doc.GetElement(faces[0])Might help if it looked more like this://Because...
View ArticleRe: RegisterDockablePane from Eventhandler
Firstly, you can set the UIControlledApplication object to global variable, then you can access it in OnApplicationInitialized.Secondly, after registering a dockable pane, you need to call...
View ArticleRe: Element creation and adding Entity data in same transaction is buggy
Dear Iwona Budny, We checked the document you provided, unfortunately however it is hard to us to find a clue how to recreate this problem. In order to diagnose, could you isolate your test project and...
View ArticleRe: Project parameters not updating
Dear Remy Van Den Bor,I cannot believe this may happens either :)In order to diagnose, could you isolate your test project and send us a small, reproducible sample? Note, please do not send us any...
View ArticleRe: Remote Debugging Revit 2016 API with Visual Studio 2015
About the debugging I can debug on my computer, but the remote configuration does not appears on a Class library like the win app store.I found the exception, it was an old exception when trying to...
View ArticleCable tray connector LocationPoint.rotation
Hi all, As exporting a whole Revit Scene, every element looks to be to the right place, except the cable tray connectors (junctions). While looking at the LocationPoint.rotation of the connector, I...
View ArticleRe: Cable tray connector LocationPoint.rotation
It seems that the Angle of a Cable tray junction is not the element's angle but is instead the complementary angle... Example: Where I should get an element's angle of 90 deg, I get 270 deg......
View ArticleRe: Cable tray connector LocationPoint.rotation
pbaile-How do you know the angle should be 90 not 270. Can you give a screenshot or an example explaining this. If you place a fitting by itself look at the orientation. That is what will be 0. Now...
View ArticleRe: Add Ribbon panel to custom Ribbon tab
You are looking to add a new panel to the current tab according to your image. public Result OnStartup(UIControlledApplication application) { // Create two push buttons PushButtonData button1 = new...
View ArticleRegistering a Revit Event handler using VB
I've searched, tried language conversion utilities, etc., etc... I simply can't find a working example (or anything in any version of help for the API on any site or in the Labs) of registering for...
View ArticleRe: External Event stuck as pending?
Did we get anywhere with this? It looks like I'm having the same problem. Attempting to raise an external event from modeless dialog and it occasionally just decides not to do anything at all (it may...
View ArticleRe: Modify CropBox of Elevation View
No worries. If you need to work around it in 2014-2016 you can, believe it or not, locate the section marker that "represents" the view and use the ElementMoveUtils (or ElementTransformUtils? can't...
View ArticleRe: External Event stuck as pending?
Unfortunately I have not gotten anywhere with this. I had to chase a few other things and haven't had the time to try to create a sample yet. If you can that would be awesome :). Let me know if you...
View ArticleRe: Starting another Revit session and interacting with it
tshunau, I've done a lot of testing and am giving it to users today. The Application Setting method has not caused any issues so far, but Mustafa is correct in his concerns. You have to account for...
View ArticleRe: Schedule's cells
There are a few more hoops to jump through in Revit. I'm also not making any promises about what is possible with these classes relative to a Revit schedule. They suggest that you can manipulate and...
View ArticleRe: Registering a Revit Event handler using VB
Hi Gary, It seems like you've discovered that these event handlers are delegate instances. If that isn't necessarily the case: https://msdn.microsoft.com/en-us/library/ms172879.aspxIn adding the event...
View Article