04-15-2015
06:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
04-15-2015
06:04 AM
Hi James,
For the .Add, why it is failing, it doesn't look like anything with syntax to me, so maybe try starting a new doc with that template and see if there is anything unexpected going on, or check your file location. - Actually, looking now the .dwg seems weird to me (I only work with .idw). Is it an inventor dwg? have you actually tried opening this file directly in inventor before?
As for the name, it just needs to be as it appears in it's node under sheet formats, so the format you have with quotes is correct. You could also use them item # that corresponds to it's position in the list; 1 through whatever you may have.
Also, for add using sheet format, you have to be very careful if the template has a model in or not; writing the line for the opposite case with throw a parameter error.
Other than that, It all looks fine to me.
--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.
For the .Add, why it is failing, it doesn't look like anything with syntax to me, so maybe try starting a new doc with that template and see if there is anything unexpected going on, or check your file location. - Actually, looking now the .dwg seems weird to me (I only work with .idw). Is it an inventor dwg? have you actually tried opening this file directly in inventor before?
As for the name, it just needs to be as it appears in it's node under sheet formats, so the format you have with quotes is correct. You could also use them item # that corresponds to it's position in the list; 1 through whatever you may have.
Also, for add using sheet format, you have to be very careful if the template has a model in or not; writing the line for the opposite case with throw a parameter error.
Other than that, It all looks fine to me.
--------------------------------------
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
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