| >	factory.generateVertices(); 
>	var corners = factory.getCreatedObjects();
 
How can I get the x,y coordinates of a corner?
 
		var factory = moi.command.createFactory( 'fillet' ); 
		factory.setInput( 0, objlist ); 
		factory.generateVertices(); 
		var points = factory.getCreatedObjects(); 
		factory.cancel(); 
		for ( var j = 0; j < points.length; j++ ) 
		{ 
			var pnt = points.item(j);
 
			moi.ui.alert( "pnt = " + pnt);
   
			moi.ui.alert( "pnt.x = "  + pnt.x);
   
			moi.ui.alert( "pnt.y = "  + pnt.y);
   
		}
 
___________
 
I tried to treat it as an array as well... no luck so far.
 
Thanks, 
--   Mindset |