Output Objects
| Parameter Name |
Comments |
Attributes_Name |
List of attribute names. |
Attributes_DisplayName |
List of attribute alias This attribute is optional and can be
empty when its name is the same than its alias. |
Attributes_Mode |
String list. The value can be:
-
Interactive: lets you define the attribute value
interactively.
- Custom: attribute value is returned by the BL script.
- STD: attribute value is retrieved from the model.
|
Attributes_Value |
List of attribute values. If the
Attributes_Mode is specified as STD
insert NULL. |
Image_format |
List of lists defining the format of the exposed image. Each
list contains two strings, one for the format attribute name and one for the
format attribute value:
- Width: picture width size.
the value is 640.
- Height: picture height size.
the value is 480.
- Active: chooses whether to generate a picture or
not
the value is true.
- ShowPart: displays the part.
- ShowStock: display the stock.
- ShowMfgProduct: display the entire manufacturing
product.
- ShowMachine: displays the NC machine.
- ShowAccessories: displays the NC accessories.
- ShowIntermediateStock: displays the intermediate
stock; if it has been computed.
- ShowMachAxisSystem: displays the current machining
axis system.
-
UseCurrentViewPoint: displays the 3D scene like the
current 3D Area.
the value is false.
- UseDefinedPicture: uses the picture associated with
the object if there is one.
the value is true.
- GenerateResourceIn2D: generates resource picture in
2D.
the value is false.
|
Example of Usage
/* DELNCDocumentationAttributes_ID for Doc Header
* BL script to retrieve attributes to expose in NC documentation for given Mfg object
* Input:
* RootObject : the mfg program or part operation of the NC documentation
* MachineReference : PLM reference of the NC machine (useful to filter attributes wrt machine name or type)
* Output:
* Attributes_Name: List of attribute names
* Attributes_DisplayName : List of attribute alias (optional can be empty when name is same than alias)
* Attributes_Mode: String list (value can be “INTERACTIVE”, “CUSTOM” or “STD”).
* INTERACTIVE: let user define interactively the attribute value
* CUSTOM: attribute value is returned by the BL script
* STD : attribute value is retrieved from the model
* Attributes_Value: List of attribute values (insert NULL in case of STD).
* Image_format: List of lists defining the format of exposed image.
Each list contains two strings, one for the format attribute name and one for the format attribute value:
* width: picture width size (default is 640)
* height: picture height size (default is 480)
* active: to generate or not a picture (default is true)
* showPart: to display the part
* showStock: to display the stock
* showMfgProduct: to display the whole mfg product
* showMachine: to display the NC machine
* showAccessories: to display the NC accessories
* showIntermediateStock: to display the intermediate stock (when it is computed)
* showMachAxisSystem: to display the current machining axis system
* useCurrentViewPoint: to see the 3D scene like the current 3d view (default is false)
* useDefinedPicture: to use the picture associated with the object if any (default is true)
* generateResourceIn2D: to generate resource picture in 2D (default is false)
*/
let OutAttribute_Mode(List)
let OutAttribute_Name(List)
let OutAttribute_Alias(List)
let OutAttribute_Value(List)
let OutFormat(List)
let RootMfgProgram (ManufacturingActivity)
set RootMfgProgram = Parameters.GetAttributeObject("RootObject")
// Doc title
OutAttribute_Mode.Append("INTERACTIVE")
OutAttribute_Name.Append("Title")
OutAttribute_Alias.Append(BuildMessageNLS("DELNCDocumentationAttributesNLS","Title"))
OutAttribute_Value.Append(RootMfgProgram.Name)
// Programmer Name
OutAttribute_Mode.Append("INTERACTIVE")
OutAttribute_Name.Append("Programmer")
OutAttribute_Alias.Append(BuildMessageNLS("DELNCDocumentationAttributesNLS","Programmer"))
OutAttribute_Value.Append(Parameters.UserID)
// Date
let now(Date)
let nowString(String)
set now = BuildDate()
set nowString = DateFormat("%d/%m/%y", now)
OutAttribute_Mode.Append("CUSTOM")
OutAttribute_Name.Append("ReportDate")
OutAttribute_Alias.Append(BuildMessageNLS("DELNCDocumentationAttributesNLS","ReportDate"))
OutAttribute_Value.Append(nowString)
// Programmer Comment
OutAttribute_Mode.Append("INTERACTIVE")
OutAttribute_Name.Append("Comment")
OutAttribute_Alias.Append(BuildMessageNLS("DELNCDocumentationAttributesNLS","Comment"))
OutAttribute_Value.Append("")
// Image Format
OutFormat.Append(List("showMfgProduct", true))
/* OUPUTS */
Parameters.SetAttributeObject("Attributes_Mode", OutAttribute_Mode)
Parameters.SetAttributeObject("Attributes_Name", OutAttribute_Name)
Parameters.SetAttributeObject("Attributes_DisplayName", OutAttribute_Alias)
Parameters.SetAttributeObject("Attributes_Value", OutAttribute_Value)
Parameters.SetAttributeObject("Image_format", OutFormat)