A string that can be used through multiple blocks

A string that can be used through multiple blocks

AMN3161
Advocate Advocate
464 Views
2 Replies
Message 1 of 3

A string that can be used through multiple blocks

AMN3161
Advocate
Advocate

I figure there is a way to have a string that will carry over data through multiple blocks without needing to define it under a new name, i am about to do something goofy like having logic create a custom iproperty and populate it, then use the data and delete the custom iproperty at the end of the rule.

 

but thats pretty janky.

 

 

0 Likes
Accepted solutions (1)
465 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor
Accepted solution

Do you mean that you want to store String type data between multiple iLogic Rules, or just between multiple Subs and Functions within a single iLogic rule?

To store data to session memory, so that another rule can use it, you could use a SharedVariable.

(You can find examples of using these within the Snippets:  iLogic rules editor dialog > Snippets > System tab > Variables)

If you just want to be able to access the same data between multiple Subs and Functions within the same rule, you could just define the variable outside of all the Sub or Function blocks.  For instance after the Sub Main and End Sub.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click 'LIKE' 👍.

If you have time, please... Vote For My IDEAS 💡and Explore My CONTRIBUTIONS

Inventor 2020 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 3 of 3

AMN3161
Advocate
Advocate

Its within the same rule, thank you that helps me!

 

I figured it was something simple

0 Likes