Ilogic to build assembly

Ilogic to build assembly

Anonymous
Not applicable
460 Views
4 Replies
Message 1 of 5

Ilogic to build assembly

Anonymous
Not applicable

I have a problem that I think can be solved with ilogic but I am not sure the code. I have a structural tower assembly that varies in length width and height, I have already formatted it so that all three can be changed and the tower will update. It consists of andle iron and channels, now I am trying to make it have a defferent number of braces depending on the size. There are 2 mounts that will not change on the end, but the flange mounts in the center will needed to be added and removed depending on the height, along with the angle iron braces. Adding parts and removing them automatically is where I am having trouble. Any help would be greatly appreciated

0 Likes
461 Views
4 Replies
Replies (4)
Message 2 of 5

mrattray
Advisor
Advisor
Sounds like this could be better handled with a pattern. Can you post the files here for us to see? It's hard to understand the particulars of an application from a one paragraph description.
Mike (not Matt) Rattray

0 Likes
Message 3 of 5

Anonymous
Not applicable

Yep, here is the code I have now, I will also attach a pdf to show you what I am talking about, if you need the actual files let me know, There are a number of parts in the assembly so I am trying to not attach every single one

iheight = Height
iwidth = Width
ilength = Length
iwsize = W_Section
ibp = Base_Plate
itp = Top_Plate



If A_Size = "4X4X.25" Then
	Parameter("AngleBraceWidth:1", "Angle_Size")=4
	Parameter("AngleBraceWidth:1", "Angle_Thickness")=.25
	Parameter("AngleBraceLength:1", "Angle_Size")=4
	Parameter("AngleBraceLength:1", "Angle_Thickness")=.25
ElseIf A_Size = "3X3X.25" Then
	Parameter("AngleBraceWidth:1", "Angle_Size")=3
	Parameter("AngleBraceWidth:1", "Angle_Thickness")=.25
	Parameter("AngleBraceLength:1", "Angle_Size")=3
	Parameter("AngleBraceLength:1", "Angle_Thickness")=.25
ElseIf A_Size = "4X4X.125" Then
	Parameter("AngleBraceWidth:1", "Angle_Size")=4
	Parameter("AngleBraceWidth:1", "Angle_Thickness")=.125
	Parameter("AngleBraceLength:1", "Angle_Size")=4
	Parameter("AngleBraceLength:1", "Angle_Thickness")=.125
End If


If W_Section = "W10 X 60" Then
	Parameter("W-section:1", "W_d")=10.22
	Parameter("W-section:1", "W_tw")=.420
	Parameter("W-section:1", "W_tf")=.680
	Parameter("W-section:1", "W_bf")=10.080
ElseIf W_Section = "W12 X 40" Then
	Parameter("W-section:1", "W_d")=11.94
	Parameter("W-section:1", "W_tw")=.295
	Parameter("W-section:1", "W_tf")=.515
	Parameter("W-section:1", "W_bf")=8.005
ElseIf W_Section = "W12 X 58" Then
	Parameter("W-section:1", "W_d")=12.19
	Parameter("W-section:1", "W_tw")=.360
	Parameter("W-section:1", "W_tf")=.640
	Parameter("W-section:1", "W_bf")=10.010
ElseIf W_Section = "W24 X 103" Then
	Parameter("W-section:1", "W_d")=24.53
	Parameter("W-section:1", "W_tw")=.550
	Parameter("W-section:1", "W_tf")=.980
	Parameter("W-section:1", "W_bf")=9
End If


w_width=Parameter("W-section:1", "W_d")
w_web=Parameter("W-section:1", "W_tw")
Parameter("CenterChannelWidth:1", "MCW_Length") = iwidth-w_width-2
Parameter("CenterChannelLength:1", "MCL_Length") = ilength-w_web-2
Parameter("W-section:1", "W_Length") = iheight - 1.5
Parameter("Column1:1", "CF_Location") = (iheight-1.5)/2
Parameter("Column2:1", "CF_Location") = (iheight-1.5)/2
Parameter("AngleBraceWidth:1", "AW_Length") = Sqrt((iwidth-w_width-6)^2+(((iheight-1.5)/2)-16)^2)
Parameter("AngleBraceLength:1", "AL_Length") = Sqrt((((iheight-1.5)/2)-16)^2+((ilength-w_web-6)^2))
Parameter("Column1:1", "Angle_Offset")=(Parameter("AngleBraceWidth:1", "Angle_Thickness")/2)
Parameter("Column2:1", "Angle_Offset")=(Parameter("AngleBraceWidth:1", "Angle_Thickness")/2)

 

0 Likes
Message 4 of 5

mrattray
Advisor
Advisor
If you can pack up the assembly, stick in a zip, and post it here it would help. I'm not sure what each parameter is. If I had the assembly I could see where everything comes from and goes.
Mike (not Matt) Rattray

0 Likes
Message 5 of 5

Anonymous
Not applicable
 
0 Likes