How to make Automatic Update propeties for Flat Pattern Extens. I have write code and setting rules trigerred by event (Before save, Any model Parameter Change) but if some parameter change properties isn't automatic update. So could some one tell me how to solve this problem.
Part with iLogic code is attached
Solved! Go to Solution.
Solved by xiaoyan.qi. Go to Solution.
Hi
I don't know your detailed steps, but you can try to add a update() before assign the value to flat pattern extents, like below:
===================================
ThisDoc.Document.update()
MaterialLength = SheetMetal.FlatExtentsLength
MaterialWidth = SheetMetal.FlatExtentsWidth
===================================
Let me know if it works
Thanks
Mick
I have try for add code follow your suggestion n dimension properties still can't automatic update. I must run rule manualy
Sorry, i can't see your problem.
Could you describle your steps more details ?
Here is my steps(validate in R2010)
1. open the parameters table(fx, not the ifx)
2. change the parameter "d40", like change to "100",Enter
3. the parameter "MaterialWidth" change to 100
4. see the customer Properties value "MaterialWidth" from iProperties, it also updated to 100
is there any different on your steps?
Thanks
Mick
It looks like you are planning to have the extents be available in custom iproperties. If so this might be easier than having to go thru parameters. Create a custom iproperty (materialwidth) and have the value set to "=<Sheet Metal Wdith>". Then another custom iproperty (materiallength) and have the value set to "=<Sheet Metal Length>". (without the quotes). This will update whenever the part updates. Hope that helps.
Dan
Hi Danvang,
Thanks For You're reply. I can't set value with "<Sheet Metal Length>" becase the result isn't good. There is ".000 mm" n I must set document setting for avoid this string.
Hi Xiaoyan,
Thanks for your reply. I will try for exlplain what I want :
1. I have custom property is called "Dimension"
2. "Dimension" will filled with parameter "MaterialLength" dan "MaterialWidth"
3. The source value for "MaterialLength" n "MaterialWidth" is from "MaterialLength = SheetMetal.FlatExtentsLength" and "MaterialWidth = SheetMetal.FlatExtentsWidth"
4. Please refer to My attachment. When I change paramater "d34" "dimension" property isn't automatic update. I must running iLogic rule for update this propeties.
Hoper you can understand
Unfortunately, i still can't reproduce your problem , see my attached Vedio for details
could you check whether the "Run these rules when events occur" option is checked in your machine?
if it's still not the problem, you can try to create a Rule to run the current rule, see my attached ipt file
Hope it can be work this time
Thanks
Mick
There should be an equal sign before the less than\greater than sign
=<Sheet Metal Length>
=<Sheet Metal Width>
I don't recall if this was available in 2010 but it does work in 2011 and 2012. If it doesn't work then the ilogic route will be the way to go.
Hi Xiaoyan,
Thanks for your reply. It's solve now n case close .
Thanks,
Abi Labib