用戶端與網頁端引擎
Last updated
"Scripts": [
"PLUGINLOCATION/blockFormItSide.js",
"https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/PluginUtils18_0.js"
] var args = {
"w": 10,
"l": 10,
"h": 10
}
FormItInterface.CallMethod("CreateBlock", args, function(result)
{
// Result of the function call
});var args =
{
"w": 10,
"l": 10,
"h": 10
};
var result = await FormIt.CallJS("CreateBlock", args);const pt1 = await WSM.Geom.Point3d(0,0,0);FormIt.RegisterAsyncAPI("HelloBlockAsync", "CreateBlock", "l, w, h");
// CreateBlock runs from FormIt.
HelloBlockAsync.CreateBlock = function(args)
{
return { "Result" : "It Worked!!"};
}var result = await HelloBlockAsync.CreateBlock(l, w, h);