iLogic Inventor Drawing Save As

iLogic Inventor Drawing Save As

Anonymous
Not applicable
1,597 Views
3 Replies
Message 1 of 4

iLogic Inventor Drawing Save As

Anonymous
Not applicable

I have a rule that runs a part drawing to save as after I put a new part in it.   When I start with and "idw" drawing file everything is fine.

 

ThisDoc.Document.SaveAs(ThisDoc.Path & "\" & RtrnSpannerPnNo & ".idw", True)

 

Problem I have is that there are lots of drawings that I want to reference and save as on that are Inventor based .dwg  files.  When I swap out ".idw" with ".dwg", I get a new file that is actually correct, but it is an autocad .dwg that is not tied to model.  How can I get the SaveAs to pick Inventor based .dwg?

0 Likes
Accepted solutions (1)
1,598 Views
3 Replies
Replies (3)
Message 2 of 4

MechMachineMan
Advisor
Advisor
Accepted solution

As you would have seen had you looked in Programming Help....

 

 

 

DrawingDocument.SaveAsInventorDWG Method

Syntax

DrawingDocument.SaveAsInventorDWG( FullFileName As String, SaveCopyAs As Boolean )


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

Jonathan.Landeros
Advocate
Advocate

Thanks! 

I was wondering the exact thing myself.  Ironically, looking in the first place is the last thing that I thought of. 

Lesson learned!  Now to give it a go!

====================================================

It is possible to fly without motors, but not without knowledge and skill.
Wilbur Wright

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.
0 Likes
Message 4 of 4

Anonymous
Not applicable

I didn't even know it existed, so I got a two for one!

0 Likes