MoI discussion forum
MoI discussion forum

Full Version: Import points script.

From: Barry-H
13 Jul 2018   [#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
From: Michael Gibson
13 Jul 2018   [#2] In reply to [#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
From: Barry-H
13 Jul 2018   [#3] In reply to [#2]
Thanks Michael works fine.
Barry