iLogic to Break STEP File Links

iLogic to Break STEP File Links

jtylerbc
Mentor Mentor
170 Views
3 Replies
Message 1 of 4

iLogic to Break STEP File Links

jtylerbc
Mentor
Mentor

We have a fairly large (300+) collection of files that have been imported from supplier STEP files into Inventor using Task Scheduler, then formatted according to our standards. 

 

Unfortunately, after everything else was nearly done, it was discovered that the files had been brought in using the "Reference Model" option instead of "Convert".  This leaves links back to the original STEP files, which in our case was unintentional and unwanted.

 

Is there a way to break the link to the STEP files in iLogic, instead of opening and manually breaking the link in hundreds of files?  We have found examples that break links in derived parts, but it seems the STEP link is treated differently, so the same code does not work in our situation.  We would be looking to run the code from an assembly that contains all the parts

0 Likes
171 Views
3 Replies
Replies (3)
Message 2 of 4

cidhelp
Advocate
Advocate

Hello @jtylerbc ,

 

try running the attached iLogic from your assembly that contains all the STEP-File-Links.

All components will be saved in the assembly's folder.

0 Likes
Message 3 of 4

jtylerbc
Mentor
Mentor

@cidhelp,

 

Thanks.  I haven't had a chance to try this out yet (this is kind of a background project, and other things have taken priority for the last couple of days).  But I did take a look at the code, and was curious about your statement that "All components will be saved in the assembly's folder".

 

All of the part files for these components already exist.  Does this mean that your code saves a new copy of the part files?

0 Likes
Message 4 of 4

cidhelp
Advocate
Advocate

Hello @jtylerbc ,

 

if you have referenced STEP-Files (instead of converted) there are no IPT/IAM-Files for the STEP's components. They will be created by breaking the link.

The iLogic-Rule traverses through the assembly's referenced files, checks each one, if it is referenced import and if so it breaks the link (like you can at the UI). It is necessary to save (including subcomponents) after breaking a link, before the next import can be broken.

I have created a sample IAM with some referenced STEP-Files. Running the rule creates the converted IPT's/IAM's in the top assembly's folder.

 

If you have referenced STEP's and additionally all converted files are already existing, I can not say, if copies of the part files are created.

0 Likes