AutoCAD Plant 3D Forum
Welcome to Autodesk’s AutoCAD Plant 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Plant 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DummyLeg for Horizontal Turn

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
jabowabo
881 Views, 5 Replies

DummyLeg for Horizontal Turn

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?

5 REPLIES 5
Message 2 of 6
dgorsman
in reply to: jabowabo

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?

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 3 of 6
jabowabo
in reply to: jabowabo

I'm not familiar with the design intent except it is for insulated pipe. I was just given the spec and told to create the items. I can get a support to center but the pipe does not cope correctly where it connects...
Message 4 of 6
jabowabo
in reply to: jabowabo

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.

Message 5 of 6
rkbpm
in reply to: jabowabo

@jabowabo 

Can you please share your python script?

 

thanks

Message 6 of 6
jabowabo
in reply to: rkbpm

#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.

Post to forums  

Autodesk Design & Make Report

”Boost