how to replace titleblock with a prompted entry one

how to replace titleblock with a prompted entry one

Anonymous
Not applicable
415 Views
3 Replies
Message 1 of 4

how to replace titleblock with a prompted entry one

Anonymous
Not applicable

Hello together,

 

I have a titleblock in a drawing but i want to delete it and replace it with an another one
which have some prompted entrys. But i dont know how to do it. 

 

i've tried the code below, but i can only insert a titleblock wihtout any prompted entry. 

 

how could I insert a titleblock with prompted entry through API within VB.Net?

 

Thank you. Richard

 Dim invapp As Inventor.Application = System.Runtime.InteropServices.Marshal.GetActiveObject("Inventor.Application")
            Dim oSourceDocument As Inventor.DrawingDocument
            oSourceDocument = invapp.ActiveDocument
            Dim oSourceTitleBlockDef1 As Inventor.TitleBlockDefinition
oSourceTitleBlockDef1 = oSourceDocument.TitleBlockDefinitions.Item("jx")
Dim osheet As Inventor.Sheet
            osheet = oSourceDocument.ActiveSheet
 osheet.AddTitleBlock(oSourceTitleBlockDef1)

 

0 Likes
416 Views
3 Replies
Replies (3)
Message 2 of 4

MechMachineMan
Advisor
Advisor

Start by looking here:

 

"C:\Program Files\Autodesk\Inventor 2016\Local Help\admapi_20_0.chm"


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

Anonymous
Not applicable

Does it have to be done through the API?

Maybe the "Drawing Resource Transfer Wizard" supports this?

I do not know for sure as I do not use any prompted title blocks.

 

you can find it in:

All Programs > Autodesk > Autodesk Inventor 20xx > tools

 

0 Likes
Message 4 of 4

MechMachineMan
Advisor
Advisor
As far as I know, yes. You could also try using other tools to help with
part of the process to avoid writing new stuff.

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