Skip to content

This repo contains the example of how to make a JS command extension using the FormIt c++ APIs.

Notifications You must be signed in to change notification settings

FormIt3D/HelloWSMAddIn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSM Addin example creating user defined JS commands using WSM C++ APIs.

Main Preview

This is an example of the FormIt Modeling Kernel API. To load this plugin, run this in the FormIt console-

FormIt.LoadPlugin("https://formit3d.github.io/HelloWSMAddIn");
  1. Download the FormItSupport directory from the ADN web site
  2. Unzip the FormItSupport directory into the DLL
  3. Build the DLL
  4. Use the following commands to call the new JS APIs in the DLL
var pt1 = WSM.Geom.Point3d(0,0,0);
var pt2 = WSM.Geom.Point3d(10,10,10);
HelloWSMAddIn.CreateBlock(0, pt1, pt2);
var bounds = HelloWSMAddIn.WSMUtils.GetWorldBounds();
console.log(bounds);

About

This repo contains the example of how to make a JS command extension using the FormIt c++ APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •