Using material iProperties in ilogic forms

Using material iProperties in ilogic forms

Anonymous
Not applicable
6,636 Views
17 Replies
Message 1 of 18

Using material iProperties in ilogic forms

Anonymous
Not applicable

I'm trying to build a simple ilogic form to fill out iproperty infomation for parts we generate.  Our company only uses a few of fields that are available.  The problem is that the Physical tab is not available in the form editor.  I would like to add this field to my form to be able to select the material for the part.  The style/standard editor in our part template file holds all materials we use.  Summary, Project, Status, and Custom are all available, why isn't Physical? 

0 Likes
Accepted solutions (1)
6,637 Views
17 Replies
Replies (17)
Message 2 of 18

wayne.brill
Collaborator
Collaborator

Hi,

 

I believe you can work around this.

 

First create a Text Parameter. Name it something like myMaterial. (The value is the name of a material).

 

 Then create a rule with this conent:

iProperties..Material=myMaterial

 

Then add the Parameter (myMaterial) to the Form. In my tests when i change the myMaterial parameter on the Form the iProperties for the Material on the Physical Tab is updated. (and the Part changes to the new material)

 

I attached an ipt file with the rules and the form I used to test.

 

I hope this helps.

 

Wayne Brill

Autodesk Developer Network



Wayne Brill
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 18

Anonymous
Not applicable
Accepted solution

Thanks Wayne,

 

Using your suggestion, I was able to take it one step further.  I setup a multi-value list parameter, then created a rule to suck in all the material data from my template file into the parameter on file startup.  I then placed the parameter on my form to allow the user to select the material they need from the list.  Then finally I had to create another rule to save-back the selection back to the iproperties physical material variable.  It sure would have been easier if Autodesk just put those variables in the forms dialog box!

Message 4 of 18

wayne.brill
Collaborator
Collaborator

Hi,

 

I wanted to let you know that I created a Change Request with engineering to have the Physical iProperties made available on the iLogic form dialog like the other iProperties.

 

Thanks,

Wayne Brill

Autodesk Developer Network.



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 5 of 18

Anonymous
Not applicable

I sure would like to see the code for:

" then created a rule to suck in all the material data from my template file into the parameter on file startup"

Thanks

0 Likes
Message 6 of 18

Anonymous
Not applicable
Hello First, make sure you add the parameter in your template file for the material. [cid:image001.png@01CD5DBA.D37E1C50] Then use the rule below to populate the parameter [cid:image002.png@01CD5DBA.D37E1C50] Then use the following rule to saveback the material from the parameter to the iproperties. [cid:image003.png@01CD5DBB.43F8D1A0] And here is my event triggers to make sure it all happen automatically when you start up a new part. [cid:image004.png@01CD5DBB.43F8D1A0] Hope this helps, [cid:image005.jpg@01CD5DBB.43F8D1A0]
0 Likes
Message 7 of 18

Anonymous
Not applicable

is there any way you could attach a file with this in it? 

Message 8 of 18

Anonymous
Not applicable
I just went back and looked at my last post. It didn't look like I expected. I took that info and cut & pasted to a .doc file. This should be easier to read. Mike Louisiana Metal-Matic Inc.
0 Likes
Message 9 of 18

Anonymous
Not applicable

i still dont see anything.

0 Likes
Message 10 of 18

Anonymous
Not applicable
0 Likes
Message 11 of 18

Anonymous
Not applicable
0 Likes
Message 12 of 18

Anonymous
Not applicable

Boy I'm sure having troubles getting my attachments to show up properly.  I'll try again to show how I set it up.

0 Likes
Message 13 of 18

Anonymous
Not applicable

Thank you, this works great. 

0 Likes
Message 14 of 18

Anonymous
Not applicable

Hello,

I know this post is a little old but did it ever get done?  We just upgraded to 2015 ultimate but don't see a "Physical" section in the list.

0 Likes
Message 15 of 18

Anonymous
Not applicable

Yes we did. we use this everyday now in our new templates.

0 Likes
Message 16 of 18

Anonymous
Not applicable

Hello, I'm just going thru the process of upgrading all my templates from our last version (2015 to 2017)  I wanted to streamline and get rid off all the workarounds I had to do for materials on the ilogic form.  It doesn't appear that Autodesk ever followed thru and add the physical tab to the ilogic forms?  I still don't see it.  Am I missing something?

 

0 Likes
Message 17 of 18

JanekPop
Enthusiast
Enthusiast

Still missing, 5 years on. 

0 Likes
Message 18 of 18

malcolmEGTN3
Explorer
Explorer

Still  missing almost 10 years on...  Why do we even bother making requests.

0 Likes