APS (Forge) Design Automation Inventor Lighting Styles - autodesk-forge

I am creating Inventor drawings with shaded drawing views as the component colors are important to be shown. The views appear much lighter when the drawings are created in Forge compared to when created locally. I have included the Design Data folder along with the project file pointing to it in the bucket upload.
I tried adjusting the lighting style for the assembly and saving both as a local style in the document and also to the Styles Library. This changed the appearance of the views for the drawings created locally, however had no effect on the drawings created in Forge.
It seems like some of the Design Data is being used as the dimension styles from the Design Data are working, but the lighting doesn't seem to be.
I also tried adding an iLogic rule that sets the Active Lighting Style before saving the assembly. This too had the same results.
How can I control the lighting style in Forge?

Related

How to change the geometry of the two selected models?

I know getSelection() is get the db id of seletion model.
but after this i don't know how to control this viewer.
There are two windows selected by the viewer.
I want to change the geometry of the two windows.
Forge Viewer is open Revit file by my bucket.
viewer.getSelection()
=>(3) [3043, 3055]//how to?
Unfortunately, the viewer isn't designed to support geometry modification. You can modify your design elements in these ways:
changing their position, orientation, or scale (blog)
hiding them, and potentially inserting your own custom three.js geometry instead (tutorial)
changing their materials, incl. using custom shaders (blog)
But if you actually need to tweak the individual vertices of the mesh geometry, that would be very difficult to do.

Inventor assembly not displaying appearances correctly in Forge Viewer

I have an Inventor assembly using one standard Inventor Appearance Library appearance and one custom appearance, saved to a local material library. When I load the viewable in Forge the standard appearance displays correctly but the custom appearance displays as the default (no appearance). Is there a way to use Inventor custom appearances in the Forge viewer?
It’s an assembled piece of woodwork and we need to show the woodgrain in the correct direction for each component. Is there a better way to do this?
Thanks!

Exporting markup data in RVT/CAD format

I am using Autodesk Markupscore Extension to draw markups on 2D view. I want to create a separate rvt or CAD file for the drawn markup, which can further be used/opened in Revit soft. So the newly created 2D view(rvt/CAD) will contain only that part of 2D view which is inside the drawn markup, How can I achieve this?
I can't comment on the Revit specific piece (for that I would suggest that you check out the Revit discussion forums) but if we're talking about where Forge can help, I see two options:
you could have a Revit plugin running in the Forge Design Automation service, accepting a Revit document and some coordinates of 2D markups on the input, removing design elements that are outside of the 2D markups via Revit APIs, and generating a new Revit document on the output.
you could customize Forge Viewer to hide or occlude the parts of the 2D drawings you don't want to be visible, for example, by "hiding" them (making them semi-transparent), by changing their color, or by overlaying them with another content such as a blank SVG rectangle.

How do I get a consistent markup font size across models when using the Autodesk Forge Viewer MarkupsCore extension?

I'm using the MarkupsCore extension to make persistent text markups on a bunch of different 2D models. I'm setting the style like this:
markupsExt.setStyle({"font-size" : .12});
Usually this works. But sometimes, depending on the .dwg file that gets uploaded to Forge, the markups are way too small. I have no control over the files that get uploaded and I have no idea how they are configured when they are created in AutoCad.
What's going on here and how can I achieve a consistent font size in my markups no matter what model I'm marking up?

Viewer Materials (wrong conversion from Revit shaded view)

I'm working on a Revit Mechanical Model (Duct, Pipes and Cable Trays).
I setup a Shaded view in Revit with a custom color scheme (organized applying different material to each System Type). The graphics is clean and works.
When we translate the Model to the Forge platform, the result is a wrong color scheme in the Viewer. It looks like the fittings got wrong material after model translation.
In this picture you can see:
- on the left, the Revit Model view (shaded style),
- on the right, the Forge Viewer with wrong colors.
We tried with different models but the problem is always the same. is this a bug? anyone got this kind of issue?