Ilogic to populate a custom iProperty with partial text from a standard iProperty

Ilogic to populate a custom iProperty with partial text from a standard iProperty

gary.creaney
Explorer Explorer
223 Views
2 Replies
Message 1 of 3

Ilogic to populate a custom iProperty with partial text from a standard iProperty

gary.creaney
Explorer
Explorer

Hi,

 

I have a 20 characters Part number populating the standard iProperty 'Part Number'.

 

Is there a piece of iLogic that will populate a custom iProperty with the first 11 characters and then a second custom iProperty with the remaining 9 characters?

 

Let's say the custom iProperties are called:

1st Ref

2nd Ref

 

Any help would be greatly appreciated.

Many thanks

0 Likes
224 Views
2 Replies
Replies (2)
Message 2 of 3

blandb
Mentor
Mentor
iProperties.Value("Custom", "1st Ref") = Left(iProperties.Value("Project", "Part Number"),11)
iProperties.Value("Custom", "2nd Ref") = Right(iProperties.Value("Project", "Part Number"), 9)

iLogicVb.UpdateWhenDone = True
InventorVb.DocumentUpdate()
Autodesk Certified Professional
Message 3 of 3

gary.creaney
Explorer
Explorer

Excellent, thank you so much.

Works perfectly and easily adjusted to suit potential slight variations. 

0 Likes