r/InventorAPI • • Jan 09 '20

Inventor 2017 > 2020 API processing changes

2 Upvotes

Hoping someone with some knowledge of how external API calls are processed can help and can shed some light on the issue below.

We have quite a unique implementation of Inventor. We have windows servers that run up to 12 instances of Inventor each. Each instance has its own project file and separate inventor files. An application on each server listens for jobs to process, when a job comes along it opens a specified inventor assembly and executes an iLogic rule via a parameter trigger (the models contain very detailed rules written either in iLogic or contained in a .NET dll) Running the rule via parameter trigger ensures that the API processing is handled ‘in-process’ and has dramatic performance improvements compared to the RunRule API call which processes API calls externally.

We’ve just upgraded from 2017 to 2020 and are seeing some terrible processing speeds. I think I’ve narrowed it down the external API calls we execute from the job processing application, namely opening the file and secondly iterating the assembly to build an XML of the BOM. The BOM process is heavy on API calls - among other things we retrieve all iProperty values from each document - each document can have hundreds of iProperties.

As a comparison generating the BOM in 2017 may take up to 15 minutes at worst. In 2020 worst case is well over 60 minutes.

Nothing has changed in the hardware.

We have a Windows 7 physical machine that is the most severely affected. This was previously the most efficient and most reliable server. Changes on there are the 2020 upgrade and the required Microsoft KB that Autodesk specifies. Other machines are a mixture of physical and virtual windows 10 machines.

I can only assume that there have been changes in how external API requests are handled/prioritised within inventor.

We are working with the developer of the job processing application to try and make the BOM processing logic process as in-process and crossing our fingers that gets us 80% back to normal.

Any help and advice would be greatly appreciated.

Thanks Tom


r/InventorAPI • • Jan 09 '20

Display Assembly Mass on BoM with iLogic?

Post image
2 Upvotes

r/InventorAPI • • Dec 21 '19

iLogic: Avoiding Errors with LOD's

Thumbnail self.autodeskinventor
2 Upvotes

r/InventorAPI • • Nov 04 '19

iLogic – Quick Background Toggle Rule

Thumbnail
clintbrown.co.uk
2 Upvotes

r/InventorAPI • • Oct 21 '19

iLogic – Export 3D PDF with Progress Bar

Post image
2 Upvotes

r/InventorAPI • • Sep 09 '19

Export Points to CSV or TXT with iLogic

Thumbnail
clintbrown.co.uk
2 Upvotes

r/InventorAPI • • Aug 05 '19

iLogic Error – “The Cloud File Provider is Not Running”

2 Upvotes

I ran into this error on the weekend, and the fix was surprisingly simple: https://clintbrown.co.uk/2019/08/04/ilogic-error-the-cloud-file-provider-is-not-running/


r/InventorAPI • • Jul 15 '19

Attempting to handle an OnActivateCommand event but the screen doesn't update?

2 Upvotes

I'm trying to write a small adding that will automatically slice graphics when a 2d sketch is created or edited.

 

Attached is a snip of the program. What it does is looks for any command that is triggered and checks to see if it is "PartNewSketchCmd". Once the correct command is run, I'm able to Step through the program and see that it will go through the ControlDefinition line, then execute the command (no errors) then exit the sub.

 

The problem is that the screen does not update. Suggestions on what to change?

Image link


r/InventorAPI • • Jun 24 '19

Heads or Tails with iLogic (UPDATED)

Thumbnail
clintbrown.co.uk
2 Upvotes

r/InventorAPI • • Jun 01 '19

Magic 8 Ball in Inventor With iLogic

Thumbnail
clintbrown.co.uk
2 Upvotes

r/InventorAPI • • May 14 '19

Need help to create parts driven by an assembly

2 Upvotes

Hello Pros here,

I am quite new with Inventor ilogic but I would like to automatize a project I have.

I want to create an assembly that is given a number ABCDE.VWXYZ.

For this I have 3-6 different parts which again have 12-24 different sizes. For these parts I have created base parts adapted to size and type via ilogic.

The number includes size, type, making, number and so on of the single parts

So my goal is to open the assembly, enter the correct number and Inventor/ilogic then

- adapts the base parts to the (number driven) correct size and type

- saves the parts with the correct number (the number will be slightly different than the assembly number but driven by it)

Is this possible?

Alternatively I would create the parts in all different sizes and then replace the base parts with the parts I have created. All driven by the assembly number.


r/InventorAPI • • May 08 '19

iLogic – Set Every Part to A Different Colour

Thumbnail
self.autodeskinventor
2 Upvotes

r/InventorAPI • • Apr 05 '19

Cosmetic welds in 2020 API

2 Upvotes

r/InventorAPI • • Mar 29 '19

ILogic to sort drawing sheets

Thumbnail
jshould.ca
2 Upvotes

r/InventorAPI • • Mar 25 '19

Creating Add-ins using Visual Studio

2 Upvotes

Disclaimer: I'm an engineer, not a programmer. I still have a lot to learn, and there is plenty of room for improvement in my current setup.

I'm currently using Inventor 2015 and Visual Studio Express 2012. More recent versions of VSE did not work with Inv2015. And I chose Express because I'm using it for work and did not want to run into any license issue with VSCommunity. I installed the Nifty Add-In Template created by Brian Ekins. It's made for Inventor 2018 and later, but I haven't had an issue yet with 2015. The template contains sample code for creating a button in the tools ribbon while a part document is active in Inventor. Within this template, I added this code to CommandFunctions.vb. This allows me to point to an external iLogic rule, instead of having to convert it to VB.NET.

