I spent an hour banging my head against a wall today, trying to find the correct invocation to SONRAW that would result in showing all sons, including those that are marked as 'info only'. The basic form of the command is
EXECUTE SONRAW :$.PRT, SQL.DATE8, :$.ARC, :$.OPT, :$.REV
where: :$.PRT is a linked file of parts that one wants to 'explode'
SQL.DATE8 is of course, today - this may have some function with trees that have
revisions
:$.ARC is the result, a linked file of tuples of PARTARC
:$.OPT is the desired option, the raison d'etre of this blog
:$.REV is apparently something to do with revisions ... or not.
If one dissects the various values of :$.OPT as in the PARTTREE procedure, 0 =
regular, 2 = including phantoms, 4 = including info only parts. These values
can be combined as they form a bit mask. The value of :$.REV had me scratching
my head: if :$.OPT is 0 then :$.REV can be empty and one does get some form of
tree, but it seems best that :$.REV always be set to '-N'. I wasted a great deal of time trying to find the right invocation to include info-only sons where :$.REV was empty.
- So the invocation for a 'normal' BOM would beEXECUTE SONRAW :$.PRT, SQL.DATE8, :$.ARC, 0, '-N'
- For a 'normal' BOM with phantoms would beEXECUTE SONRAW :$.PRT, SQL.DATE8, :$.ARC, 2, '-N'
- And for a 'normal' BOM with info-only sons would beEXECUTE SONRAW :$.PRT, SQL.DATE8, :$.ARC, 4, '-N'
Cut this out and store it somewhere.
No comments:
Post a Comment