This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Project - Add Part Relationship by Variable/Setting

essjay - Monday, February 27, 2012 7:04 AM:

I have a project created and I can click the "Add Relationship" button which brings up the list of parts.

Is it possible to send some sort of variable across to this list so that only some parts are visible?

So for instance I have a Project called "Car Door". When I click on the "Add Relationship" button, can I send a variable called "cardoorparts" to the Parts list so that only parts that can make car doors are listed. I can then select only those parts and add them to my project?

Or is there a easier way to do what I want to achieve?



fli - Wednesday, February 29, 2012 3:49 AM:

Hi, 

Here are two ideas 

You can do a "cell event" onSerachDialog, then look in the inArgs.itemContext (source Item) determining what to return as search criteria for the cell.

Aanother option is to do a list of id's and return this to the searchDialog. 

/ Christoffer