Margin of safety > Custom methods
Diagrams for custom methods
When you create a custom method, you can create a graphic that appears in the Calculation - Method Selection dialog box for the method. The graphic can contain a pictorial representation of the physical dimensions, constraints, and loads that are used in the method. The graphic is referred to as a diagram.
To associate a diagram with a custom method, add the diagramurl attribute to the XML file for the method as follows:
<method id="SelectionMethod" uiname="Selection Method" category="Examples/Visual Basic" docurl="html/SelectionMethod.html" diagramurl="folder/filename.png">
where folder resides in the folder that contains the XML file for the method, and filename.png is the graphic file for the diagram.
In addition to specifying the location of the graphic file relative to the folder that contains the XML file for the method, you can also:
Specify the absolute path to the graphic file.diagramurl="<*path*>/filename.png"
Use an environment variable to shorten the absolute path to the graphic file.diagramurl="${environment_variable_name}/filename.png"
Access the graphic file from the web using the HTTP URL to the file.diagramurl="
Access a local graphic file using a file URL.diagramurl="file://<*path*>/filename.png"
In the examples, the graphic file is shown having a portable network graphic (.png) extension. The following graphic file formats are also supported:
Bitmap (.bmp)
JPEG (.jpeg)
Compressed format JPEG (.jpg)
Graphics interchange format (.gif), including animations.
The recommended size for the graphic is 800x600 pixels.
Learn more
Custom methods
Custom method example
Creating tables and groups
Interfacing with external files
Specifying default values for parameters
Bulk processing of calculations
Interfacing with external post-processors
Look up more details
Elements and attributes of XML files
Quick links
Command reference
Pre/Post video examples
Bulk Entry Descriptions
Simcenter 3D tutorials
Browse Simcenter 3D help by product area
Margin of Safety methods documentation
Diagrams for custom methods, Simcenter 3D 2021.1 Series
© 2020 Siemens
window.mainLanguage="en_US"
window.delivId=""
window.projectId=""
MathJax.Hub.Config({ TeX: { extensions: ["autoload-all.js"] }, tex2jax: { displayMath: [ ] }, "SVG": { scale: 125 } });
Source: https://docs.sw.siemens.com/en-US/doc/289054037/PL20200601120302950.advanced/xid1688152 · retrieved 2026-07-17