Import points script.

Next
 From:  Barry-H
9005.1 
Hi Michael,
just tried the import points script in V4 and got this error message,

ReferenceError: Can't find variable: ActiveXObject

ImportPointFile.js line 95

91: CurveEnd = moi.ui.commandUI.closedpoly.value ? 'closed' : 'open';
92: else
93: CurveEnd = moi.ui.commandUI.curveend.value;
94:
95: >> var fso = new ActiveXObject( 'Scripting.FileSystemObject' );
96: var f = fso.OpenTextFile( filename, 1 );
97:
98: var PointList = new Array();
99:

Barry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9005.2 In reply to 9005.1 
Hi Barry, please try the updated one from here: http://moi3d.com/forum/messages.php?webtag=MOI&msg=5124.2

Use the one that says that it's been updated to work on OSX even if you're on Windows - that one was updated to use MoI's built in functions for reading and writing to text files instead of the ActiveX FileSystemObject which won't work with MoI v4 anymore.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Barry-H
9005.3 In reply to 9005.2 
Thanks Michael works fine.
Barry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All