MoI discussion forum
MoI discussion forum

Full Version: Creat a Construction Line

From: Kondou
18 Sep 2017   [#1]
I need script Creat a Construction Line:

var cline = moi.command.createFactory( 'construction line' );

is not work, How do is?
From: bemfarmer
18 Sep 2017   [#2] In reply to [#1]
Hi Kondou

The constructionline3 script is here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=1029.25

Place the .js and .htm files in the MoICommand folder.
Make a shortcut key. Mine uses the C key, and ConstructionLine as the command.

(I use CustomUI also, so my file name has an underline in front of it _ConstructLine
)
- Brian
From: Michael Gibson
18 Sep 2017   [#3] In reply to [#1]
Hi Kondou, sorry there isn't currently any way set up to create a construction line purely programmatically, you have to be in a pointpicker and do a drag with the mouse to do it currently. I can add a programmatic way to do it in v4, please remind me about it again once v4 betas are going.

- Michael