Iproperties

Iproperties

Anonymous
Not applicable
216 Views
1 Reply
Message 1 of 2

Iproperties

Anonymous
Not applicable
I was wondering if there was a way to make a custom Iproperties of a part autofill a custom Iproperties in an assembly. Like adding the Lumens to a lamp and then having the total number of lamps in an assembly auto fill the correct number of total Lumens in the assembly. That way I can drive a spreadsheet/chart in my title block with the correct information.
0 Likes
217 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I think this is possible to do. Here is something you could try:

You could set up your program to listen to AssemblyEvents. So, whenever a
part is inserted into an assembly, the AssemblyEvents:OnNewOccurrence will
be fired. If the newly inserted occurrence has the custom iProperty you are
looking for, use this value to update the custom iProperty value of the
assembly. When a part occurrence is deleted from the assembly, the
AssemblyEvents:OnDelete event will be fired, you can again update the
assembly's custom iProperty to account for the deleted part occurrence.
Similarly, you could extend this to sub-assemblies also.

You can access the properties using the Document.PropertySets collection.
The PropertySet with the internal name
{D5CDD505-2E9C-101B-9397-08002B2CF9AE} corresponds to the custom properties.
Within this PropertySet, you can get the specific Property object that you
are looking for.

-Venkatesh Thiyagarajan.

wrote in message news:5787551@discussion.autodesk.com...
I was wondering if there was a way to make a custom Iproperties of a part
autofill a custom Iproperties in an assembly. Like adding the Lumens to a
lamp and then having the total number of lamps in an assembly auto fill the
correct number of total Lumens in the assembly. That way I can drive a
spreadsheet/chart in my title block with the correct information.
0 Likes