Questions tagged [autodesk-inventor]

Autodesk Inventor is a mechanical CAD software developed by Autodesk

Filter by
Sorted by
Tagged with
3 votes
0 answers
10k views

python win32 com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147467259), None)

I have this code to open an Inventor File Dialog. It was working a OK yesterday and does not work today. import win32com.client def TestFileDialog(): ThisApp = win32com.client.Dispatch("...
Chema Romero's user avatar
2 votes
1 answer
3k views

Extracting parameters from Autodesk Inventor with Python

I am trying to extract the parameters of an Inventor part (.ipt) with Python, using the following code: #Open Inventor invApp = win32com.client.Dispatch("Inventor.Application") #Make inventor ...
M_H's user avatar
  • 41
2 votes
3 answers
7k views

Autodesk Inventor API with Python

I try to use Python for Autodesk Inventor API. For example, I try to make a new sketch in an Inventor part document that I make with Python. But I have a problem with adding sketches. All of my tries ...
Alexey Tumanov's user avatar
2 votes
1 answer
107 views

Listbox.Height doesn't update on 1 PC, but does on all other PC's at the office

I've ran into a problem I can't fix.. I use VBA 7.1 in Autodesk Inventor 2017. During a macro, a Userform is being called. I use 'UserForm_Initialize()' to fill some data in to the UserForm: I fill up ...
Majjek's user avatar
  • 41
2 votes
1 answer
3k views

Autodesk Inventor VBA Scripting

I'm trying to connect two solid model profiles in Autodesk Inventor using VBA scripting. I came as far as drawing the 3D lines which are supposed to act as profiles later on. After the script has ...
zeus300's user avatar
  • 1,007
2 votes
0 answers
67 views

System.Reflection.Assembly.LoadFile(), AssemblyResolve event and handling 3rd party dependencies

I have this class which will hopefully let me essentially hot-load my .dll's, so that I can push changes to them while my coworkers are using them, without needing them to totally restart the ...
davidfjdkslfs's user avatar
2 votes
1 answer
760 views

External iLogic rules in Forge

Is there a way for using external iLogic rules in combination with Forge Automation? I've got an iLogic rule that depends on the following external iLogic rule: AddVbFile "MyExternal_iLogicFile....
Mark Brouwers's user avatar
2 votes
1 answer
154 views

Program waits for API call to finish

So I am working on a project where I call the export window in Inventor via the Inventor API like so : Dim Commander As CommandManager Commander = ThisApplication.CommandManager Dim Controller As ...
FloydHD's user avatar
  • 21
2 votes
0 answers
373 views

Inventor + Dynamo

I installed Dynamo Studio for myself and wrote in C # my dll-library, which I imported into the Dynamo project. Thus, I created my own custom-nodes for Dynamo, with which I can work through Dynamo ...
Никита Ефимов's user avatar
1 vote
1 answer
400 views

releasing Inventor after event has run

The program takes control of Autodesk Inventor whilst it does what it's supposed to, which is ZIP and convert drawings to the required file type. After the program has run, I can use Inventor but it ...
Jackawan's user avatar
1 vote
2 answers
4k views

GetActiveObject is not a member of Marshal

I'm working in vb.net in Visual Studio 2017. I'm fairly new to visual basic. I'm more familiar with VBA. I prototyped code to access Autodesk Vault 2019, download a file, and open it in Autodesk ...
Orion DeYoe's user avatar
1 vote
1 answer
3k views

Using python to automate Autodesk Inventor

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.
brddawg's user avatar
  • 432
1 vote
1 answer
2k views

Autodesk Inventor place part at user defined position

I'm trying to create a method that will place a file into an assembly, and I want it to be like when you choose place file in Inventor. The file is been chosen by it's path. And now it needs to be ...
Mech_Engineer's user avatar
1 vote
2 answers
61 views

How to determine if an edge is an external corner or internal corner

I have a simple example below of a geometric shape with two edges of interest - the red edge belongs to an outer/external corner, while the blue edge belongs to an inner/internal corner. The problem ...
G.H.'s user avatar
  • 209
1 vote
1 answer
312 views

Stumbling Block Inventor iProperty doesn't exist

I should start out with this is my first attempt at a vba user form. I Have some simple code to fill a user form (pulling from Inventor Custom iProperties) the problem I am running into and made a ...
Brent's user avatar
  • 31
1 vote
1 answer
601 views

Run a VBA routine from VBA IDE?

I want to get a list of routines from a VBA project, then run the macros selected by the user. The image below shows the native "Macros" box. I want to extend this functionality to multiple ...
G.H.'s user avatar
  • 209
1 vote
1 answer
250 views

Forge API - Design Automation Inventor 2022 compatibility

I cannot upload Inventor 2022 files into Forge design Automation system. is there any compatibility issue with 2022?
Ashkan 's user avatar
1 vote
1 answer
313 views

After new program installation: System.Runtime.InteropServices.SEHException (0x80004005):

My program is being used in our company on 20+ PC's and is running without any problems. But now one PC has installed Inventor 2020 which updated some generaly used DLL's (I don't know which ones) ...
Joeri E's user avatar
  • 111
1 vote
1 answer
279 views

Orientation of Forge viewable generated on Design Automation in Forge Viewer not matching orientation in Inventor

I'm exporting SVFs from a model using the design automation API. With some models, the orientation in the Viewer of the viewable does not match the orientation in Inventor. How do I correct this so ...
Kate's user avatar
  • 61
1 vote
1 answer
133 views

Programmatically Recomputing Precise Part Volume From Third-Party Files Using Forge APIs

I'm looking for best practices and performance-guided recommendations for recomputing a model's volume when it's missing from the source file. This is in the context of a web application I am working ...
Tom Griffin's user avatar
1 vote
1 answer
2k views

How to create and use objects from the Inventor COM API in python (pywin32)

I'm attempting to use Autodesk Inventor's COM API to create a python script that will generate PDFs of a selection on Inventor Drawings, these PDFs will then be processed in particular ways that aren'...
JRVeale's user avatar
  • 394
1 vote
1 answer
178 views

Curl command ask for a token

Hi i'm doing the design automation and i have a second issue i already provided the token but it asking me again. https://forge.autodesk.com/blog/simple-introduction-design-automation-inventor here ...
Saif Ejjilali's user avatar
1 vote
1 answer
2k views

Collection of Collections - How to make sub-collections by value rather than reference?

What I am trying to do is for Autodesk Inventor. I'm writing a program that goes iterates through a bunch of lines in a sketch. It gathers the groups of connected lines and puts them in a collection. ...
MechMachineMan's user avatar
1 vote
1 answer
301 views

Opeing Solidworks assembly file in Inventor, parts gets unconstrained

When i try to open up Solidworks assembly file (SLDASM) in Inventor, the parts gets unconstrained? Those files are constrained in Solidworks but things get unconstrained when I load the same file in ...
Pragat123's user avatar
1 vote
0 answers
42 views

How can I add new scene in inventor 2022

I am able to open presentation document using C# now I want to create new scene in Inventor 2022 using C#. Scene1 As you can see in the scene1 image I want to add my newly created scene below scene1. ...
Vishnu's user avatar
  • 11
1 vote
1 answer
73 views

Is there a setting in the APS viewer for 3D Annotations from Inventor to flip text direction on rotation as within Inventor?

The below GIF is from the APS Viewer. You can see that the 3D annotations' text direction does not flip to allow readability from both sides. The below GIF is from Inventor 2022. You can see that the ...
Tyler Warner's user avatar
1 vote
1 answer
182 views

System.IO.FileNotFoundException with NuGet package. File exists though

I've created a NuGet package with several assemblies in it to be used for an Add-In for Autodesk Inventor. It's a Solution in Visual Studio 2019 which consists of 3 .net Framework 4.8 Class Library ...
Majjek's user avatar
  • 41
1 vote
0 answers
280 views

Run/Show VBA form from Inventor Ribbon

I have created a form using Autodesk Inventor VBA with buttons for different functions Button one add op runs a rule that prompts the user to make selections from arraylists which creates custom ...
Brent's user avatar
  • 31
1 vote
0 answers
1k views

Is it possible using Autodesk Inventor iLogic VBA to create an InputRadioBox that uses information from an existing arraylist in a rule?

I Have a number of InputListBox's in an iLogic rule that use information from an ArrayList to create an iProperty name and value. This works but the selection list is somewhat bunched together where ...
Brent's user avatar
  • 31
1 vote
0 answers
625 views

Inventor API / VBA AutoBendRadius on 3D sketch

Option Explicit Sub pipe() 'INVENTOR PERIPHERALS 'Create a new part file Dim partDoc As PartDocument Set partDoc = ThisApplication.Documents.Add(kPartDocumentObject, _ ...
HelpMePlease's user avatar
1 vote
1 answer
959 views

Where necessary AddIns folder located?

I want to create my first add-in program for inventor using c#. I got stuck on a part where i should copy my .addin file to folder AddIns or Inventor AddIns, because i haven't any of these. Not in ...
user253105's user avatar
1 vote
1 answer
468 views

Code Compare For VBA Source Code

is there a way to compare VBA source code file, like .IVB file from Autodesk Inventor to another one? Since this kind of file is precompiled, I have to export every modules from both solutions and ...
J-SHould's user avatar
1 vote
1 answer
2k views

Get the points coordinates from a geometry projection over a Solid in Autodesk Inventor with VBA

I would like to get the coordinates (in a text or Excel file) of a set of points that are produced after projecting another set of points over a solid (All this done using the software Autodesk ...
Gonzalo's user avatar
  • 137
1 vote
1 answer
207 views

Starting WPF window from another application addin

I have created an Autodesk inventor addin. I have another class library with a wpf window. I am trying to show that wpf window from the addin on a button click. override protected void ...
Jayant's user avatar
  • 152
1 vote
0 answers
276 views

VBSript to remove Start Menu for Autodesk

I am able to remove desktop shortcut, but for some reason I cannot remove start menu shortcut. The name as it appears in Start Menu and ARP is Quick Uninstall Tool for Autodesk Inventor 2012. Others ...
Munda's user avatar
  • 11
0 votes
2 answers
5k views

How to create an AddIn in Autodesk Inventor?

I would like to know the procedure for creating an Inventor Add-in using C# or VB.NET. Any settings to be made or how? I've tried using templates from from various sources, but I got an error. If ...
Bharat H S's user avatar
0 votes
1 answer
970 views

Inventor Design Automation with Modelstates not working

I had a bug today with an assembly that is using model states. It is handled by the design automation. So I just did a simple example. There is a Quader, a cylinder and a sphere. sample bg With the ...
Evan's user avatar
  • 1
0 votes
2 answers
38 views

Does Forge Support for inventor 2023?

Currently im working on design automation of forge api. my inventor version is 2023 Does forge support inventor 2023? if does then what is engine name. How to solve? Forge inventor 2023 it is possible ...
Archana Sapkal's user avatar
0 votes
1 answer
771 views

AutoDesk Forge Inventor - Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

[03/07/2021 07:14:00] InventorCoreConsole.exe Information: 0 : InventorCoreConsole.exe: 25.0.18300.0 [03/07/2021 07:14:01] InventorCoreConsole.exe Information: 0 : Starting Inventor Server. [03/07/...
Caffeine Junkie's user avatar
0 votes
3 answers
219 views

Forge request fails on postman and curl

Hello i'm trying the introduction to the design automation ofr inventor but i'm stuck on the upload parameters. this is the article: https://forge.autodesk.com/blog/simple-introduction-design-...
Saif Ejjilali's user avatar
0 votes
1 answer
64 views

use ExportBuildingComponent in Design Automation for Inventor

we can run a local Inventor add-in for convert a iam assembly to RFA, using ExportBuildingComponent API. As explained in documentation (https://aps.autodesk.com/en/docs/design-automation/v3/...
Cristian Barzaghi's user avatar
0 votes
1 answer
102 views

Model Derivative API's - Istance Properties

I'm using Model Derivative API's to upload Inventor's IAM on a bucket (in a zip mode). I'm using Inventor 2022 and Instance Properties. Is it possible to publish SVF/SVF2 file to have instance ...
Alder Moriggi's user avatar
0 votes
1 answer
607 views

Is it possible to force Inventor Design Automation to update all views in a drawing before outputting to pdf?

I've run into an issue with a Forge configurator that we are developing, whereby the pdf output does not reflect the configured model. The general process that it follows is it opens the assembly, and ...
NeilS's user avatar
  • 50
0 votes
1 answer
663 views

How to make multiple hexagonal holes on inventor?

i'm trying to make the following pattern on inventor. is there a more efficient way of doing this other than drawing each hexagon and extruding it?
galaxies's user avatar
0 votes
1 answer
449 views

Inventor COM object not released when created with Activator.CreateInstance()

My problem is this: If Autodesk Inventor is not running, my app (console app) creates a new instance with Activator.CreateInstance(InventorType); and uses it as a COM object. When my app does not quit ...
dee7kay's user avatar
  • 23
0 votes
1 answer
197 views

Autodesk Forge Configurator Inventor - Azure deployment problem

I have troubles with deploying an app to Azure. I started with https://github.com/Autodesk-Forge/forge-configurator-inventor repo. I managed to run it locally with no errors. I am able to login, ...
VeIN's user avatar
  • 11
0 votes
1 answer
360 views

Inventor API behave differently under test environment than it under development environment

We are developing an Autodesk Inventor AddIn program and we are using MsTest framework to do some integration tests. Here is a very simple function, which creates a button definition with icon. public ...
Vincent's user avatar
  • 87
0 votes
1 answer
349 views

Rotate and move model in text STEP file ISO-10303-21

I have N .step files that i want to merge into one. I saw that i can open .step file as text. If i copy the text in the DATA section of the second file in the DATA section of the first file i can make ...
Fabio Zafferi's user avatar
0 votes
1 answer
212 views

suspicious cast there is no type in the solution which is inherited from--> why/somehow it is working

i am currently working on an AddIn for Inventor(3d Modeling Software). When you are using the api there are two different kind of documents AssemblyDocument PartDocument the api provides me a method ...
ChrisG's user avatar
  • 116
0 votes
1 answer
414 views

How to get if the drawing sketch is being edited? (Autodesk Inventor C++ API)

I need to add a drawing sketch in Inventor and edit it. However, if another sketch is already being edited, my program terminates and even try/catch does not help. I can't find a property of the ...
Perotto's user avatar
  • 194