Inventor General Discussion

Inventor General Discussion

Reply
Valued Contributor
andrewgardner1514
Posts: 60
Registered: ‎04-13-2010
Message 1 of 7 (672 Views)
Accepted Solution

Link surface area iProperty to table in IDW

672 Views, 6 Replies
01-24-2013 03:56 AM

Hello all. I require some expert help if possible please.

 

I have created a simple iPart that has three length variations, and therefor has three different surface areas.

 

I have added a simple table to my drawing. The table is linked to the iPart, I have used the column chooser to select the appropriate parameters to illustrate the length variations from the iPart. I would also like to include the surface area for each iPart member alongside each length variation in the table.

 

I have searched this forum and the Wiki but am yet to establish if I am trying to achieve the impossible.

 

Advice much appreciated.

 

Thanks

Andrew

Hello,

 

I have recently provided a proposition with ilogic to see the "appearance" value of a part in a idw BOM.

Here is just an update of this post for "surface" of an ipart. But maybe you know already it or part of it.

 

Here is a possible solution using an “illogic” rule you could use in a BOM of an idw file to show the "value" of the "surface" of the model.  But several things need to be done to make this work:

 Step 1:

Create your ipart as usual and add the following iLogic rule on the i-part file you are creating). 

It will create a custom property called "Surface" with format “Number”and will copy the value of the " Surface " of the ipt file.

 

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")

Try

     prop = customPropertySet.Item("Surface")

Catch

     customPropertySet.Add("", "Surface")

End Try

iProperties.Value("Custom", "Surface") =iProperties.Area

 

Trigger the rule "Before Save Document". Save the ipart

Open the Table of the ipart and add the column (tab > properties > custom > surface > add the column

Active and save each member from the structure of the ipart (in order to update individually the iproperties)

Step 2:

Go in the assembly (iam) and edit BOM>Add iProperties column> create a new column >Surface>ok

Insert the ipart in the assembly and save.

Step3 :

Start a new drawing. Go to the “Document Settings”  > “Drawing tab” > "Additional Custom Model iProperty source" to select the ipt file (ipart) prepared in Step 1 > “Copy Model iProperties Settings” to select the “Surface”.

Place a view of the Assembly prepared in step 2 and insert a BOM

Edit BOM  > Column Chooser > New Properties > select “Surface” > ok

 => A new column should be visible with the Surface values of the different components..

 Remark: You could have also the possibility to include all these manipulations directly in your templates.

 

I hope this can help you.

Please, mark any response clicking on "Accept as Solution" button if it answers your question 
*Expert Elite*
scottmoyse
Posts: 1,659
Registered: ‎06-10-2009
Message 2 of 7 (647 Views)

Re: Link surface area iProperty to table in IDW

01-25-2013 12:50 AM in reply to: andrewgardner1514

can you post the part here, I think I can hook you up.

Cheers
Scott Moyse

Please use Mark Solutions!.Accept as Solution &Give Kudos!Kudos to further enhance the value of these forums. Cheers!


   

Valued Contributor
andrewgardner1514
Posts: 60
Registered: ‎04-13-2010
Message 3 of 7 (643 Views)

Re: Link surface area iProperty to table in IDW

01-25-2013 01:58 AM in reply to: scottmoyse

Hi

 

I've attached some files. These are not the actual models/drawings but are set up in exactly the same way.

 

Appreciate the help.

 

Andrew

*Expert Elite*
scottmoyse
Posts: 1,659
Registered: ‎06-10-2009
Message 4 of 7 (632 Views)

Re: Link surface area iProperty to table in IDW

01-25-2013 04:28 AM in reply to: andrewgardner1514

ok its a bit of a nightmare. There are two options:

 

WIth iParts the most stable way is to use the dimensions driving the geometry to work out the surface area with some formulas in the parameters dialogue. I added the final Area column to the iPart table, then generated the iPart members:

 

Untitled.png

Don't worry about the red formula, it stills calculates anyway. Make sure you tick the Export box in the parameters dialogue, otherwise it won't create a corresponding custom iProperty.

 

The other option is if you aren't going to use iParts then use iLogic to create a custom iproperty and it has access to the surface area physical property.

 

The might be a way of using iLogic with iParts to avoid creating those formulas, but I need to test it out first. If it works I'll blog about it and post back here in a week or so.

 

It seems you can bring through Mass & Volume with a simple expression within a custom iproperty but not area, which is just palin weird. Anyway I hope this is what you are after, or is at least workaround.

 

cheers

 

Scott

Cheers
Scott Moyse

Please use Mark Solutions!.Accept as Solution &Give Kudos!Kudos to further enhance the value of these forums. Cheers!


   

Valued Contributor
andrewgardner1514
Posts: 60
Registered: ‎04-13-2010
Message 5 of 7 (616 Views)

Re: Link surface area iProperty to table in IDW

01-28-2013 12:26 AM in reply to: scottmoyse

Thanks very much for your efforts in offering a solution.

 

The part I am working on is quite an intricate shape so it's not very practical to have to mess around with a formula.

 

I've had a bash at creating an iLogic rule that updates a custom property every time the geometry changes. The problem comes when it is time to generate the members contained within the iPart table. Having added the custom property (Surface Area) into the iPart table and then generated the member files, the surface area is then updated in the iPart table for each member but the value is the same for all members. The value for each member is equal to that of the active member at the time of member generation.

 

Hope this makes sense. I look forward to your blog on the subject.

 

Thanks again.

Product Support
Nicolas.Bourquin
Posts: 79
Registered: ‎01-08-2013
Message 6 of 7 (609 Views)

Re : Link surface area iProperty to table in IDW

01-28-2013 02:54 AM in reply to: andrewgardner1514

Hello,

 

I have recently provided a proposition with ilogic to see the "appearance" value of a part in a idw BOM.

Here is just an update of this post for "surface" of an ipart. But maybe you know already it or part of it.

 

Here is a possible solution using an “illogic” rule you could use in a BOM of an idw file to show the "value" of the "surface" of the model.  But several things need to be done to make this work:

 Step 1:

Create your ipart as usual and add the following iLogic rule on the i-part file you are creating). 