The end result is that I'm able to keep writing external iLogic rules, and when they are polished and ready to share with the rest of the engineering department, I can just give everyone a button. The button will only appear on the document type where it is meant to be run. No chance of running "Print Drawing" on anything but a drawing document. It ends up looking much cleaner and official than asking everyone to always keep the iLogic browser open and just remember which rules work for each document type.

When I have more time, I may make a more detailed step-by-step guide for this setup. But I wanted to give a quick-and-dirty explanation now in case anyone is trying to make the jump from external rules to add-ins.

Everyone feel free to share your setup, and criticize mine!


r/InventorAPI • • Sep 12 '25

Inventor to revit data exchange

Thumbnail reddit.com
1 Upvotes

r/InventorAPI • • Apr 25 '25

Bevel Gear using VBA

1 Upvotes

Hello i am working on my thesis and i need to create an automation that creates a pair of bevel gears anyone that has done it before?


r/InventorAPI • • Oct 13 '24

Adding Assembly occurence and updating scale

1 Upvotes

Hi there,

I'm trying to code an add-in for Inventor that will import STL files from a folder and place them based on a transformation matrix that I have passed through in an XML file. The only issue is the scale of the part which will vary depending on the units that someone is using. I calculate the scale factor but when adjusting the transformation matrix, Inventor throws an unspecified / invalid parameter error.

I have tried to update the scale explicitly:

TransientGeometry transientGeo = m_inventorApplication.TransientGeometry;            
Matrix transformMatrix = transientGeo.CreateMatrix();
transformMatrix.SetToIdentity();
transformMatrix.Cell[1,1] = scaleFactor;
transformMatrix.Cell[1,2] = matrixArrayValues[1];
transformMatrix.Cell[1,3] = matrixArrayValues[2];
transformMatrix.Cell[1,4] = matrixArrayValues[3] * scaleFactor;
transformMatrix.Cell[2,1] = matrixArrayValues[4];
transformMatrix.Cell[2,2] = scaleFactor;
transformMatrix.Cell[2,3] = matrixArrayValues[6];
transformMatrix.Cell[2,4] = matrixArrayValues[7] * scaleFactor;
transformMatrix.Cell[3,1] = matrixArrayValues[8];
transformMatrix.Cell[3,2] = matrixArrayValues[9];
transformMatrix.Cell[3,3] = scaleFactor;
transformMatrix.Cell[3,4] = matrixArrayValues[11] * scaleFactor;
transformMatrix.Cell[4,1] = matrixArrayValues[12];
transformMatrix.Cell[4,2] = matrixArrayValues[13]; 
transformMatrix.Cell[4,3] = matrixArrayValues[14];
transformMatrix.Cell[4,4] = matrixArrayValues[15];

and I have also tried to add scale by transforming with a scaling matrix:

private Matrix CreateScaleMatrix(TransientGeometry transGeo, double scaleFactor) 
{   
    Matrix scaleMatrix = transGeo.CreateMatrix();
    scaleMatrix.SetToIdentity();
    scaleMatrix.Cell[1,1] = scaleFactor;
    scaleMatrix.Cell[2, 2] = scaleFactor;
    scaleMatrix.Cell[3, 3] = scaleFactor;
    return scaleMatrix;
}

Matrix scaleMatrix = CreateScaleMatrix(transientGeo, scaleFactor);
transformMatrix.TransformBy(scaleMatrix);

Neither of these work, failing on the line:

var occ = assemblyOccurences.Add(System.IO.Path.Combine(rootPath, fileName), transformMatrix);

The exception reads:

System.ArgumentException: Unspecified Argument

at System. Runtime Type.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object] providedArgs, ParameterModifier[ modifiers, Culturenfo culture, String I namedParams)

at System.RuntimeType.ForwardCallTolnvokeMember(String memberName, BindingFlags flags, Object target, Object] aArgs, Boolean I aArgslsByRef, Int32[ aArgsWrapperTypes, Typell aArgsTypes, Type retType)

or sometimes:

System.ArgumentException: Invalid Parameter

at System. Runtime Type.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object] providedArgs, ParameterModifier[ modifiers, Culturenfo culture, String I namedParams)

at System.RuntimeType.ForwardCallTolnvokeMember(String memberName, BindingFlags flags, Object target, Object] aArgs, Boolean I aArgslsByRef, Int32[ aArgsWrapperTypes, Typell aArgsTypes, Type retType)

I would appreciate any help on this topic!


r/InventorAPI • • Aug 07 '24

Joint selection tool

1 Upvotes

Hello everyone, Does somebody know how to invoke the joint selection type in ilogic or vb? Want the user to select a part but with the same input, want to use the part later in the code to contrain it.


r/InventorAPI • • Aug 06 '24

The Importance of API Development in Modern Software Engineering

Thumbnail
quickwayinfosystems.com
1 Upvotes

r/InventorAPI • • Jul 12 '24

iLogic save as and replace component.

Thumbnail self.autodeskinventor
1 Upvotes

r/InventorAPI • • Aug 22 '20

iLogic Properties Tool-Tip #3

Thumbnail
clintbrown.co.uk
1 Upvotes

r/InventorAPI • • May 09 '20

iLogic Theme Switcher

Thumbnail
self.autodeskinventor
1 Upvotes