Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
DFitting
in reply to: Frederick_Law

Oh ok, I see what you are saying now. 

 

My current thoughts are to run the ilogic code from an inventor assembly that will create all the assemblies and then when each is created it will switch out the parts inside the assemblies to configure the part the correct way. 

 

For this example, there are about 3000 assembly variations that need to be created. Each assembly has a pipe and a flange, and based off the file name it is either a raised face slip on or a weld neck. I already have the code working that will take the file name and determine what the parts inside should be, and it is switching the parts out based on this data. I just need a way to create the assemblies that will enable this other rule to be activated, I don't want it to be an event trigger as I would rather not have the rule run each time that the file is opened or saved or whatever. Ideally, when the assembly is created it would run the subroutine and go ahead and change out the flanges and pipes then. I think I will be able to do most of that, I just don't know how to get started on inventor creating the assemblies. 

 

Attached is a sample of a nozzle that has the pipe and the flange and the assembly file with the ilogic inside. I have them saved in a 2019 folder in my public folder, if you duplicate this setup, you can delete the parts inside the assembly and run the rule to see what it is doing. I have downloaded a flange from the content center just as a test, once I get it all ready, I will be pulling from the content center, I don't want to edit the families until I know it will work. 

 

Thanks.