- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good Day Maam/Sir,
I need help regards to my python code, I've been trying to create a grip point on my model so I can stretch its Overall length inside Plant3D, but unfortunately I keep having the error "Geometry can not be generated with the given parameter" When I try to place it, I think the last part of my code is the problem, "s.setLinearDimension('Length'(0, 0, 0),(0, 0, -Length))", I really don't know the right way to right the last part of my code. pls help and thanks in advance, bellow is my code.
from aqa.math import *
from varmain.primitiv import *
from varmain.custom import *
@Anonymous(Group="Support", TooltipShort="PSL_226_CS2020_T10 HANGER ROD", TooltipLong="PSL_226_CS2020_T10 HANGER ROD", LengthUnit="in", Ports="1")
@param(RODDIA=LENGTH, TooltipShort="RODDIA")
@param(Length=LENGTH, TooltipShort="Length")
def PSL_226_CS2020_T10(s, RODDIA = 16.0, Length = 500.0, **kw):
#ROD
ROD = CYLINDER(s, R=RODDIA/2.0,H=Length,O=0).rotateX(0).translate((0.0,0.0,0.0))
#port points
#s.setPoint((0, 0, 0), (0,-1, 0))
s.SetLinearDimension('Length'(0, 0, 0),(0, 0, -Length))
Solved! Go to Solution.