Message 1 of 2

Not applicable
10-14-2021
10:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having trouble trying to display the parameter value for every part of an assembly. currently i have:
ThisApplication.SilentOperation = True Dim oADoc As AssemblyDocument = ThisApplication.ActiveDocument For Each oRefDoc As Document In oADoc.AllReferencedDocuments part_type = parameter("PartType") MessageBox.Show(part_type, "Title") Next
This code will just return the same 'PartType' parameter value for the assembly 15 times (the number of total parts in the assembly). I want it to return 15 different 'PartType' parameter values, one for each part in the assembly. How can i read each part parameter instead of just the assembly parameter over and over?
Solved! Go to Solution.