autodesk

Autodesk Forge Extension

狂风中的少年 提交于 2019-12-11 17:37:09
问题 So I am following this tutorial to extend the autodesk forge viewer. I have compelted all of the steps and no button is showing, I assume this is due to an error with the loading. https://forge.autodesk.com/blog/extension-skeleton-toolbar-docking-panel I have also tried this tutorial, with the same issue: http://learnforge.autodesk.io/#/viewer/extensions/selection?id=conclusion My issue is I am not getting an error, the extension just isn't showing... does anyone know why? I'm assuming theres

Using python to automate Autodesk Inventor

孤街醉人 提交于 2019-12-11 15:48:14
问题 Is there a way to open and control a solid model in Inventor using python? My goal to start with a database of dimensions and simulate every configuration. 回答1: This snippet is a great place to start: #Open Inventor invApp = win32com.client.Dispatch("Inventor.Application") #Make inventor visible invApp.Visible = True #Set file names of template Part_FileName_BaseIPT = 'C:\\Base.ipt' #Open the base model oPartDoc=invApp.Documents.Open(Part_FileName_BaseIPT) #Collect parameters oParams =

Wireframes extension unload lines on every update

狂风中的少年 提交于 2019-12-11 15:19:04
问题 I'm using this wireframe extension https://autodeskviewer.com/viewers/latest/extensions/Wireframes/Wireframes.js which I slightly modified its colors. If I slightly move the camera, all the lines disappear and since our app constantly get input from the sensor, we end up with the lines always not showing. I can't find what is making those lines disappear. How can I make those to always be visible? It also happens in this example which you can reproduce: 回答1: Another way to avoid this issue

Forge Viewer Compass Rose

亡梦爱人 提交于 2019-12-11 15:15:38
问题 When viewing a model the view cube shows the orientation of the model in terms of top, bottom, left, right etc. How would I display a compass rose graphic that would display in terms of North, South etc? Similar to Navis cube. Note: Currently using V2.11 viewer. Thanks 回答1: Update 2019-11-08: This whish list item, LMV-2837 , has been implemented by our engineering team now. You can see the compass under the ViewCube with the viewer v7.6 by default!! Here is the snapshot: ============= After

Accurate bounding box of an object

风流意气都作罢 提交于 2019-12-11 09:48:07
问题 I'm trying to create an accurate bounding box of an object, but it appears that if the object isn't aligned with the axis (I think) the box is not aligned with the object. For example: The pink and closer orange vertices are the Box3.min, Box3.max of this wall, but you see the red and green and blue are not on that wall. You can ignore the aqua vertices. This is the code that creates the bounding box (returns Box3): static getWorldBoundingBox(model, dbId) { return new Promise(async(resolve,

Issues importing animated models from Maya to Blender and then to three.js?

≡放荡痞女 提交于 2019-12-11 08:11:07
问题 I have a simply question and hopefully someone can answer this. I need to get an animated model into three.js from Maya. I know currently the only exporter/ converter to the three.js JSON format that supports animations is the blender plugin. Unfortunately, my company works with Maya and Blender doesn't take FBXs. I already figured out that in order to do what I need to do, I need to export out of maya a Collada, import the Collada into Blender, then export out to three.js using the plugin.

Deleting a file from bucket. Autodesk-forge

懵懂的女人 提交于 2019-12-11 06:37:10
问题 There are problem with deleting a file from wip.dm.prod bucket ("errorCode": "AUTH-012"). But I can download current file by using -x GET instead of -x DELETE. I use this tutorial -> https://developer.autodesk.com/en/docs/data/v2/reference/http/buckets-:bucketKey-objects-:objectName-DELETE/ . Attach an example below. Request curl -v https://developer.api.autodesk.com/oss/v2/buckets/wip.dm.prod/objects/de34f4c9-457c-4653-a9e4-8bbad12bf5ec.rvt -X DELETE -H "Authorization:Bearer

How do I download SVG/SVF for offline viewing with Autodesk Model Forge APIs

怎甘沉沦 提交于 2019-12-08 05:57:25
问题 I am able to accomplish all steps to upload Revit files and translate and load in viewer. I am now trying to download the translated SVG/SVF for offline viewing. I found reference to the following endpoint and tested it out with this: function download(){ var uri = 'https://developer.api.autodesk.com/derivativeservice/v2/derivatives/<<urn>>' ; var authorizationHeader = 'Bearer <<token>>' request.get( { url: uri, headers: { 'Authorization': authorizationHeader, 'Accept-Encoding': 'gzip,

How do you get Maya to communicate through the localhost IP?

半世苍凉 提交于 2019-12-07 19:10:32
问题 What I have been researching with no luck, is how to get Autodesk Maya to communicate though the web on the localhost ip (preferably TCP). My goal is to control maya with a quick java application I wrote to manipulate curve selecting and such. If there is a way to do it in mel scripting, that would be awesome. 回答1: Maya includes the commandPort command which will listen for incoming connections on a socket and run either mel or python scripts on the incoming data examples: http://fredrik

How to resize on object - Autodesk Forge Viewer

情到浓时终转凉″ 提交于 2019-12-06 18:48:30
How can i change size of on object ?? i need to change height of on object For example, we need to change the height of a door or curtain on this code my object disappears let change = function () { const viewer = oViewer; const model = viewer.model; const frags = [ 123, 361, ]; for(let i in frags){ let fragId = frags[i]; // Get mesh with frag id let mesh = viewer.impl.getRenderProxy(model, fragId); // Selection ID let dbId = 1280; // viewer.getSelection()[0] model.getData().instanceTree.enumNodeFragments(dbId, fragId => { mesh.scale.x += 0.5; // mesh.scale.y = 5; // mesh.scale.z = 5; model