autodesk

Revit to Pdf Conversion

徘徊边缘 提交于 2019-12-25 08:14:03
问题 I am trying to automate the process of pdf printing in Revit 2017 using Revit API with Idling event handler. I am opening the revit document using OpenDocumentFile method and not using ActiveUIDocument anywhere. This process is generating Invalid Operation Exception. I am not sure why is it giving the exception or whether it is allowed using Revit API. Please help. Thanks. Journal Output: ' 1:< 0 <-pushSettingsIntoDriver ' C 27-Sep-2016 14:45:22.641; 1:< ExportToRequestedFormat() : Pdf Print

Autodesk Forge Viewer - Getting different values dbId from “viewer.model.search” and “viewer.getSelection()”

萝らか妹 提交于 2019-12-24 08:09:25
问题 I'm trying to isolate some elements that I search with the method viewer.model.search but when I use the viewer.isolate method I get everything to hide. I already use the getSelection to isolate elements and I notice that they give me different dbId values for the same element. With getSelection dbId works but with the search doesn't Does that anyone have this same error? UPDATE 3/11/2019: While I was trying to figure out what happened, I realized that the search method gives you the number

Does Maya Mel have a good API to a IDE? [closed]

穿精又带淫゛_ 提交于 2019-12-24 06:25:53
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm developing in MAYA and looking for a good API to connect my models and to be able to control them programatically. thanks. 回答1: hye oded, you can use MEL or python scripting for control objects and doing simple actions, and you can use the c++ or Python via maya api to create complex tasks or heavy duty tasks,

How to resize on object - Autodesk Forge Viewer

会有一股神秘感。 提交于 2019-12-23 02:44:12
问题 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

SystemAccessViolationException in OpenTK.dll using Shaders

徘徊边缘 提交于 2019-12-13 05:37:46
问题 Using OpenTK to attempt to create shaders in C#, repeatedly getting memory access violation errors. Any help would be appreciated. Here is the class I am having errors with, full code will be able to be found at https://github.com/Autodesk/synthesis/engine-research/OpenTKBuild Error at Line 53 : An unhandled exception of type 'System.AccessViolationException' occurred in OpenTK.dll Additional information: Attempted to read or write protected memory. This is often an indication that other

How to enable search for the model structurue panel with Forge Viewer

我是研究僧i 提交于 2019-12-13 03:18:26
问题 By default search is disabled for the model structure panel on mobile devices... For enabling search box in mobile devices, I am using this.viewer.setModelStructurePanel(new Autodesk.Viewing.Extensions.ViewerModelStructurePanel(this.viewer, 'Model browser', {hideSearch: false})). I think because of this the model structure is rebuilt and hidden model is not listed in the model browser. Can you help me solving this? 回答1: Simply add the missing model back programmatically with var model = NOP

Imported .fbx model Is Transparent

假装没事ソ 提交于 2019-12-13 02:57:45
问题 My model seems importing correctly but maybe I'm not setting something right? My fbx model that I imported has number of Mesh filters underneath it . Each Mesh filter's Albedo does map to an image that I imported underneath my Assets folder (see screen shot) but still when I drag the root model into my scene it is transparent ---why? UPDATE: 09-01-2015 I had the 3d model author tick "embed media" when exporting from Autodesk. Now the import adds a .fbm folder in my Assets. The .fbm folder

Load multiple URN in a same Viewer

匆匆过客 提交于 2019-12-12 04:07:16
问题 How to load multiple URN or and array of URN in a viewer and also use the GlobalOffest of the 1st URN to load the 2nd URN in same viewer 回答1: It's simple, the basic scenario is from this official blog's loadModel function. You can load 2nd model while Autodesk.Viewing.GEOMETRY_LOADED_EVENT was fired and apply 1st model's GlobalOffest to the 2nd model in my experience. Here is the example for this case: function _onGeometryLoaded( event ) { if( urns.length <= 0 ) { viewer.removeEventListener(

How to add a color to an object in Autodesk Maya 2016 in Python scripts?

允我心安 提交于 2019-12-12 02:36:21
问题 I am new in Autodesk Maya. I looked over the internet to find some details about how can I command in the python scripting , to an object to change it's color when it is selected. I know how to see the selected object, however, I didn't succeed to change the color. I used this function - enter code here 'result = cmds.ls(orderedSelection =True) Trans = result[0] cmds.color(Trans,userDefined =8 ) ' when I press an object, it is being selected, but it's color doesn't change. It will be helpful

How to change object names in Forge Viewer?

主宰稳场 提交于 2019-12-11 18:10:47
问题 How can I change the names of objects and parent nodes in Forge Viewer? In version 6.1 and below, there was a blog post that worked: by altering the ModelStructureTreeDelegate class, reloading it as an extension, effectively overriding it. That doesn't work on 6.2 and later (current is 6.3.3), because now that class is not accessible anymore, or otherwise doesn't work. What I found was that, by accessing the InstanceTreeStorage.prototype.processName method, I could change the name of objects