(iLogic ) Automatic Update Flat Pattern Extents

(iLogic ) Automatic Update Flat Pattern Extents

abilabib
Advocate Advocate
2,662 Views
10 Replies
Message 1 of 11

(iLogic ) Automatic Update Flat Pattern Extents

abilabib
Advocate
Advocate

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

 

0 Likes
Accepted solutions (1)
2,663 Views
10 Replies
Replies (10)
Message 2 of 11

abilabib
Advocate
Advocate

No respon Smiley Surprised

0 Likes
Message 3 of 11

xiaoyan.qi
Alumni
Alumni

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

0 Likes
Message 4 of 11

abilabib
Advocate
Advocate

I have try for add code follow your suggestion n dimension properties still can't automatic update. I must run rule manualy

0 Likes
Message 5 of 11

xiaoyan.qi
Alumni
Alumni

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

0 Likes
Message 6 of 11

Anonymous
Not applicable

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

 

0 Likes
Message 7 of 11

abilabib
Advocate
Advocate

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. 

0 Likes
Message 8 of 11

abilabib
Advocate
Advocate

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 Smiley Happy

0 Likes
Message 9 of 11

xiaoyan.qi
Alumni
Alumni
Accepted solution

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?

Rule option.jpg


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

0 Likes
Message 10 of 11

Anonymous
Not applicable

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.

0 Likes
Message 11 of 11

abilabib
Advocate
Advocate

Hi Xiaoyan,

 

Thanks for your reply. It's solve now n case close Smiley Happy.

 

Thanks,

 

Abi Labib

0 Likes