iLogic Drawing Adding Sheets

iLogic Drawing Adding Sheets

Anonymous
Not applicable
749 Views
1 Reply
Message 1 of 2

iLogic Drawing Adding Sheets

Anonymous
Not applicable

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.

0 Likes
750 Views
1 Reply
Reply (1)
Message 2 of 2

MechMachineMan
Advisor
Advisor

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