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

Open an ipt from iam using ilogic

Anonymous

Open an ipt from iam using ilogic

Anonymous
Not applicable

Hello all,

 

Is it possible to open a part from within an open assembly using ilogic? I have a master assembly that when opened notifies the designer that a "Save As" is to be perform and when the message box is closed the "Save As" file dialog box opens to allow the designer to enter the new assembly number and then click save. What I would like to happen is once the file dialog box closes after the save button is clicked, a specified part within the new assembly is opened in a new window, same as going to the part within the assembly and "right click open".

 

Thanks,

 

Scott

 

 

0 Likes
Reply
822 Views
2 Replies
Replies (2)

Anonymous
Not applicable

From my previous request I added:

 

ThisDoc.Launch("C:\My Eng Data\Workspace\Derived Assembly\MASTER_TANK_BASIN_SHELL.ipt")

 

 Which works, but I am looking for a way to have iLogic start with the first ipt in the assembly and open the ipt from it's directory then , save as, close and then go to the next ipt in the assembly and repeat the process through the assembly.

 

Thanks,

 

Scott

0 Likes

MechMachineMan
Advisor
Advisor

Dim oDoc As Document

 

For Each oDoc in ThisApplication.ActiveDocument.AllReferencedDocuments

 

        ThisApplication.Documents.Open(oDoc.FullFileName, True) 'True is visible, false for invisible

        MsgBox("Look at this document! Just look at it!")

 

Next


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