autodesk

How to find start/end of ramp in revit, perhaps with sketches?

人走茶凉 提交于 2021-02-07 11:13:50
问题 I have a bunch of ramps that I would like to know the begin and end points of (and in case of multiple begin/end points I would like to know how they connect). I currently get these as List<TransitionPoint> ret = new List<TransitionPoint>(); FilteredElementCollector collector = new FilteredElementCollector(doc); ICollection<Element> ramps = collector.OfCategory(BuiltInCategory.OST_Ramps).ToElements(); foreach (var ramp in ramps) { //what goes here? } These ramps contain the following

How to use Forge Viewer Snapper?

拜拜、爱过 提交于 2021-02-05 07:44:35
问题 I'm trying to use Snapper functionnalities from Forge Viewer in order to ask user to pick a point and then retrieve point world coordinates of selected point. I look at this topic but doesn't work for me : How to activate Autodesk Forge Snapper? I load the extension like that : this.viewer.loadExtension('Autodesk.Snapping'); And then try to use the Snapper like that: console.log(this._viewer.toolController.getActiveToolName()); var snapper = new Autodesk.Viewing.Extensions.Snapping.Snapper

How to use Forge Viewer Snapper?

℡╲_俬逩灬. 提交于 2021-02-05 07:44:31
问题 I'm trying to use Snapper functionnalities from Forge Viewer in order to ask user to pick a point and then retrieve point world coordinates of selected point. I look at this topic but doesn't work for me : How to activate Autodesk Forge Snapper? I load the extension like that : this.viewer.loadExtension('Autodesk.Snapping'); And then try to use the Snapper like that: console.log(this._viewer.toolController.getActiveToolName()); var snapper = new Autodesk.Viewing.Extensions.Snapping.Snapper

How to create new Markup Tool in Markups Core Extension?

▼魔方 西西 提交于 2021-01-28 18:15:38
问题 I have a markup extension in Autodesk Forge Viewer for 3D models. I need to create a new extension tool into Markups Core to add in my model but I read the docs to create a new Markup Tool and it not help me, the only thing i found is it: Advance concepts Create a new drawing tool (a new EditMode) Developers are encourage to implement drawing tools not included in the Markups extension. Every drawing tool must have a set of classes to handle them. Let's say for example we are implementing a

How to match objectids from Autodesk Model Derivative API metadata with Forge Viewer model dbids?

瘦欲@ 提交于 2021-01-06 07:32:29
问题 I am building an application around Autodesk Forge Viewer, where I add extra functionalities using basic functions from Viewer (coloring, isolating etc.) depending on client data. This application also allows you to upload a new model. After the upload and conversion process, metadata is extracted from the model using this Model Derivative API https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-GET/, which basically returns the tree of objects and their ids

How to match objectids from Autodesk Model Derivative API metadata with Forge Viewer model dbids?

假如想象 提交于 2021-01-06 07:32:11
问题 I am building an application around Autodesk Forge Viewer, where I add extra functionalities using basic functions from Viewer (coloring, isolating etc.) depending on client data. This application also allows you to upload a new model. After the upload and conversion process, metadata is extracted from the model using this Model Derivative API https://forge.autodesk.com/en/docs/model-derivative/v2/reference/http/urn-metadata-guid-GET/, which basically returns the tree of objects and their ids

upgrade three js version in autodesk forge viewer

泪湿孤枕 提交于 2021-01-04 05:41:08
问题 I was looking to upgrade the three js which is used in autodesk forge behind the scene and reason for upgrade is I am trying to use this library and this need three js r71 and above and inside forge viewer it seems they are using r33. I found a blog where it showed me how can I take the advantage of later three js. I followed it but seems like its not working. There forge viewer now have 2 references of three js and it gets confused which one to use and hence some of code behave weird here is

upgrade three js version in autodesk forge viewer

痴心易碎 提交于 2021-01-04 05:40:46
问题 I was looking to upgrade the three js which is used in autodesk forge behind the scene and reason for upgrade is I am trying to use this library and this need three js r71 and above and inside forge viewer it seems they are using r33. I found a blog where it showed me how can I take the advantage of later three js. I followed it but seems like its not working. There forge viewer now have 2 references of three js and it gets confused which one to use and hence some of code behave weird here is

How do I get a snapshot of the forgeviewer without markups

时间秒杀一切 提交于 2020-12-15 05:38:04
问题 How can i get a snapshot of the viewer and save it separately as an image? Thank you 回答1: This can be done by combining the Viewer3D#getScreenShot method and the renderToCanvas method of the Autodesk.Viewing.MarkupsCore extension, like so: async function getScreenshotDataUrl(viewer, width, height) { const markupExt = await viewer.getExtension('Autodesk.Viewing.MarkupsCore'); return new Promise(function (resolve, reject) { const canvas = document.createElement('canvas'); canvas.width = width;

How do I get a snapshot of the forgeviewer without markups

白昼怎懂夜的黑 提交于 2020-12-15 05:35:02
问题 How can i get a snapshot of the viewer and save it separately as an image? Thank you 回答1: This can be done by combining the Viewer3D#getScreenShot method and the renderToCanvas method of the Autodesk.Viewing.MarkupsCore extension, like so: async function getScreenshotDataUrl(viewer, width, height) { const markupExt = await viewer.getExtension('Autodesk.Viewing.MarkupsCore'); return new Promise(function (resolve, reject) { const canvas = document.createElement('canvas'); canvas.width = width;