Still doesn't work for me. There is nothing attached to my cursor.
J
Posts made by jprisbe
-
RE: Model.import not working for newbie.
-
Model.import not working for newbie.
I have a very simple script to import a 3ds file.
<span class="syntaxdefault">model </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model<br />fileName </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"C;\\temp\\B473.3ds"<br /></span><span class="syntaxdefault">show_summary </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> true<br />status </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">import</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">fileName</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> show_summary</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">UI</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">messagebox</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">status</span><span class="syntaxkeyword">)<br /></span><span class="syntaxdefault">model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">commit_operation</span>
When the script runs I get the Import Process dialog but I get no summary dialog and there is nothing in Sketchup.
model.import
returns true.If I do an import from the File menu all works well.
What am I doing wrong?