I'm trying to create a dummy leg as shown on attached sketch. I can't get any of the catalog supports to center on the pipe - they all default to match bottom of pipe. Does anyone know how to force the support to match center of pipe?
Solved! Go to Solution.
Solved by jabowabo. Go to Solution.
No I don't. Thats a little unusual; virtually every dummy leg standard I've seen maintains common BOP to match the supporting steel. May I ask what the design purpose of this configuration is?
Just as an FYI for anyone else interested: I solved this problem by creating a dummy leg via a Python script and it works as shown on the attachment above.
#CREATED by Jason Hudson Ver 1
#EMAIL: wjasonhudson@gmail.com
import aqa.math
import math
from varmain.primitiv import *
from varmain.var_basic import *
from varmain.custom import *
@activate(Group="Support", TooltipShort="Dummy Leg Support", TooltipLong="Dummy Leg Support", LengthUnit="in", Ports=1)
@group("MainDimensions")
@param(D=LENGTH, TooltipShort="Pipe diameter", TooltipLong="Pipe diameter")
@param(DLegDia=LENGTH, TooltipShort="Dummy Leg diameter", TooltipLong="Dummy Leg diameter")
@param(DLegLen=LENGTH, TooltipShort="Dummy Leg length", TooltipLong="Dummy Leg length", Ask4Dist=True)
@group(Name="meaningless enum")
@enum(1, "align X")
@enum(2, "align Y")
@enum(3, "align Z")
# (testacpscript "DLEG_DSF")
# testscript1
def DLEG_DSF(s, D=4.5, DLegDia=3.5, DLegLen=48.0, **kw):
#Calculation:
PLen = 24
#Create pipe
p = CYLINDER(s, R=(D/2.0), H=PLen, O=0.0).translate((0, 0, -(PLen/2)))
p.rotateX(90)
#Create DLeg
dl = CYLINDER(s, R=(DLegDia/2.0), H=DLegLen, O=0.0).rotateY(90)
dl.subtractFrom(p)
p.erase()
#Connection Points
s.setPoint((0, 0, 0), (0, 1, 0))
s.setLinearDimension('DLegLen', (0, 0, 0), (DLegLen, 0, 0))
Can't find what you're looking for? Ask the community or share your knowledge.