Populate Table with Custom Properties

Populate Table with Custom Properties

FORBESWILSON6174
Advocate Advocate
3,792 Views
14 Replies
Message 1 of 15

Populate Table with Custom Properties

FORBESWILSON6174
Advocate
Advocate

I have tried to find an answer to this question without success.

Is it possible to create a Table and populate it with custom properties.

We have custom properties that we would like to include for example in a Revision Table. 

If you open the Revision Table for editing, you can open the iProperties from the dialogue box, but I don't know how to attach the values to the required cell.

Any help and suggestions would be appreciated.

Regards,

0 Likes
Accepted solutions (1)
3,793 Views
14 Replies
Replies (14)
Message 2 of 15

mcgyvr
Consultant
Consultant

https://beinginventive.typepad.com/being-inventive/2012/11/add-model-iproperty-to-the-drawing-revisi...



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 15

CGBenner
Community Manager
Community Manager

@FORBESWILSON6174 Did the information provided by @mcgyvr answer your question? If so, please use Accept Solution so that others may find this in the future. Thank you very much!

Did you find a post helpful? Then feel free to give likes to these posts!
Did your question get successfully answered? Then just click on the 'Accept solution' button.  Thanks and Enjoy!



Chris Benner

Community Manager - NAMER / D&M


0 Likes
Message 4 of 15

FORBESWILSON6174
Advocate
Advocate

We are in the process of trying the proposed solution, I will give feedback as soon as I have an answer.

 

Regards,

0 Likes
Message 5 of 15

FORBESWILSON6174
Advocate
Advocate

We have followed the procedure o the link, but unfortunately we cannot get the table to populate the cells with our custom values.

If I put it in a nutshell, we want to create a Table and populate the cells with either custom drawing or custom model values.

The Revision Table at least sees the iProperties, but we don't know how to transfer those values to specific cell.

 

Regards,

 

Inventor Table.jpg

0 Likes
Message 6 of 15

rhasell
Advisor
Advisor

Hi

Is it possible that you missed the step to add the custom iProperties?

 

revtable.png

Reg
2026.3
0 Likes
Message 7 of 15

FORBESWILSON6174
Advocate
Advocate

Thanks for the response, however creating custom Columns and populating them manually is not the problem, I want to populate the cells, for example where you have C1 with a custom property value, not a manual input as with the other revision columns.

If your value C1 is an iProperty, I want to know how you populated the cell with it.

 

If I create a normal table, I do not have the option to populate it with iProperties.

 

Regards,

0 Likes
Message 8 of 15

mcgyvr
Consultant
Consultant

@FORBESWILSON6174  There are clearly specific details to your situation that it seems you aren't communicating to us properly. The link I posted above is quite clear and works just fine but something about your case must be different or you are missing a step or not understanding the process enough..

 

Please post example Inventor files and state very clearly where they should show up in a rev table for each example. 

Give us very clear information like " in part1.ipt we have custom iproperty "Apple".. When we create a drawing of part1.ipt and place a rev table we want a column named "Apple" that shows the text from that iproperty"..

Or "in drawing.ipt we created custom iproperty...blah blah.."



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 9 of 15

FORBESWILSON6174
Advocate
Advocate

Apologies for any confusion. Hopefully this will clear up what we are trying to achieve.

 

I have added some custom values in the Drawing which we would like to be able to populate the Revision Table Column 'Activity' with.

 

The principle would apply to a Revision Table, and a Table in general.

 

I hope this makes more sense.

 

Custom Values.jpg

 Regards,

0 Likes
Message 10 of 15

rhasell
Advisor
Advisor

Hi

Everything has already been answered, but hopefully this will help. Please see my note at the end.

I created the same plate, and custom iProperties:

CUSTOM IPROPS.jpg

 

Edit your Revision table, and click on the Column Chooser icon.

REV1.jpg

 

Click New Property

REV2.jpg

 

Click on the line <<Click here to add a new property>>

and type in the name of the property, in my example I used "ACTIVITY 1", press enter and OK

REV4.jpg

 

The new property will be added to the revision table.

If you right click on the column, you can change the display name to "ACTIVITY"

REV6.jpgREV8.jpg

 

