Read Revit Schedule data using design automation API - revit-api

I am planning to read schedule data from Revit files like (room schedule or door schedule).
is there an example doing so using design automation api for revit.

We have some basic very basic samples that you can extend to achieve what you want. Any Revit API defined in the Autodesk.Revit.DB should work in Design Automation for Revit.
Code Samples (look for CountDelete and SketchIt)
Postman Tutorials
Advanced Tutorials

The simplest, clearest and most comprehensive sample I have to offer on accessing schedule data is provided by the article on The Schedule API and Access to Schedule Data.
Unfortunately, it predates DA4R, design automation for Revit.
Happily, you can easily adapt it by following the steps described in The Building Coder topic group on DA4R – Design Automation for Revit.

I used Rahul Link and made a very nice Schedule AddIn that work on BIM 360 Docs.
One note i beleive you might face is when you get the " 403 error Maximum number of items exceeded" when uploading the bundle. the error was attributed to sending the file as a parameter. The resolution was reading the file into memory first then pass it as form-data.

Related

Find out which office.js requirement set my code is using

I would like to integrate into my CI/CD pipeline a requirement set condition.
I'm developing an Office.js Excel addin and I would like to track client compatibility.
There is a way to inspect code to detect the maximum value of requirement set?
The codebase is not so small, and I want to keep an eye on client compatibility.
Thanks
Good question! There is no tools for such tasks, developers are responsible for checking the requirement set before using a particular method or property in the code of Office add-ins.
Sounds like a subject for a feature suggestion. You can post or vote for an existing feature request on Tech Community where they are considered when the Office dev team goes through the planning process.
As far as I know, there is no automated way to see what Req Sets are used by your code. That would be a valuable tool. Consider suggesting it at Microsoft 365 Developer Platform Ideas.

Azure component that compares 2 word documents?

I am looking to build a solution where we can compare (Automated) a word document we email to a client to the word document the client emails us back.
Any suggestions please, we will be using MS Azure to create the solution.
Due to the lack of a direct automation of this feature you can use an indirect route to approach the solution.
Note:
This solution invokes Word using COM automation. Hence this is expected to be running on a VM that has word installed.
Since this solution simplifies the content that is being compared, it might lose the details you might want to show up in your comparison.
You can create a PowerShell script that does the following
Convert the documents to a simpler (txt) format - See this or this.
Compare the text files - See this.
The powershell script will get the comparison done. After that its up to how much fancy you want to get when exposing this functionality outside that VM. e.g. You could create an HTTP invokable API that can call this Powershell script and return results.
I think your best bet would be using Microsoft Azure Logic Apps! Azure Logic Apps allows you to develop advanced automation workflows on the cloud and it supports a vast array of connectors out of the box including email triggers and the Microsoft Word Connector. If that's not enough then, you could even develop your own connectors too...

Automating Approval Processes in Dynamics CRM

A bit of background before I begin.
Background:
I am working on migrating an existing .NET based system to Dynamics CRM and one of its key feature is its 'Request Approval Process'. I have implemented some simpler versions of such approval processes in past but this one is a bit complex since it involves multi-level approvals, multiple approvers at one level, amendment logic, delegation functionality, etc.
Analysis Till Now:
Before pushing this question at SO, I did a fair analysis of the requirements from my end and have come up with few possible approaches:
Workflow based approach (something on lines of this)
Complete custom logic using Plugins/Web Resources (something on lines of this)
I am not explaining the details of these approaches as of now but the core issue is that none of these two approaches are fitting correctly to my requirements.
Queries:
While analyzing these approaches I came across some newer functionalities added to CRM (listed below) but did not get any additional resources to explore them further. I just want to confirm that I am not trying to achieve something which is already present out-of-the-box or going in the incorrect direction.
1. Internal Process Automation:
Reference: Here
Any leads/thoughts on this approach? I am not able to find any good documentation/articles around this.
2. Graphical Approval Workflow:
Reference: Here
This feature seems to be useful but it is mentioned to be a part of Dynamics Marketing. With the new structuring of Dynamics 365, will this feature be a part of Dynamics CRM by default?
Also, the Prerequisites section of this link mentions certain Item Types for which you can configure this functionality. So can't we use this functionality for any entity records?
Any kind of help/inputs would be appreciated.
I'd suggest the best of both worlds: using out-of-box Workflows along with custom Workflow activities that you can write with C#. Use as much out-of-box functionality as you can, but when you need to query records or run custom logic, create a custom workflow activity that can be used in your out-of-box Workflow. Custom workflow activities are similar to plugins in that they are written using C#. You can have custom inputs and custom outputs for your activity.
For example, maybe your approval process needs to look up the appropriate approving user for this record. You could write a custom workflow activity that takes an input (the record being approved) and an output (the user that has the ability to approve). Then in your Workflow, you'd add your custom activity as a step. After that step, you could send an email to the approver by using the output of that custom step.
More information about custom workflow activities: https://msdn.microsoft.com/en-us/library/gg309745.aspx

Integrating Sharepoint with Quality Center

I am an intern for a company that wants to try to integrate data from HP Quality Center (graphs, dashboards, data etc) into Sharepoint 2010. The whole idea is that once a test case or something is updated through Quality Center; it should automatically update on sharepoint. Any ideas on how this could be done?
Well quality center does have a database behind it, so you could query that via BCS.
OR, for bonus points since QC doesn't offer any web services, you could expose the data yourself using the COM API that they provide. We have done this in-house to tie into our own reporting system. non-SharePoint sadly.
If you want to show QC reports in share point, then you can define the reports in QC, and use OTA (The COM API) to periodically pull those reports and store them in share point.
To find more information regarding the API, just go to help menu, there you can find documentation for both the COM API and for DB structure.
If you want to update data in share point and not show aggregated results, then you can write a workflow script which will be triggered when data is changed in QC. In that script you can do pretty much any thing you want as long as it's COM. So you can go to share point as well and update data there. For workflow documentation and example go to help menu in QC.

How do I build custom workflows in SharePoint?

I need to learn how to build custom workflows in SharePoint. In addition to basic stuff like having legal sign-off on documents, I need to be able to execute arbitrary custom code at certain points. For example, after legal signs off it should export the document and update a database table indicating that a new version is ready.
Is this possible using SharePoint? If so, where can I find the documentation or tutorials I would need to get started?
Getting Started Link 1,Getting Started Link 2 links will help you to get started with the SharePoint Custom Workflows. And also it is possible to do any arbitrary code inside the workflow. Also there is another type of work flow called State machine for which there is a class one article
Workflow as the whole is built using sub parts called Activities which dictates what the workflow should do at a particular point of time, I remember you have an activity called Code Activity which will help you to achieve what you want.
Robert Shelton's Workflow Video Tutorial series is very helpful:
http://rshelton.com/Tags/Workflow/default.aspx

Resources