Remove Ilogic Form

Remove Ilogic Form

meck
Collaborator Collaborator
1,412 Views
6 Replies
Message 1 of 7

Remove Ilogic Form

meck
Collaborator
Collaborator

Hi All,

I have a part that can change it's shape when a user sets parameters in an iLogic form within the part. Once the part's parameters are set the user can trigger a save rule and the parts saves out to a new file. Once this happens, I want to be able to remove the iLogic form from the new part. Also there is an embedded spreadsheet that I would also like to remove. I'm doing this so that the part cannot be changed and to lighten the part file. Note I already strip out all of the ilogic rules from the new part file.

 

So in summary, is there a way to remove an iLogic form and or a spreadsheet from a part file using iLogic code?

 

Thanks in advance!

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Accepted solutions (1)
1,413 Views
6 Replies
Replies (6)
Message 2 of 7

MechMachineMan
Advisor
Advisor

iLogic.Automation functionality provides a way to remove forms. 

 

Look through API help or google for how to remove embedded documents.

 


--------------------------------------
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 7

meck
Collaborator
Collaborator

Thanks for the reply!

 

I searched google to find this article on removing embedded objects.

http://beinginventive.typepad.com/being-inventive/2010/03/how-to-remove-unwanted-ole-links-in-an-inv...

 

This works find for removing the embedded spreadsheet. FYI embedded spreadsheets have no FullFilename so searching for "" will return the spreadsheet.

Any ideas on how to remove the iLogic forms?

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 4 of 7

adam.nagy
Autodesk Support
Autodesk Support
Accepted solution

Hi Mike,

 

Might be possible, but I'm wondering if it would not be better just to have an Inventor addin instead which would check the documents and pop up a form if needed.

Then there would be no code/form to add or remove from the documents.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 5 of 7

meck
Collaborator
Collaborator

Thanks For responding Adam. Interesting suggestion. I'll check it out and see if I can make it work.

Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018
0 Likes
Message 6 of 7

adam.nagy
Autodesk Support
Autodesk Support

FYI: just got the feedback that there is no dedicated iLogic function or API to remove an iLogic form.



Adam Nagy
Autodesk Platform Services
0 Likes
Message 7 of 7

AlexFielder
Advisor
Advisor

That's useful to know @adam.nagy, thanks. 🙂 Addins > iLogic

0 Likes