iLogic that uses vlookup table to edit text labels

iLogic that uses vlookup table to edit text labels

Anonymous
Not applicable
374 Views
1 Reply
Message 1 of 2

iLogic that uses vlookup table to edit text labels

Anonymous
Not applicable

Hello,

 

I have a situation where one drawing file is used for multiple parts and the only difference when a new drawing is made is the text labels are edited for the specific part we're using.  I would like a VBA (ilogic solution) where the text labels on the drawings are populated by a vlookup from Excel based on iProperties in the title block.

 

For example, consider a drawing that has 5 text labels "1", "2", "3","4","5" and an iProperty field called "Entity" that is displayed in the title block.  When I open that drawing and change the title block iProperty parameter "Entity" to LSB123, the text labels should change as per example Excel table below.  i.e., "1" becomes "G100", "2" becomes "G102", etc.

 

thanks,

 

Ryan 

Capture.JPG

 

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

MechMachineMan
Advisor
Advisor

How are the text labels put in?

 

Is it simply a text box?

 

Is it a sketched symbol?

 

Does it have a leader?

 

Are they actually balloons with a different style?

 

Do the text labels have style overrides attached to them?

 

Are there any other objects input similarly that might be accidentally changed?


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