
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, Experts
Following is a part of my Sample Python Script
from aqa.math import *
from varmain.primitiv import *
from varmain.var_basic import *
from varmain.custom import *
# Write Metadata Section
@activate(Group="Support", TooltipShort="SAMPLESUPPORT", TooltipLong="SAMPLESUPPORT", LengthUnit="mm", Ports=1)
@group("MainDimensions")
@param(D=LENGTH, TooltipLong="Pipe Diameter")
@param(SL=LENGTH, TooltipLong="Plate Length")
@param(SW=LENGTH, TooltipLong="Plate Width")
@param(SH=LENGTH, TooltipLong="Plate Height")
@param(VOL=LENGTH, TooltipLong="Plate Volume")
def SAMPLESUPPORT(s, D = 100, SL = 1000.0, SW = 2000.0, SH = 3000.0, VOL = 0.0, ID = 'SAMPLESUPPORT', **kw):
box = BOX(s, L=SL, W=SW, H=SH)
VOL = SL * SW * SH
=============================
VOL is a parameter which I want to set the volume of box after I create the box and I expect the VOL parameter to be changed according to the variable value of Width, Height, Length of the box.
(VOL = SL * SW * SH) is not effective because VOL always stays same as zero(0)
Thank You.
Solved! Go to Solution.