r/InventorAPI • u/oomclint • Jan 27 '20
r/InventorAPI • u/im_on_reddit_dot_com • Mar 29 '19
Using a Yes No message box in your iLogic rule
r/InventorAPI • u/oomclint • Mar 25 '19
Check & Report on iProperties with iLogic
r/InventorAPI • u/ItsOk_ImYourDad • Oct 12 '19
I want to access the inventor part history tree through the API using python to add features into folders in the tree. Thoughts ?
Specifically I want to be able to organize features into folders using the history tree in the part environment
Currently this is only possible in the assembly environment
My goal is to learn to access the inventor API using python to add this functionality
Please advise
r/InventorAPI • u/oomclint • Sep 30 '19
Assembly Surface Areas & an iLogic Hack
r/InventorAPI • u/jaxetarr • Feb 25 '25
Programming Courses that are helpful for iLogic/InventorAPI
I am a designer drafter using Inventor 2024. I understand rudimentary iLogic rules, but get baffled when looking at the more complex rules. It was suggested once to learn coding to better understand how advanced rules are used.
I am looking for suggestions on a good language to start with that and a good credible online course that I can present to my management for reimbursement.
Thanks
r/InventorAPI • u/anujtomar_17 • Aug 06 '24
The Importance of API Development in Modern Software Engineering
r/InventorAPI • u/FroyoAbject • Feb 12 '24
Most of the AddIns won't work after Inventor 2025
With version 2025, add-ins based on the .NET Framework will no longer work; they must be migrated to the new .NET, which works differently in many ways than the .NET Framework. Even iLogic scripts may need to be adapted.
I think this is very critical, some companies have been using add-ins for decades, and for many of them the source code will no longer be available... That will have an impact!
Don't get me wrong, I think it's good that Autodesk is moving away from the old .NET Framework, but it will hurt.
What do you think about this? Will it affect your work/company?
r/InventorAPI • u/Competitive_Voice218 • Aug 07 '24
Joint selection tool
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 • u/HagermanCompany • Dec 11 '23
Inventor Tutorial: Using iLogic to create a Complex Design
r/InventorAPI • u/HagermanCompany • Dec 20 '23
New addition to Inventor2024: Integrate iLogic code directly with Vault
r/InventorAPI • u/BanTheRaisins • Oct 13 '24
Adding Assembly occurence and updating scale
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 • u/dhillonrobby • Dec 15 '22
Retrieve all the dimensions associated with en extrusion or sweep ( extruded or swept via a sketch block)
Hi as the title says I want to retrieve all the dimensions associated with the sketch block which is used to extrude or sweep.
Is there any way with illogic to a gauge this?
Thanks 🙏
r/InventorAPI • u/Alexander556 • Aug 20 '24
Bevel Gear generator?
Is there an add in or anything similar to help with designing a Bevel gear onto a very specific surface and a corresponding gear onto a shaft?
I tried to use the Bevel gear generator in Inventor, but it looks like it doesnt work like the Spur Gear and the worm gear generator.
Any Idea what i could do about this problem?
r/InventorAPI • u/elementsam • Jul 12 '24
iLogic save as and replace component.
self.autodeskinventorr/InventorAPI • u/[deleted] • Aug 28 '25
Can we extract part from assembly via code/script (same as Derived Part) in Inventor?
I’m trying to figure out if it’s possible to extract a part from an assembly through code or scripting in Autodesk Inventor.
The main aim is to generate a part file that maintains the same orientation and position as it has inside the assembly (similar to how a derived part works).
Has anyone implemented this through the Inventor API, iLogic, or any external script? Any pointers, examples, or references would be greatly appreciated.
r/InventorAPI • u/dable82 • Mar 28 '19
Using Python with Inventor API
Hey guys, if you are like me and hate writing Code in VBA you can actually write Python scripts for Inventor using the win32com.client module. To use the module, you have to `pip install pywin32`. Here is a sample of a pretty useless script, but it should be good enough to get you going.
If you have any Questions About what's going on here, feel free to ask.
edit: https://pastebin.com/1ZvSpku5
Code formatting doesn't seem to work.
