Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
74 Posts
7 Kudos
Registered: ‎04-25-2012
Post 1 of 9
Accepted Solution

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

249 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*
2,554 Posts
892 Kudos
Registered: ‎09-13-2011
Post 2 of 9

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
74 Posts
7 Kudos
Registered: ‎04-25-2012
Post 3 of 9

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*
2,554 Posts
892 Kudos
Registered: ‎09-13-2011
Post 4 of 9

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
74 Posts
7 Kudos
Registered: ‎04-25-2012
Post 5 of 9

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*
2,554 Posts
892 Kudos
Registered: ‎09-13-2011
Post 6 of 9

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
74 Posts
7 Kudos
Registered: ‎04-25-2012
Post 7 of 9

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*
2,554 Posts
892 Kudos
Registered: ‎09-13-2011
Post 8 of 9

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
74 Posts
7 Kudos
Registered: ‎04-25-2012
Post 9 of 9

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
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!