How to set a background color in 2D view of autodesk forge file to a specific Room on a floor or level using jquery
Change Background color of 2D sheets of Autodesk Forge using Javascript
677 views Asked by Carol Jones At
1
There are 1 answers
Related Questions in AUTODESK-FORGE
- Forge APS Restricting Third-Party Hub Access Levels / Visibility - Custom Integration
- I think i have been locked out of Autodesk, what can i do?
- Forge Viewer: SVF2 of DWF 2D view object properties is not accessible by getProperties function nor do they show on the property panel
- automate publishing Revit models to ACC more than once a week
- The ProjectGuid and ModelGuid is not shown in the return from API
- Issue with generate Rooms use Model Devaritive API
- angleToTrueNorth is null for Navisworks translated model
- Getting Unauthorized error when creating a project from template through API
- No viewabels are generated when translating DWG files to SVF2
- Visualizing NavisWorks Grids in Forge
- Using new useOPFS=true in Forge
- I am trying to write a sanskrit mantra on autocad. When I preview the text, it is correct but as I plot the file to pdf, the 'maatra's' change
- End User License Agreement (EULA) for products submitted by Publishers to the Autodesk App Store?
- How to get full metadata inertia metrix, inertia center, mass, volumn, ect.. from GET Properties
- Autodesk.DataVisualisation example doesn't seem to working
Related Questions in AUTODESK-DATA-MANAGEMENT
- I think i have been locked out of Autodesk, what can i do?
- The ProjectGuid and ModelGuid is not shown in the return from API
- Convert Urn from item version have problem
- Autodesk Forge ACC file not translate first version
- Revit API ConvertCloudGUIDsToCloudPath returns connection errors
- Get S3 URL for APS
- Is the aps-iot-extensions-demo currently down?
- 413 (Payload Too Large) when upload is made on Heroku platform
- BIM Model upload via DataManagement API fails
- Set Automatic Model Publishing - Data Management API
- How to copy a file from one APS OSS bucket to another without having to download the file locally?
- APS The Service is temporarily unavailable
- Is it possible to get the "current" version of an item through the Autodesk Data Management API
- Dataflow-between-ACC-and-Trimble-Connect
- Is 3-Legged authentication required for uploading a file to BIM360/ACC
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
To set a background color in 2D, you have to two programmable options...
viewer.setBackgroundColor(...); viewerImp.toggleSwapBlackAndWhite(true/false);
You can find the API details for setBackgroundColor here: https://developer.autodesk.com/en/docs/viewer/v2/reference/javascript/viewer3d/
and line2191 toggle blackwhite here: autodeskviewer.com/viewers/latest/docs/src_application_Viewer3D.js.html
Here is a working example...
Open this URL in a recent version of chrome: https://autodeskviewer.com/viewers/latest/viewer3d.html?svf=https://lmv-models.s3.amazonaws.com/2d_model/primaryGraphics.f2d
Open up the debug console and type these two options:
NOP_VIEWER.impl.toggleSwapBlackAndWhite(true); NOP_VIEWER.setBackgroundColor(255,255,0,0,255,255);
The result should give you a clue to what is possible with just the api.
This is specific to the web viewer. Is that what you were looking for ?