Hi Peticel, here's an example:
code:
var factory = moi.command.createFactory( 'dimhorizontal' );
var frame = moi.vectorMath.createTopFrame();
frame.origin = moi.vectorMath.createPoint(10,0,0);
factory.setInput( 0, frame ); /* Input 0 - coordinate frame for dimension plane, frame origin at start point. */
factory.setInput( 1, moi.vectorMath.createPoint(20,0,0) ); /* Input 1 - end point */
factory.setInput( 2, moi.vectorMath.createPoint(15,10,0) ); /* Input 2 - text through point */
factory.setInput( 3, 0 ); /* Input 3 - index of Dimension properties preset to use */
factory.commit();
This will generate a dimension:
- Michael
|