Questions tagged [autodesk-inventor]

Autodesk Inventor is a mechanical CAD software developed by Autodesk

Wikipedia page

122 questions
3
votes
0 answers

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("Inventor.Application") oFileDlg =…
Chema Romero
  • 31
  • 1
  • 1
  • 3
2
votes
0 answers

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 application to begin seeing the effects. I had been using…
2
votes
1 answer

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.iLogicVb" I've added this file (MyiLogicFile.iLogicVb)…
Mark Brouwers
  • 37
  • 1
  • 2
2
votes
1 answer

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 ControlDefinition Controller =…
FloydHD
  • 21
  • 3
2
votes
0 answers

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 with Inventor documents. But in the process of…
2
votes
1 answer

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 a listbox, change some labelcaptions, and…
Majjek
  • 41
  • 3
2
votes
1 answer

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 visible invApp.Visible = True #Set file names of…
M_H
  • 41
  • 8
2
votes
3 answers

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 were wrong. Here's an example of code (one of a…
2
votes
1 answer

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 finished drawing, I can select the two loops and…
zeus300
  • 1,017
  • 2
  • 12
  • 30
1
vote
0 answers

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. My expected outcome should be like this Expected…
Vishnu
  • 11
  • 1
1
vote
1 answer

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 3D annotations' text direction flips to allow…
1
vote
1 answer

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 projects all which are referencing the same NuGet…
Majjek
  • 41
  • 3
1
vote
0 answers

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 iproperties. Button two fills the form with the custom…
Brent
  • 31
  • 3
1
vote
0 answers

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 as an InputRadioBox is much easier not only to…
Brent
  • 31
  • 3
1
vote
1 answer

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 false assumption (that if the property didn't exist…
Brent
  • 31
  • 3
1
2 3
8 9