Replace or Supress/Hide or Change Size

Replace or Supress/Hide or Change Size

jamie.nelson.cubex
Contributor Contributor
265 Views
2 Replies
Message 1 of 3

Replace or Supress/Hide or Change Size

jamie.nelson.cubex
Contributor
Contributor

Hello,

 

I have found myself at a crossroads with my iLogic design, where I am unsure as to which command is best (or is most common). I am designing a roller shutter, which is made up of a set of guides, a headbox, a barrel inside the headbox and lath. As the size of the roller shutter increases the size of the headbox increases to account for the larger barrel size, there are 4 different variations of headbox size in total. 

 

I currently have the iLogic setup to change the size of the headbox using parameters, however, I am wondering if the proper procedure would be to have the 4 headboxes modelled up and use iLogic to either replace them (so there are no additional parts in the model) or suppress/hide them (keeping the 4 variations in the model).

 

My initial thoughts are that replacing them is the neatest, as this will exclude the headbox variation vibrations from the BOM when producing drawings, and ensure that the parts are named correctly.

 

I would be glad to hear your thoughts? 

0 Likes
266 Views
2 Replies
Replies (2)
Message 2 of 3

dalton98
Collaborator
Collaborator

Heres some code I coppied on adding and deleting components

 ThisAssembly.BeginManage("Group 1")                   ‘no delete Function reqd.’
 If BitType = "Flat"
Dim componentB = Components.Add("Flat", "screwdriver_bit_Flat.ipt")
ElseIf BitType = "Robertson"
Dim componentB = Components.Add("Robertson", "screwdriver_bit_Robertson.ipt")
ElseIf BitType = "TorxSmall"
Dim componentB = Components.Add("Torx Small", "screwdriver_bit_TorxSmall.ipt")
ElseIf BitType = "TorxStandard"

Dim componentB = Components.Add("Torx Standard", "screwdriver_bit_TorxStandard.ipt")
End If

ThisAssembly.EndManage("Group 1")

iProperties.InstanceValue("Part1:1", "PropertyName_Text") = "5"

Parameter("screwdriver_body:1", "Body_Color") = ScrewdriverColor
Constraints.AddMate("Mate1", "screwdriver_body:1", "MateFace", "screwdriver_cap_Standard:1", "MateFace",
                    offset := 0.0, e1InferredType := InferredTypeEnum.kNoInference, e2InferredType := InferredTypeEnum.kNoInference,
                    solutionType := MateConstraintSolutionTypeEnum.kNoSolutionType,
                    biasPoint1 := Nothing, biasPoint2 := Nothing)
 

 

0 Likes
Message 3 of 3

blandb
Mentor
Mentor

I am for just replacing the gearbox. But could be more involved depending on how much they differ. If you are naming the geometry and using that, then should be pretty simple.

Autodesk Certified Professional
0 Likes