Capturing a portion of a varible

Capturing a portion of a varible

kernal088
Explorer Explorer
241 Views
1 Reply
Message 1 of 2

Capturing a portion of a varible

kernal088
Explorer
Explorer

Hi

 

I am looking to grab a portion of a variable string

 

My Exit Hole Dia is 0.065000 (Model Value)

I only want to use 0.065000. I can easily do this in VBA

but Inventor is another Story

Can anyone

EHDLT should return me 0.065

EHD should return me 065

 

'EXIT HOLE DIA
HIGH_EXIT_HOLE_DIA =
0.065000
EHDLT=Left(HIGH_EXIT_HOLE_DIA,5) EHD=Right(EHDLT,3)

 

Thanks

 

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

MechMachineMan
Advisor
Advisor

iLogic is vb.net with imported classes and such.

 

So how you have it coded there should be working just fine in the rule environment..

 

I tested it out and I'm definitely seeing 0.065 and 065 returned..


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