- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Sir/Ma'am,
Good day,
I've been on this issue for a long time now, and still I really cant find any solutions to this.
I've already tried to export and import an excel file via "Full spec data export" so I can change the "Component Designation" column value as "Custom" or "Parametric", hoping that it will solve my problem for the part geometry not showing under the part property of my custom component created via python script, when placed on the plant 3D workspace. But unfortunately it still does not show on part property.
I also tried to change the "Component Designation" column value via Edit parts window on Part List tab, setting it's value to Custom, but unfortunately when placed on Plant 3D workspace, still the part geometry/Dimensions under Part Properties still does not show, and still there is no way for me to edit it's dimensions once its placed on the workspace. I'm really on a dead end here, is there any one encountered this issue?, please if you could give me some information regards to this issue I'll appreciate it sooooo muuuuuuuuuccchhhhh.
Also this is my python script, may be there is something that I'm doing wrong or I'm missing something, that cause the dimensions not to show on my parts geometry that others might know about, please correct me. thank you so much in advance.
from aqa.math import *
from varmain.primitiv import *
from varmain.custom import *
@Anonymous(Group="Valve", TooltipShort="BALLVALVE999", TooltipLong="BALLVALVE999", LengthUnit="mm", Ports=2)
@group("MainDimensions")
@param(PIPE_OD=LENGTH, TooltipLong="Outside diameter of the flange")
@param(PIPESIZE=LENGTH, TooltipLong="Outside diameter of the flange")
@param(L=LENGTH, TooltipLong="Graphics flange Diameter")
@param(H=LENGTH, TooltipLong="Graphics flange Diameter")
@param(D=LENGTH, TooltipLong="Graphics flange thickness")
@param(H1=LENGTH, TooltipLong="Graphics flange thickness")
def BALLVALVE999(s, PIPE_OD = 60.3, PIPESIZE = 50, L = 178, H = 143, D = 230,H1 = 165,ID = 'BALLVALVE999',**kw):
#VALVE
B = CYLINDER(s, R=PIPE_OD/2,H=L,O=0).rotateX(0).rotateX(270).translate((0,0,0))
B1 = CYLINDER(s, R=PIPE_OD/2+H1/10,H=L,O=0).rotateX(0).rotateX(270).translate((0,0,0))
B2 = CYLINDER(s, R=H1/2,H=L/9,O=0).rotateX(0).rotateX(270).translate((0,0,0))
B3 = CYLINDER(s, R=H1/2,H=L/9,O=0).rotateX(0).rotateX(270).translate((0,L/2,0))
B4 = CYLINDER(s, R=H1/2,H=L/9,O=0).rotateX(0).rotateX(270).translate((0,L/2 + L/9 + 1,0))
B5 = CYLINDER(s, R=H1/2,H=L/9,O=0).rotateX(0).rotateX(270).translate((0,L - L/9,0))
B6 = CYLINDER(s, R=H1/2.5,H=L/2 - L/9,O=0).rotateX(0).rotateX(90).translate((0,L/2 + L/9,0))
B7 = CYLINDER(s, R=L/6,H=(H+H/2.5)-(H/7)*2,O=0).rotateX(0).rotateX(0).translate((0,L/2-(L/6)/2,-H/2.5))
B8 = CYLINDER(s, R=L/3,H=(H/7),O=0).rotateX(0).rotateX(0).translate((0,L/2-(L/6)/2,((H)-(H/7)*2)))
B9 = CYLINDER(s, R=L/7.5,H=(H/7),O=0).rotateX(0).rotateX(0).translate((0,L/2-(L/6)/2,((H)-(H/7))))
#NUTS
B10 = CYLINDER(s, R=(H/6)/2,H=(L/9)/1.5,O=0).rotateX(0).rotateX(270).translate((0,L/2 + L/9*2 + 1,H1/3))
B11 = CYLINDER(s, R=(H/6)/2,H=(L/9)/1.5,O=0).rotateX(0).rotateX(270).translate((0,L/2 + L/9*2 + 1,-H1/3))
B12 = CYLINDER(s, R=(H/6)/2,H=(L/9)/1.5,O=0).rotateX(0).rotateX(270).translate((H1/3,L/2 + L/9*2 + 1,0))
B13 = CYLINDER(s, R=(H/6)/2,H=(L/9)/1.5,O=0).rotateX(0).rotateX(270).translate((-H1/3,L/2 + L/9*2 + 1,0))
#HANDLE
B14 = BOX(s, L=D, W=H1/12, H=H1/10).rotateX(0).rotateX(0).translate((0,D/2 + (L/2-(L/6)/2),-(H1/12)/2+H))
#port points
s.setPoint((0, 0, 0),(0, -1, 0))
s.setPoint((0, L, 0),(0, 1, 0))
#s.setLinearDimension('Par_L',(0.0, 0.0, 0.0),(0.0, Par_L, 0.0))
return
Solved! Go to Solution.
