Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Daan_M
265 Views, 1 Reply

Assemble with i-mates & i-Logic

Hi,

 

I work as engineer for a company that makes electric motors.

There are alot of combinations possible creating electric motors (flanges, sizes, shafts).

I have recieved all variant parts of these motors as 3D file, instead of manually adding them thogether for every request i want to make an automated Inventor model. I am trying to make a proof of concept for this.

 

A motor model always consists of 5 parts;

 

- Front Flange

- Rear shield
- Body

- Connection box

- Shaft

 

I thought of using i-mates combined with i-logic to add the parts into an assembly, however i can't get it work properly;

 

Daan_M_0-1653985972780.png

For some reason the flange, body & rear shield are placed correctly. But the shaft and connection box aren't.

I triple checked the i-mates on the shaft, which are only 2 mates, i just don't understand why it get's placed incorrectly....

 

I added the files for generating 1 simple motor.

The code i use i pretty plane so far;

 

Dim oDoc As AssemblyDocument = ThisDoc.Document
Dim oACD As AssemblyComponentDefinition = oDoc.ComponentDefinition

Dim oParts(0 To 4) As String

oParts(0) = "DN71-B"
oParts(1) = "DN71-C"
oParts(2) = "DN71-A-F120"
oParts(3)= "DN71-F"
oParts(4)= "DN71-E"

For Each item In oParts
	
	oACD.Occurrences.AddUsingiMates("C:\Data\Werkmap\animatie\K met ratio\" & item & ".ipt", False)
	InventorVb.DocumentUpdate()
	
	Next

 

Thanks in advance :slightly_smiling_face: