check parameter values of parts in an assembly without pass through or linking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
To get coordinate information of certain components in an assembly i want to search for specific parameter values in all parts. So when the value matches i can try to retrieve de coordinates of the centerpoint of the specific part.
I can't link or pass the parameters through because there are going to be too many parts, we dont want to link all the parameters for every project again and also the naming would probably be a problem.
Retrieving the coordinates would be the next step, first i would like to see if it's possible check for the parameters in all parts. I found this piece of code but ofcourse this doesn't work if the parameter isn't in the assembly itself.
Dim oParamName As String = "" Dim LookForName As String = "parameter name" For Each oParam As Parameter In oDef.Parameters oParamName = oParam.Name If oParamName.Contains(LookForName) Then MessageBox.Show(oParamName, "Title") End If Next
Does anybody know if something like this is possible and if yes how?
Thanks!