For ETO apps, the ETO rules define the end-user interface in Configurator 360. Use the designs for UI Rules, such as UICategory, NumberProperty, and UIMessage.
Guidelines for ETO apps
<%%Category("UI")> _ Parameter Rule Actions As List = { "CreateDWF","CreateSTEP" } '"CreateAssemblyZip","CreateCATIA" ] Rule displayName As String = "Pile of Blocks"
Configurator360.autodesk.com provides several programmed actions on the Options tab Downloads sub tab. These actions are immediately available for the non-ETO types of designs. The following describes some techniques to reuse the actions from ETO applications.
For more information about Tools actions in Configurator 360, see UI Tools actions.
Child DWFOutputFile As :OutputDWF FileName = %%PRODUCT + ".dwf" End Child
Standard actions summary:
Action Name | ETO Design | Child Name | Purpose |
---|---|---|---|
3D Outputs | |||
CreateAssemblyZip | Output IAM <OutputIAM> | AssemblyFilesOutputFile | Zip of IAM |
CreateDWF | Output DWF <OutputDWF> | DWFOutputFile | DWF |
CreateDWFx | Output DWFx <OutputDWFx> | DWFxOutputFile | DWFx |
CreateSTEP | Output STEP <OutputSTEP> | STEPOutputFile | STEP |
CreateCATIA | Output CATIA <OutputCATIA> | CATIAOutputFile | CATIA |
CreateGranite | Output Granite <OutputGranite> | GraniteOutputFile | Granite |
CreateIGES | Output IGES <OutputIGES> | IGESOutputFile | IGES |
CreateJT | Output JT <OutputJT> | JTOutputFile | JT |
CreateParasolidBinary | Output Parasolid Binary <OutputParasolidBinary> | ParasolidBinaryOutputFile | |
CreateParasolidText | Output Parasolid Text <OutputParasolidText> | ParasolidTextOutputFile | |
CreateNeutral | Output Neutral <OutputNeutral> | NeutralOutputFile | |
CreateRFA | Output RFA <OutputRFA> | RFAOutputFile | RFA |
CreateSAT | Output SAT <OutputSAT> | SATOutputFile | SAT |
CreateSTL | Output STL <OutputSTL> | STLOutputFile | |
Drawing outputs | |||
CreateDrawingIDW | Output Drawings IDW <OutputDrawingsIDW> | IDWDrawingOutputFile | Inventor IDW |
CreateDrawingAutoCADDWG | Output Drawings Acad DWG <OutputDrawingsAcadDWG> | AutoCADDWGDrawingOutputFile | AutoCAD DWG |
CreateDrawingDWG | Output Drawings DWG <OutputDrawingsInventorDWG> | DWGDrawingOutputFile | Inventor DWG |
CreateDrawingDWF | Output Drawings DWF <OutputDrawingsDWF> | DwfDrawingOutputFile | DWF |
CreateDrawingDWFx | Output Drawings DWFx <OutputDrawingsDWFx> | DwfxDrawingOutputFile | DWFx |
CreateDrawingPDF | Output Drawings PDF <OutputDrawingsPDF> | PDFDrawingOutputFile | |
CreateDXF | Output Drawings DXF <OutputDrawingsDXF> | DxfOutputFile | DXF |
Graphics | |||
CreateBMP | Output BMP <OutputBMP> | BMPOutputFile | BMP |
CreateGIF | Output GIF <OutputGIF> | GIFOutputFile | GIF |
CreateJPEG | Output JPEG <OutputJPEG> | JPEGOutputFile | JPG |
CreatePNG | Output PNG <OutputPNG> | PNGOutputFile | PNG |
CreateTIFF | Output TIFF <OutputTIFF> | TIFFOutputFile | TIF |
Rule Actions As List = { "CreateDWF","CreateSTEP" }
This rule creates the Actions with the exact functionality as on C360.
Child DWFOutputFile As :OutputDWF FileName = %%PRODUCT + ".dwf" EnablePrinting? = False End Child
In Drawings, to use any drawing outputs, create a child. Pass the Lists of the ETO Drawings Parts necessary to output.
Rule TheDrawings As List = { Root.Drawing1, Root.Drawing2} Child DxfOutputFile As :OutputDrawingsDxf ExportDrawings = TheDrawings FileNamePrefix = %%PRODUCT End Child
The core Intent Design that is a base for all C360 outputs is OutputMixin. For more information, see Configurator 360 Output <Configurator360Output> .
The workhorse Intent Rule is Data Rule. This rule is expected to be implemented in the derived Design. This Rule is intentionally Uncached. The purpose of the Rule is to return byte array (byte [ ] in C# notation) of the data that represents the file image of the specified output format.
The Data may return NoValue when the output is not available.
OutputInfo Rule combines the values of the supplied Parameters into Intent List.
Design CustomOutput : OutputMixin '# ------------------------------ '# PARAMETERS '# ------------------------------ <Your parameters> '# ------------------------------ '# C360 PARAMETERS '# ------------------------------ ' C360 - Required parameters <%%Category("Outputs")> _ Parameter Rule FileName As String = "CustomOutput.zip" <%%Category("Outputs")> _ Parameter Rule FileExtension As String = ".zip" <%%Category("Outputs")> _ Parameter Rule FileType As String = "My Custom Output" ' C360 - Outputs <%%Category("Outputs")> _ Uncached Rule OutputInfo As List = { FilePath, FileType, Filename, FileExtension, Data} <%%Category("Outputs")> _ Uncached Rule Data = MyBytesCreator() ' assumes zip array End Design