Inventor General

Reply
Contributor
Fleagle8t
Posts: 22
Registered: ‎06-26-2012
Message 1 of 2 (203 Views)

iLogic code to embed externally ran rule to ipt.

203 Views, 1 Replies
01-12-2013 02:28 PM

Hi Folks,

I have put together some ilogic code which is embedded within a part template, this auto populates the iproperties with the profiles length,width and thickness, and also automatically updates when any changes are made to the said profile When I hit save.

This works a treat when creating new parts, the problem arises when re-using old parts from previous jobs (Which is a regular occurrence),prior to when the code was created.

  So I have to run the code as an external rule, but this has caught me,and a few other people out, as we have forgotten to run the rule after making a change to the part so the iproperties aren't automatically updated.

 My question is, is there a snippet of code that I could add to my code, which embeds the the externally ran rule to the Ipt? 

I hope this makes sense???

Distinguished Mentor
pcrawley
Posts: 665
Registered: ‎05-23-2002
Message 2 of 2 (181 Views)

Re: iLogic code to embed externally ran rule to ipt.

01-13-2013 01:19 PM in reply to: Fleagle8t

You could run "Code Injector".  You can batch select all your old files and add your rule to them. Easy.

 

I have to say that Code Injector is the greatest iLogic-related tool ever.  Being able to push code into parts that previously didn't have code - or modify code on parts - or run code to change models... It's just awesome. 

 

http://beinginventive.typepad.com/being-inventive/2012/02/injecting-ilogic-code-and-ilogic-event-tri...

Peter

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube