- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Need help with Inventor VBA to do actions during Save Events
Hello,
I'm working on a project for my company where I takes documents from AutoCAD 2015 and Inventor 2015 and make copies of them during the save event to be placed in a different directory so they can be converted to .pdfs. I have this done in AutoCAD and was now just trying to do in Inventor as well. However, even though I was able to find the vba editor easily enough in Inventor 2015, I can not seem to find a working function that interacts with Inventor whenever the user saves. Once I find a way to interact with it I should be all right with the coding I already did for the AutoCAD side.
Also, is there a way to save the coding in a seperate file, like .dvb for AutoCAD?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
If you have Inventor on your computer go find the
C:\Program Files\Autodesk\Inventor 2014\Local Help\admapi_18_0.chm file and check it out. It's a good reference to start with for inventor.
(Also found by going to Programming Help through the question mark in the top right on the open inventor window)
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, thanks for look at my post and offering suggestions, but it's my fault for not being specfic in the first post. I'm working in the VBA and would like to do something like this code I have for AutoCAD, but use it instead for Inventor:
"Private Sub AcadDocument_BeginClose()
Dim name As String
name = ThisDrawing.name
ThisDrawing.SaveAs "C:\otherDirectory\TEMPLATE\test\" & name
End Sub"
I'm saving it in the other directory s a backup and for conversion purporses later.
Also does the Inventor VBA have some similar to "Private Sub AcadDocument_EndSave(ByVal FileName As String)" and "Private Sub AcadDocument_BeginSave(ByVal FileName As String)" functions?