Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ilogic - Custom Iproperties

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Remy-intl
515 Views, 2 Replies

Ilogic - Custom Iproperties

Hello,

 

For an ERP i need to cut the title in 3 custom iproperties.

 

My rule work only partially.

I succed to cut the title in 3 variable of 30 character but I can't stock into my custom properties....

Dim TitrePartie1, TitrePartie2, TitrePartie3 As String
		TitrePartie1 = Left(iProperties.Value("Summary", "Title"), 30)	
		TitrePartie2 = Mid(iProperties.Value("Summary", "Title"), 31, 30)
		TitrePartie3 = Right(iProperties.Value("Summary", "Title"), 30)
		MessageBox.Show(TitrePartie1)
		' Pour test: affiche le titreERPi et le nombre de charactères
		'MessageBox.Show(TitrePartie1 & " " & Len(TitrePartie1) & vbLf & _
		'TitrePartie2 & " " & Len(TitrePartie2) & vbLf & _
		'TitrePartie3 & " " & Len(TitrePartie3) & vbLf  _
		', "iLogic ")
		
'The 3 lines below don't work... Do you understand why?
'The 3 custom properties TitreERP1 & TitreERP2 & TitreERP3 are already created.
iProperties.Value("Custom", "TitreERP1") = TitrePartie1 iProperties.Value("Custom", "TitreERP2")= TitrePartie2 iProperties.Value("Custom", "TitreERP1") = TitrePartie3

'When I try iProperties.Value("Custom", "TitreERP1") = "a" it's work :(

Thanks

Tags (1)
Labels (1)
2 REPLIES 2
Message 2 of 3
snappyjazz
in reply to: Remy-intl

Hi @Remy-intl 

Does it give you an error? what is the error? I copy and pasted your code and created your 3 custom properties and it worked for me.

 

P.S. your line:

iProperties.Value("Custom", "TitreERP1") = TitrePartie3

Probably meant to write:

iProperties.Value("Custom", "TitreERP3") = TitrePartie3
Message 3 of 3
Remy-intl
in reply to: snappyjazz

Thanks.

 

Today it's working...

I think the computer just needed a restart....

Thanks a lot for your remark...

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report