Talk About Network

Google





Computer Aided Design - CAD > Parametric Technology's Pro/Engineer > Re: BOM Quantit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 2770 of 3008
Post > Topic >>

Re: BOM Quantity Override

by "Janes" <djanes@[EMAIL PROTECTED] > Jan 7, 2008 at 08:08 PM

This is a multi-part message in MIME format.

------=_NextPart_000_0080_01C85169.03EB0910
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

  "Aggrevated" <tclement@[EMAIL PROTECTED]
> wrote in message =
news:7779c5c2-9567-4e1e-8de9-b1f271e629bd@[EMAIL PROTECTED]
  OK.  So the string part evaluates fine, however I get:

  IF asm_mbr_part_no =3D=3D "30681"
  qnty =3D "1.5"
  else
  qnty =3D rpt.qty
  =01error=02Invalid number in relation.
  endif

  If i take out the else part it works fine.  it doesn't like the qnty =
=3D
  rpt.qty part

  I tried  qnty =3D itos(rpt.qty) but that doesn't work.

  funny that I had to use asm_mbr_part_no insteasd of asm.mbr.part_no
  like I would expect (parameter is part_no) but it won't take rpt_qty
  says it's invalid

  what am I doing wrong?


You know, I was going to check this when I got to work today because =
there are syntax or syntax-related issues with getting this to work =
correctly. For example, I'm thinking that maybe the rpt.qty after the =
equals sign in the else statement might need to be enclosed in quotes as =
well. I'll try to remember to check.

Otherwise, why are you using asm_mbr_part_no? Isn't this a parameter? =
Why not use asm_mbr_part_name, the file name of the part/component? This =
is automatically a string 'parameter'.

David Janes
------=_NextPart_000_0080_01C85169.03EB0910
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3243" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV>"Aggrevated" &lt;<A=20
  href=3D"mailto:tclement@[EMAIL PROTECTED]
">tclement@[EMAIL PROTECTED]
>&gt; wrote in =
message=20
  <A=20
  =
href=3D"news:7779c5c2-9567-4e1e-8de9-b1f271e629bd@[EMAIL PROTECTED]
">news:7779c5c2-9567-4e1e-8de9-b1f271e629bd@[EMAIL PROTECTED]
>...</DIV>OK.&nbsp;=20
  So the string part evaluates fine, however I get:<BR><BR>IF =
asm_mbr_part_no =3D=3D=20
  "30681"<BR>qnty =3D "1.5"<BR>else<BR>qnty =3D =
rpt.qty<BR>=01error=02Invalid number in=20
  relation.<BR>endif<BR><BR>If i take out the else part it works =
fine.&nbsp; it=20
  doesn't like the qnty =3D<BR>rpt.qty part<BR><BR>I tried&nbsp; qnty =
=3D=20
  itos(rpt.qty) but that doesn't work.<BR><BR>funny that I had to use=20
  asm_mbr_part_no insteasd of asm.mbr.part_no<BR>like I would expect =
(parameter=20
  is part_no) but it won't take rpt_qty<BR>says it's invalid<BR><BR>what =
am I=20
  doing wrong?</BLOCKQUOTE><BR>
<DIV>You know, I was going to check this when I got to work today =
because there=20
are syntax or syntax-related issues with getting this to work correctly. =
For=20
example, I'm thinking that maybe the rpt.qty after the equals sign in =
the else=20
statement might need to be enclosed in quotes as well. I'll try to =
remember to=20
check.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Otherwise, why are you using asm_mbr_part_no? Isn't this a =
parameter? Why=20
not use asm_mbr_part_name, the file name of the part/component? This is=20
automatically a string 'parameter'.</DIV>
<DIV>&nbsp;</DIV>
<DIV>David Janes</DIV></BODY></HTML>

------=_NextPart_000_0080_01C85169.03EB0910--
 




 9 Posts in Topic:
BOM Quantity Override
Aggrevated <tclement@[  2008-01-04 12:59:52 
Re: BOM Quantity Override
"Janes" <dja  2008-01-04 17:30:41 
Re: BOM Quantity Override
Aggrevated <tclement@[  2008-01-07 13:03:21 
Re: BOM Quantity Override
Aggrevated <tclement@[  2008-01-07 13:09:43 
Re: BOM Quantity Override
Aggrevated <tclement@[  2008-01-07 13:38:03 
Re: BOM Quantity Override
"Janes" <dja  2008-01-07 20:08:05 
Re: BOM Quantity Override
Aggrevated <tclement@[  2008-01-07 13:48:13 
Re: BOM Quantity Override
"Janes" <dja  2008-01-07 15:40:58 
Re: BOM Quantity Override
Aggrevated <tclement@[  2008-01-10 10:25:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 17:01:09 PST 2009.