Parameters of the custom valve(using python script) does not appear on the Properties of 3D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day Ma'am/Sir,
I'm just wondering if anyone here knows the reason why my parameters that set on my python script does not show on the property of the valve. the valve does not contain any error when placed on the pipe, I just really need to show the valve parameters on the "part properties" so that I can change some dimension of the valve after I placed it on the pipe.
below is my python script:
from aqa.math import *
from varmain.primitiv import *
from varmain.custom import *
@Anonymous(Group="Valve", TooltipShort="VALVE_X8", TooltipLong="VALVE_X8", LengthUnit="mm", Ports=2)
@group("MainDimensions")
@param(Par_D1=LENGTH, TooltipLong="Outside diameter of the flange")
@param(Par_D2=LENGTH, TooltipLong="Outside diameter of the flange")
@param(Par_H1=LENGTH, TooltipLong="Graphics flange Diameter")
@param(Par_H2=LENGTH, TooltipLong="Graphics flange Diameter")
@param(Par_B1=LENGTH, TooltipLong="Graphics flange thickness")
@param(Par_B2=LENGTH, TooltipLong="Graphics flange thickness")
@param(Par_L=LENGTH, TooltipLong="Total Length of flange")
def VALVE_X8(s, Par_D1 = 168.3, Par_D2 = 168.3, Par_H1 = 300.0, Par_H2 = 300.0, Par_B1 = 28.0, Par_B2 = 28.0, Par_L = 841.5,ID = 'VALVE_X8',**kw):
#VALVE
FLG1 = CYLINDER(s, R=Par_H1/2.0,H=Par_B1,O=Par_D1/2.0).rotateX(0).rotateX(270).translate((0.0,0.0,0.0))
FLG2 = CONE(s, R1=Par_H1/2.0, R2=Par_H1/20.0, H=Par_L/2.0 - Par_B1, E=0).rotateX(270).translate((0.0,Par_B1,0.0))
FLG3 = CYLINDER(s, R=Par_H2/2,H=Par_B2,O=Par_D2/2.0).rotateX(0).rotateX(90).translate((0.0,Par_L,0.0))
FLG4 = CONE(s, R1=Par_H2/2.0, R2=Par_H2/20.0, H=Par_L/2.0 - Par_B2, E=0).rotateX(90).translate((0.0,(Par_L/2.0 - Par_B2) + Par_L/2.0,0.0))
#port points
s.setPoint((0.0, 0.0, 0.0),(0.0, -1, 0.0))
s.setPoint((0.0, Par_L, 0.0),(0.0, 1, 0.0))
#s.setLinearDimension('Par_L',(0, 0, 0),(0, Par_L/2, 0))
return
I add also a screen shot of the valve property
thank you so much Ma'am/Sir.