Open .dwg with iLogic

Open .dwg with iLogic

keithjk
Advocate Advocate
1,266 Views
5 Replies
Message 1 of 6

Open .dwg with iLogic

keithjk
Advocate
Advocate

Is it possible to open a .dwg file with Inventor?  I want to open my assembly .dwg and pass some custom iProperties to it. 

0 Likes
Accepted solutions (1)
1,267 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Accepted solution

Sure it's possible,

 

ThisApplication.Documents.Open("Full file path + extension here")

 

How do you want to pass some custom iProperties to it?

 

0 Likes
Message 3 of 6

keithjk
Advocate
Advocate

Jefkee,

 

Thanks, I figured it out yesterday and I figured out how to pass the iPoperties also.  (I have a LISP and .NET background so iLogic is knew to me.) 

 

It appears to me that iLogic can use many .NET functions?

0 Likes
Message 4 of 6

Anonymous
Not applicable

and it's possible to open autocad file with autocad in inventor?

0 Likes
Message 5 of 6

MechMachineMan
Advisor
Advisor

If your file assosciation defaults are set to open .dwg's with autocad, this should work:

 

Process.Start("C:\FileName.dwg")

--------------------------------------
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
Message 6 of 6

Anonymous
Not applicable

Thanks MechMachine 🙂

0 Likes