Posts about Code Samples

August 4, 2019

Typescript definition for Forge Viewer v7 released!

Today marks the GA release of the much anticipated Typescript definitions for Forge Viewer v7.0! As always we will continue our endeavors to keep abreast with the latest updates (v7.1 and u...

Read More

August 1, 2019

oss-manager migrated to server

When we create new live samples, we often just place them on a server like heroku . That's what I did with as well, but it seems it was so popular that al...

Read More

July 31, 2019

Error after migrating away from ViewingApplication

After migrating away from ViewingApplication in one of the samples ( required by v7 ), I suddenly ran into the error shown in the above picture, saying: TypeError: Cannot read property 'wid...

Read More

July 10, 2019

Look for exact property value and more

When using the search() function of the Viewer , you can only look for strings that at least partially match a given value. That will include other values as well: e.g. you may look for " W...

Read More

July 9, 2019

Webpack and three.js in forge applications

In the newer versions of forge viewers( v6 and above) three.js is included in the forge viwer js file itself. So, when using webpack, mention three js in externals as it avoids loading thre...

Read More

July 7, 2019

Move Entities of 2D Drawing

Follow @Xiaodong Liang Note: the code demo in this blog is NOT official methods. You would use at your own risk. In the last blog , we introduced the way to get geometries of 2D curves by ...

Read More

July 5, 2019

Dump Geometries of 2D Curve

how to dump geometries of 2D curve by Autodesk.Viewing.Private.VertexBufferReader

Read More