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: 

iLogic Drawing Adding Sheets

1 REPLY 1
Reply
Message 1 of 2
steve
622 Views, 1 Reply

iLogic Drawing Adding Sheets

The Goal is to add a sheet (with the DWG AP Template)and insert the Top View of the Part into the sheet. I can add the sheet but am unable to use the template I want. It comes in as a C Size Sheet. Doesn't help I have a Nasty Cold. Any Help would be appreciated. Thanks.

1 REPLY 1
Message 2 of 2
MechMachineMan
in reply to: steve

Regardless of whether you want them filled in programatically or not, the AddSheet, AddTitleBlock, AddSketchedSymbol methods all EXPECT an array witha  field for each prompted entry in said drawing entity.

 

So if your sheet is being added with a template that has prompted entry strings, you still need to feed the argument into the function to make it add without erring.

 

ie;

 

Dim sPromptStrings(0 To 1) As String
		sPromptStrings(0) = "" 'blank to "ignore it"
		sPromptStrings(1) = "" 
oSheet.SketchedSymbols.Add(oSketchedSymbolDef,oInsertionPoint, 0, 1, sPromptStrings)

 


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

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

Post to forums  

Autodesk Design & Make Report