- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to build an ilogic rule that inserts a new component into an assembly re-sizes it to fit properly and then constrains it properly to the rest of the parts. So far I have had success in doing so but I have had to "hard code" the size of the inserted part.
The rest of the assembly is all built parametrically and can be controlled via a few major dimensions, which allows me the ability to quickly change everything's sizes.
I know the parametric formulas I would like to add to the new component to control its size but I can't figure out how to insert the formula string into the dimensions. Any help would be really appreciated. Below is how I "hardcode" the values of the inserted component.
For Each oParameter In DV.DoorParameters
If oParameter.Name.ToLower = "master_width" Then
oParameter.Value = DV.DoorWidth / 10
Else If oParameter.Name.ToLower = "master_height" Then
oParameter.Value = DV.DoorHeight / 10
Else If oParameter.Name.ToLower = "number_of_panels" Then
oParameter.Value = DV.NumberOfPanels
oParameter.Units = "ul"
End If
Next
EDIT: I've just realized an important part of this problem is that I need to link the newly inserted component to one of the parts within the existing assembly in order to use its parameters.
Solved! Go to Solution.