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 ) Automatic Update Flat Pattern Extents

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
abilabib
2406 Views, 10 Replies

(iLogic ) Automatic Update Flat Pattern Extents

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

 

10 REPLIES 10
Message 2 of 11
abilabib
in reply to: abilabib

No respon Smiley Surprised

Message 3 of 11
xiaoyan.qi
in reply to: abilabib

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

Message 4 of 11
abilabib
in reply to: xiaoyan.qi

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

Message 5 of 11
xiaoyan.qi
in reply to: abilabib

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

Message 6 of 11
danvang
in reply to: xiaoyan.qi

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

 

** If my reply resolves this issue, please choose "Accept as Solution" **
Dan Vang
Message 7 of 11
abilabib
in reply to: danvang

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. 

Message 8 of 11
abilabib
in reply to: xiaoyan.qi

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

Message 9 of 11
xiaoyan.qi
in reply to: abilabib

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

Message 10 of 11
danvang
in reply to: abilabib

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.

** If my reply resolves this issue, please choose "Accept as Solution" **
Dan Vang
Message 11 of 11
abilabib
in reply to: xiaoyan.qi

Hi Xiaoyan,

 

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

 

Thanks,

 

Abi Labib

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

Post to forums  

Autodesk Design & Make Report