Is it possible to add/create custom enviroments from HDRI files - autodesk-forge

I have running Autodesk Forge Viewer and I was wondering if there is a know feature to add custom Lighting and Environments from an HDRI file since I was unable to find any helpful information in the Documentation. Does the Viewer support this feature or how would one go about adding a custom environment.

Customizing the environment maps is not an officially supported feature, but it can be done with a bit of hacking. The viewer uses DDS files for environment maps. Check out https://github.com/wallabyway/adding-shadows#sharper-ibl-reflections-image-based-light-ie-skybox for more info.

Related

Auto Desk - Programmatic updates - Runtime license

Need help on the following question:
We have a set of DWG files which we want to manipulate (in a program), put some layers and put some polylines on the original DWG and save the DWG (preferably using Python or C++). This has to be done on a virtual machine.
Please let me know
If this can be done on Linux machine and also what license shall be required.
If not then for windows what license shall be required.
Can this be done without installing Autodesk on the VM (utilizing only the runtime). If so how.
Thanks so much.
You have tagged autodesk-designautomation, so using Forge Design Automation this can done, it doesn't require any license or hardware, it is a cloud service.
Refer https://forge.autodesk.com/en/docs/design-automation/v3/developers_guide/overview/
Tutorial - https://learnforge.autodesk.io/#/tutorials/modifymodels
Pricing - https://forge.autodesk.com/pricing

Export Schedules from Revit Model using Design Automation API

I have found a plug-in to manually export schedules (rebar, production bom, material lists) from Revit models. However, our company is looking to automate this and take out the human required element of exporting these schedules.
I have not, so far, found a way in the Forge API (Revit Design Automation API) to access these schedules like a can with a custom plug in.
Is this support coming or is there a place to vote on this capability?
Thanks,
Chris
The Forge Design Automation API for Revit enables you to run the same .NET Revit API code as the Revit.exe executable on the Windows desktop. Therefore, you can probably convert the existing desktop add-in to run within the Forge environment. There is no missing capability, not additional support needed, and no need to vote for anything. The Building Coder has explored and documented how to migrate and convert existing desktop Revit API add-in code to run in the Forge design automation environment in the topic group on DA4R – Design Automation for Revit.

Is it possible to use external IFC exporter in DA4R?

I need to use IFC for Revit library SourceForge link.
Can i override the version that is built in?
I mean using Document.Export(path,IFCExportOptions).
How can i use it in DA4R app ?
That's an interesting question, can I know why do you want to override the built in version? is there any limitation? Maybe that is also a good request for us to improve or fix in Revit. And Revit Design Automation engine currently supports Revit 2018.3, 2019.2 and 2020.2, are they all not working for you?
Revit Design Automation includes the support for IFC last April at https://forge.autodesk.com/en/docs/design-automation/v3/change_history/revit_release_notes/, I am not an IFC expert but I don't think there is a way for developer to specify the version in DA4R. But to override the current behavior to export IFC, in theory, you can achieve that within your Revit plugin on DA4R, but you need to customize all the export to IFC functionality within your Revit AppBundle(make sure no namespace conflict with current Ifc export library), you may also need to package all the dependent DLLs within the package to make it work, then upload as AppBundle, define an activity then post a workitem.
Please also notice that the limitation of Revit AppBundle size is 100M by default at https://forge.autodesk.com/en/docs/design-automation/v3/developers_guide/quotas/, you may need to override the size by checking https://forge.autodesk.com/en/docs/design-automation/v3/reference/http/servicelimits-owner-PUT/

Does command that implements IExternalDBApplication need working instance of Revit application?

Actually, I want to find a way to work with .rvt file without starting Revit Application. I want to create monitoring plugin to track changes in Revit Document Model. I suppose it can be made with Application events DocumentChanged. But it may slow the work with model for users. So I'm trying to find a way to work with .rvt file without starting Revit. So, does command that implements IExternalDBApplication need working instance of Revit application?
Your question is confusing.
I assume you are confused.
There are two ways (and two ways only) to access Revit API functionality:
Install Revit on the desktop and launch an interactive end user session. Within that session, you can set up a .NET Revit add-in to subscribe to certain events and make use of the Revit API functionality within those event handlers.
Make use of the Forge Design Automation API for Revit.
In the latter case, you do not have Revit installed locally.
Instead, you upload your application to the Forge system and make use of the Forge API via HTTP requests to launch a Revit engine in the cloud and process your Revit API functionality.
In both cases, however, there is a running instance of the Revit application somewhere providing the Revit API functionality you make use of. This cannot be avoided.
Some helpful links for you:
Getting started with the Revit desktop .NET API
Forge Design Automation for Revit
The Building Coder discussion on DA4R, Design Automation for Revit
I hope this clarifies.

Is it possible to use BIM360 Team (formerly A360) commenting and markup tools in Forge?

BIM 360 Team has a nice built-in commenting tool that tracks issues. Is it possible if we can use the exact same feature inside Forge Viewer API? (my question may sound convoluted because I'm not a software engineer..) For any one who doesn't know the feature, please see below article. Any help is much appreciated.
https://blog.a360.autodesk.com/a360-release-enhanced-commenting-and-markup-tools/
Thanks!
Yes, it is definitely possible. The Autodesk development teams make use of Forge web services to implement A360 features. You have access to the same web services. You may even be able to peruse and analyse their code in the JavaScript debugger to see how they implement the client side user interface on top of the server side web service. In this case, the web service being used is the Issues API. More on that topic here:
http://thebuildingcoder.typepad.com/blog/2016/11/bim-360-docs-issues-forge-devday-and-accelerator.html#5