- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good afternoon,
I'm working on a lofted feature where I need to shell the item depending on the thickness of the tube in which it will represent. In this situation there are only two items that need this style of creation. Due to this, I'm working with two set thicknesses. For some reason, the 2" item works flawlessly and sets the shell thickness to 1/8". However the 3" item has a 3/16" shell thickness that will not be accepted within the ilogic rule.
If I attempt to create the shell feature at 1/8" both items will shell without a problem. As soon as I attempt to set the shell to 3/16" on the 3" item I get an unspecified error. Below are the directions I've attempted to solve this and the things I've found to be possible, outside of the ilogic rule.
I can create the feature manually at 3/16" without a problem.
I can program the creation to the outside at 3/16". Then manually set the feature to the inside.
I can program the creation to the inside at 1/8". then manually set the feature to 3/16".
I cannot program the creation at 3/16" to the outside, then set the direction to the inside within the rule - same error.
I cannot program the creation at 1/8", then set the distance/value to 3/16" in the ilogic rule.
I've tried changing the faces within the collection for the shell without success.
I've removed the face collection without success.
I have not attempted to change the thickness of different faces.
Further information/Pictures:
Both sketches controlling the loft feature to then be shelled are fully constrained.
It's an asymmetric loft feature. That is, the cone is not concentric.
Above is the isometric view of the two circles in question.
Above is the basic loft that's created.
The above does not show the cut being added, but even with the cut it functions fine.
Facing the front of the sketches shows the circles orientation to each other.
The above is a 45 deg cut to the bottom side of the straight portion.
The above picture is the finished shape and thickness: Problem in Ilogic
Above is the shape and thickness that can be programed in Ilogic.
Dim TrimExt As ExtrudeFeature = oCompDef.Features.ExtrudeFeatures.Add(TrimExtDef)
TrimExt.Name = "Trim extrusion: " & Fitting_Index
TrimExt.SetAffectedBodies(Bodycollection)
Dim SetShellThickness As Double = Nothing
SetShellThickness = .125 * 2.54 '(Flange_Thickness / 2) * 2.54 'This value being set to Flange_Thickness. Something in here doesn't like more than 1/8"
Dim TubeShellDef As ShellDefinition = Nothing
'Object collection holding the sides of the tube EXT, this will apply to both the small and larger tube ext from program.
Dim ShellFaceCollection As FaceCollection = oTO.CreateFaceCollection
ShellFaceCollection.Add(TubeExt.Faces.item(2))
ShellFaceCollection.Add(TubeExt.Faces.item(3))
If TestingBool = True Then
TubeShellDef = oCompDef.Features.ShellFeatures.CreateShellDefinition(ShellFaceCollection, SetShellThickness, kOutsideShellDirection)
oDoc.Update
TubeShellDef.Direction = kInsideShellDirection
oDoc.Update
Else
TubeShellDef = oCompDef.Features.ShellFeatures.CreateShellDefinition(Nothing, SetShellThickness, kOutsideShellDirection)
Dim ShellTrimSketch As PlanarSketch = oCompDef.Sketches.Add(FlangePlane)
ShellTrimSketch.Name = "Shell sketch: " & Fitting_Index
Dim ShllTrimCir As SketchEntity = ShellTrimSketch.AddByProjectingEntity(FlangeODCir)
Dim ShellTrimProfile As Profile = ShellTrimSketch.Profiles.AddForSolid
Dim ShellTrimDef As ExtrudeDefinition = oCompDef.Features.ExtrudeFeatures.CreateExtrudeDefinition(ShellTrimProfile, kCutOperation)
ShellTrimDef.SetDistanceExtent((Flange_Thickness / 2) * 2.54, kPositiveExtentDirection)
Dim ShellTrimExt As ExtrudeFeature = oCompDef.Features.ExtrudeFeatures.Add(ShellTrimDef)
ShellTrimExt.SetAffectedBodies(TubeCollection)
ShellTrimExt.Name = "Shell trim: " & Fitting_Index
End If
'When created a object collection for just the tube object was created to be used as the item for the shell to apply to.
Dim TubeShell As ShellFeature = oCompDef.Features.ShellFeatures.Add(TubeShellDef)
TubeShell.SetAffectedBodies(TubeCollection)
TubeShell.Name = "Tubeshell: " & Fitting_Index
oDoc.Update
The above shows the a testing bool. This will eventually be changed to when the fittings are 2 or 3" it will enter this specific creation. Ignore the else of this, that part works fine.
Solved! Go to Solution.