<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 13, 2015 at 10:51 PM, Alec Ventura <span dir="ltr"><<a href="mailto:alecventura@hotmail.com" target="_blank">alecventura@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I didn't want to put it on a file, at least for now. I want to make a 3d boreholes very similar to:<div><a href="http://osgeo-org.1560.x6.nabble.com/Automatic-3D-geological-boreholes-representation-automate-v-extrude-from-a-table-my-solution-in-Pythn-td4978801.html" target="_blank">http://osgeo-org.1560.x6.nabble.com/Automatic-3D-geological-boreholes-representation-automate-v-extrude-from-a-table-my-solution-in-Pythn-td4978801.html</a></div><div><br></div><div>so i would like to add the boreholes to my current interface... the problem is: when i run the loop:<br><div>for i in range(len(boreholesList)):</div><div>    boreholeName = "bore"+str(i)</div><div>    g.run_command('v.extract',input=mapWithBuffer, list=i+1, output='tmp',type='area', quiet=True, overwrite=True)</div><div>    g.run_command('v.extrude', input='tmp', output=boreholeName, zshift=float(boreholesList[i][2]),height= float(boreholesList[i][5]),overwrite=True)</div><div>    g.run_command('g.remove', type='vector', name='tmp', flags = 'f')</div><div>    g.run_command('d.vect', map=boreholeName)</div></div></div></blockquote><div><br></div><div>Wouldn't patching all the created vector maps together and then displaying just the one the right thing to do? <br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>the last command (d.vect) gives an error saing that it needs a monitor, so when i run 'd.mon -l' the is no monitor running,</div></div></div></blockquote><div><br></div><div>d.vect needs to draw the image somewhere.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>and when i run a 'd.mon start="wx0"' then it starts a new interface where i can add the vectors... but then i cant do a 'zoom to layer' command (because i dont know how).</div></div></div></blockquote><div><br></div><div>d.mon wx0 has a toolbar similar to the one in Map Display. You should be able to use the various zoom buttons there as well as mouse wheel.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br></div><div>The ideal would be to use the current interface instead of open a new one right?</div></div></div></blockquote><div><br></div><div>GUI doesn't know about what is happening in your Python script and it is not connected to the rendering/monitor system. d.mon serves this role.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>i dont know why the 'd.vect' command requires a monitor on python.</div></div></div></blockquote></div><br></div><div class="gmail_extra">As I said, d.vect needs to draw the image somewhere.<br><br>I'm not sure if I understand what behavior you actually expect to see.<br></div></div>