Run rule depending on previous file open

Run rule depending on previous file open

Anonymous
Not applicable
323 Views
2 Replies
Message 1 of 3

Run rule depending on previous file open

Anonymous
Not applicable

Hi everyone,

 

I am trying to create a set of rules in my drawing template that will populate the drawing with views and dimensions based on the kind of part file that opened it. For example, if in my drawing template I have 3 rules, one called "Seal Sleeve", another called "Laby Sleeve" and another called "Carbon Sleeve", then I want it so that when I open the drawing template coming from the Seal Sleeve file, it will automatically run the "Seal Sleeve" rule.

 

There are some core goals here. One is to try and do everything in iLogic without having to begin creating an external application. Another is to try and preserve the ideal of having a single custom drawing template, instead of multiple templates for different parts. This is so that when we want to change the borders and title blocks, we can change our centrally located vault template once, and it will change on everyone elses computer.

 

Another thing that might be important is that currently, I have a button in my part template file that says "create drawing". This runs a rule that prompts the user to save, and then opens up the drawing template file. If anyone knows a way to pass the part filepath into the drawing, that would be swell.

 

Thanks,

Rohan

0 Likes
324 Views
2 Replies
Replies (2)
Message 2 of 3

MechMachineMan
Advisor
Advisor

Depending on how similiar your parts that go in each template are,

 

You might just be able to use a very standard part template and then use a fully dimensioned drawing as a template, but just "Replace Reference" for the drawing?


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes
Message 3 of 3

Anonymous
Not applicable

The problem is that the same template is used for some parts that are completely different and drawn from scratch. That is why I want to keep the template blank and populate it using iLogic rules.

0 Likes