Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access a part parameter from an assembly?

10 REPLIES 10
SOLVED
Reply
Message 1 of 11
kmckenney
3172 Views, 10 Replies

Access a part parameter from an assembly?

There is a part with a model parameter in an assembly
Is there a way to access the part's parameter from within the assembly?


Thank you.

10 REPLIES 10
Message 2 of 11
pcrawley
in reply to: kmckenney

Would a line of iLogic be OK?

 

Something like:

 

assemblyParameterName = Parameter("Part1", "d0") 

 

Hopefully it's self explanatory.  If not, just ask.

 

Peter

Peter
Message 3 of 11
Logos_Atum
in reply to: kmckenney

Hello there,

 

this adds up to the previous post and shows how the part "single deep rack"

has some of it´s parameters linked to the assembly level of the *.iam file.

Simply add lines like theese to a new iLogic rule and it´s done in no time.

 

 

Parameter("single deep rack close:1", "standwidth")=Standwidth
Parameter("single deep rack close:1", "standdepth")=Standdepth
Parameter("single deep rack close:1", "rackheight")=RackHeight
Dogs aren´t flammable.
Message 4 of 11
ic198
in reply to: kmckenney

Assuming I've understood your problem, you can do this without using iLogic:

 

- Open your assembly

- Open the assembly Parameters browser

- At the bottom left of the browser, hit the button marked 'Link'

- Change the file type to Inventor Files and browse for your part

- You should now be able to import that part's Parameters into your assembly and use them for driving constraints etc.

 

Hope this helps

 

 

Message 5 of 11
jtylerbc
in reply to: ic198

ic 198 is correct.  You can link parameters from a part to an assembly without iLogic, using the Link button in the Parameters dialog box.

 

What you can't do is go the other way - linking a parameter from an assembly to a part.  If the part is in the assembly, this causes a circular reference, and Inventor will not allow it.  In that situation you must use iLogic to transfer the parameter value from the assembly to the part.

Message 6 of 11
kmckenney
in reply to: ic198

Thanks ic 198. That was easier than expected, worked like a charm.
Message 7 of 11
gconley
in reply to: ic198

That worked, but the downfall is now you can not change the length of the parameter that you linked to the assembly.

How can you do this and still be able to modify the length of the imported parameter?

Message 8 of 11
ic198
in reply to: gconley

You have to change the parameter in the part you imported it from. Open that part, change the parameter, go back to the assembly, update and the new value will link through.

Message 9 of 11
gconley
in reply to: ic198

I tried that multiple times and it didn't update, it kept reverting back to the original length.  It won't keep the change nor will it update.

 

Anything else that I can try?

Message 10 of 11
ic198
in reply to: gconley

When I said update, you have to manually hit the button shown below (or the matching one on the Manage tab) for the new value to come through. Sorry if this is obvious and you've already done it, it's hard to judge experience on a forum... It might also be worth saving the part after modifying the parameter, though I just tested a quick assembly and that didn't seem to matter.

 

Capture.PNG

 

If you are already doing that I'm not sure what else to suggest, other than to upload your part and assembly here

Message 11 of 11
ic198
in reply to: ic198

In case it helps I've attached my test assembly

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

Post to forums  

Autodesk Design & Make Report