It will create a custom property called "Surface" with format “Number”and will copy the value of the " Surface " of the ipt file.

 

customPropertySet = ThisDoc.Document.PropertySets.Item("Inventor User Defined Properties")

Try

     prop = customPropertySet.Item("Surface")

Catch

     customPropertySet.Add("", "Surface")

End Try

iProperties.Value("Custom", "Surface") =iProperties.Area

 

Trigger the rule "Before Save Document". Save the ipart

Open the Table of the ipart and add the column (tab > properties > custom > surface > add the column

Active and save each member from the structure of the ipart (in order to update individually the iproperties)

Step 2:

Go in the assembly (iam) and edit BOM>Add iProperties column> create a new column >Surface>ok

Insert the ipart in the assembly and save.

Step3 :

Start a new drawing. Go to the “Document Settings”  > “Drawing tab” > "Additional Custom Model iProperty source" to select the ipt file (ipart) prepared in Step 1 > “Copy Model iProperties Settings” to select the “Surface”.

Place a view of the Assembly prepared in step 2 and insert a BOM

Edit BOM  > Column Chooser > New Properties > select “Surface” > ok

 => A new column should be visible with the Surface values of the different components..

 Remark: You could have also the possibility to include all these manipulations directly in your templates.

 

I hope this can help you.

Please, mark any response clicking on "Accept as Solution" button if it answers your question 


Nicolas Bourquin
Valued Contributor
andrewgardner1514
Posts: 60
Registered: ‎04-13-2010
Message 7 of 7 (585 Views)

Re : Link surface area iProperty to table in IDW

01-30-2013 01:33 AM in reply to: Nicolas.Bourquin

Thank you. I had more or less established what you have stated above. I used your code and that works fine.

 

My only issue is the fact that you have to activate each member, then save the part, and repeat for all members to update the table before calling this information up on the drawing table.

 

Some of our iParts contain hundreds of members, the above process would be very cumbersome. The whole thing would be much more simple if the area property could be linked directly to the drawing. There obviously is not much demand for this to be added.

 

Thanks again.

Andrew

Need installation help?

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