Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Open .dwg with iLogic

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
keithjk
1036 Views, 5 Replies

Open .dwg with iLogic

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

5 REPLIES 5
Message 2 of 6
Jefkee
in reply to: keithjk

Sure it's possible,

 

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

 

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

 

Inventor 2013
Message 3 of 6
keithjk
in reply to: Jefkee

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?

Message 4 of 6
ChristinaForest
in reply to: keithjk

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

Message 5 of 6

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

Thanks MechMachine 🙂

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report