Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
shmartin89
Posts: 74
Registered: ‎04-25-2012
Message 1 of 9 (247 Views)
Accepted Solution

Alter the value of a part parameter from an drawing (idw) File.

247 Views, 8 Replies
04-01-2014 07:32 AM

Hey guys,

 

I want to be able to influence the value of a part parameter using ilogic in a drawing file.

 

Currently I have a Input Box list set up in a drawing file with numberous options for the user to select. (Via a MultiValue Parameter)

 

How can I link the selection of the Input Box list to alter the value of a parameter in a related part file?

 

E.g - Input User Box - Select Beam size: 1/2/3

 

User selects "2"

 

Part file parameters update to suit User selection.

 

Thanks

 

Sandy,

 

P.s I have tried using the ParameterMakePath fuction but without success,

 

Cheers,

Capture.JPG

*Expert Elite*
mrattray
Posts: 2,507
Registered: ‎09-13-2011
Message 2 of 9 (241 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-01-2014 07:47 AM in reply to: shmartin89

Capture.JPG

Mike (not Matt) Rattray

Valued Contributor
shmartin89
Posts: 74
Registered: ‎04-25-2012
Message 3 of 9 (193 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 07:17 AM in reply to: mrattray

Thanks Mike,,

 

The other trouble I am having is updating the relative parts and assembly files which this ilogic will affect. I have tried to use my events trigger & set to any paramater change but I cant get it to work. I have to open the parts and click update in order for the drawing to update.

 

Any help on this issue would be much appreciated,

 

Thanks

 

Sandy

*Expert Elite*
mrattray
Posts: 2,507
Registered: ‎09-13-2011
Message 4 of 9 (187 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 07:30 AM in reply to: shmartin89

Try adding this anywhere in your rule:

 

iLogicVb.UpdateWhenDone=True

 

Mike (not Matt) Rattray

Valued Contributor
shmartin89
Posts: 74
Registered: ‎04-25-2012
Message 5 of 9 (184 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 07:40 AM in reply to: mrattray

No Luck. I still open up my child part & it still wants it to update. The parent assembly is the same.

 

Thanks,

*Expert Elite*
mrattray
Posts: 2,507
Registered: ‎09-13-2011
Message 6 of 9 (178 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 07:45 AM in reply to: shmartin89

Try adding a rule to your "child parts" as follows:

 

localTrigger = YourParameter

InventorVb.DocumentUpdate()

 

Replace "YourParameter" with the name of whatever parameter your trying to change from the drawing file.

Mike (not Matt) Rattray

Valued Contributor
shmartin89
Posts: 74
Registered: ‎04-25-2012
Message 7 of 9 (174 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 08:19 AM in reply to: mrattray

Adding that to my child part does the job. Thanks. I also added it to the part above it (which my child part is derived into) and the assembly file above that. Neither of which are updating still. I derived in the paramater & reference in the code of each of the 2 files above my child part but they still wont update.

 

If I run the Rules the parts update but I dont think I can run the rules from event triggers base on a lower parts paramater change.

 

Thanks

 

Sandy

 

 

*Expert Elite*
mrattray
Posts: 2,507
Registered: ‎09-13-2011
Message 8 of 9 (171 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 08:21 AM in reply to: shmartin89
Another option that may work for you is to use the "Before Save" trigger. This would obviously require you to save your files before anything would update, though.
Mike (not Matt) Rattray

Valued Contributor
shmartin89
Posts: 74
Registered: ‎04-25-2012
Message 9 of 9 (171 Views)

Re: Alter the value of a part parameter from an drawing (idw) File.

04-03-2014 08:24 AM in reply to: shmartin89

Just to Clarift File Structure This is my browser....

 

Capture.JPG

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.