You will have to make this change for every one of the ACTIVITY entries, and I personally do not think that will be the best solution.

 

Can I perhaps suggest using iLogic, which populates a single "ACTIVITY" entry, that way, you can just have the single entry, which is populated and updated with each revision change. You will not loose the previous entry, it becomes a dumb entry retaining it's contents, the new revision row will take on the custom iproperty.

 

Reg
2026.3
0 Likes
Message 11 of 15

FORBESWILSON6174
Advocate
Advocate

Thanks for the response and your patience, I am the middle man in this, but your iLogic suggestion is he way we want to go, but as you can see it is obvious I have limited knowledge with iLogic.

 

The engineer I am working with understands this part of the software, so if we know what to do, I am sure he can sort it out.

 

Regards,

0 Likes
Message 12 of 15

mcgyvr
Consultant
Consultant

@FORBESWILSON6174 wrote:

Apologies for any confusion. Hopefully this will clear up what we are trying to achieve.

 

I have added some custom values in the Drawing which we would like to be able to populate the Revision Table Column 'Activity' with.

 

The principle would apply to a Revision Table, and a Table in general.

 

I hope this makes more sense.

 

Custom Values.jpg

 Regards,


Not totally clear IMO..

Your example shows 6 custom iproperties and 1 column in the rev table..

Do you really want 6 columns in the rev table? 1 corresponding to each activity? Or do you want to concatenate all of the values into a single column? 

Maybe you just want to use iproperty expressions like this..

https://modthemachine.typepad.com/my_weblog/2010/04/iproperty-expressions.html#:~:text=In%20the%20iP....

image_2020-12-14_092538.png



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
0 Likes
Message 13 of 15

FORBESWILSON6174
Advocate
Advocate

This is turning into a can of worms, and I must apologise for the confusion.

 

All we want to be able to do is :-

a) Add a custom Columns to a Revision Table and populate the cells with custom properties from the Drawing.

b) Create a Table and populate the cells with custom properties from the drawing / Model.

 

Reg's response regarding iLogic is I think basically what we need. Once the rows / cells are updated, the previous input becomes a dumb entry.

Regards,

0 Likes
Message 14 of 15

rhasell
Advisor
Advisor
Accepted solution

Hi

Here is an example of an iLogic rule.

 

Requirements:

You need a custom iProperty of ACTIVITY as well as a column in your revision table.

You can adjust everything to suit your own environment.

 

The rule will give you the option to add a new revision, or edit the exiting revision. (It's a cut back from my rule, and I need that option)

 

 

Sub Main
	oCHOICE = InputRadioBox("Add Revision Row", "Yes", "No", oCHOICE, Title := "Revision tag")
	If oCHOICE = True Then
		Call add_row
	Else
		Call REV_TAG
	End If
End Sub

Sub add_row()
	Dim oDrawDoc As DrawingDocument = ThisDoc.Document

	' Get the revision table
	Dim oRevTable As RevisionTable = oDrawDoc.ActiveSheet.RevisionTables.Item(1)

	' Get last row
	Dim oRow As RevisionTableRow
	oRow = oRevTable.RevisionTableRows.Item(oRevTable.RevisionTableRows.Count)

	' Add another row at the end
	Dim oRows As RevisionTableRows = oRevTable.RevisionTableRows
	oRows.Add()
	REV_TAG
End Sub

Sub REV_TAG()
	Dim oResult As String = "Result"
	Dim oRev As New ArrayList
	oRev.Add("COMMENTS")
	oRev.Add("PRICING")
	oRev.Add("REFERENCE")
	oRev.Add("APPROVAL")
	oRev.Add("CONSTRUCTION")
	oRev.Add("AS BUILT")

	'Display table and get the selection
	oResult = InputListBox("Select Revision Desc", oRev, oResult, _
	Title := "Revision Description", ListName := "Rev Desc")

	'Set iProperties based on the selection.
	iProperties.Value("custom", "ACTIVITY") = oResult

End Sub

 

 

Reg
2026.3
Message 15 of 15

FORBESWILSON6174
Advocate
Advocate

Hi Reg,

Thanks for the feedback, and apologies for the incredibly long delay.

What you provided was great, our engineer made a few changes and we have got exactly what we needed.

 

Regards,