- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm facing an issue with extruded text on my ipt, which is inside an assy.
There are two sources for this text, which are combined. Source one of the text is a custom iProperty called "PositionNumber". This custom iProperty is driven by a custom toolbar which renumbers our parts in order of placement in the model tree. It writes this positionnumber in the custom iProperties.
Source two is a user parameter called "TextInput". This textinput parameter is manually filled by an iLogic form. The text in the sketch looks like this:
<PositionNumber>
<TextInput>
An example of the final text would be:
0010
Aluminium
or
0020
Steel
But for some reason, the position number does NOT update, while the text does.
I've set up an Event Trigger that runs an iLogic script on iProperty change. I also have two triggers in my script. These trigger in case the text has been changed or the 'print text' question in the form is set from yes to no or vice versa.
trigger1 = TextInput
trigger2 = TextProduct
If parameter("TextInput") = "" Then 'ensure freefill text is never empty
parameter("TextInput") = "-"
End If
Feature.IsActive("Text on product") = parameter("TextProduct") 'enable text modelfeature based on TextProduct parameter (true/false)
The problem is: it updates the textproduct part of the description, but for some reason it will not import the custom parameter until I save the document, open it, enter the text, then close the text and save the document again.
I have worked around this issue by rewriting my iLogic to the script below. So, the custom iProperties value exist and updates properly because i can grab it this way. But why won't the text tool grab the custom iProperties immediately?
trigger0 = ProductID
trigger1 = TextInput
trigger2 = TextProduct
If parameter("TextInput") = "" Then 'ensure freefill text is never empty
parameter("TextInput") = "-"
End If
parameter("ProductID") = iProperties.Value("Custom", "PositionNumber")
Feature.IsActive("Text on product") = parameter("TextProduct") 'enable text modelfeature based on TextProduct parameter (true/false)
So now my text looks like this, just to figure out what's going on:
<Parameter, ProductID>
<iProperty, PositionNumber>
<Parameter, TextInput>
Now the iProperty value updates just fine. But why? Because I've poked it with my iLogic instead of just trying to access it with the Text tool?
Solved! Go to Solution.