<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi,</div><div class="gmail_default" style="font-size:small">thank you for your reply.</div><div class="gmail_default" style="font-size:small">I downloaded gmsh-3.0.7-
<span style="color:rgb(46,46,46);font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:nowrap;word-spacing:0px;background-color:rgb(250,250,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">dcaabc7b and I saw in the gmsh.cpp the following code</span></div><div class="gmail_default" style="text-align:left;font-size:small"><span style="color:rgb(46,46,46);font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:nowrap;word-spacing:0px;background-color:rgb(250,250,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="arial, helvetica, sans-serif"><br></font></span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(46,46,46);font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:nowrap;word-spacing:0px;background-color:rgb(250,250,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">GMSH_API void gmsh::model::getType(const int dim,</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> const int tag,</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> std::string &type)</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">{</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> if(!_isInitialized()){ throw -1; }</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> GEntity *ge = GModel::current()->getEntityByTag(dim, tag);</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> if(!ge){</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> Msg::Error("%s does not exist", _getEntityName(dim, tag).c_str());</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> throw 2;</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> }</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"> type = ge->getTypeString();</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">}</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">I tried to use the code to a geo script like</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">L[]= "*";</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">tp="";</font></div><div class="gmail_default" style="text-align:left;font-size:small"><br></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">getType(1,L[0],tp);</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">but I get errors. How can I use it for getting the type in to the tp variable? I also tried different syntaxes but I always get errors.</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">kind regards</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif">andrew</font></div><div class="gmail_default" style="text-align:left;font-size:small"><font face="arial, helvetica, sans-serif"><br></font></div><div style="font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace"><br></div></span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(46,46,46);font-family:Menlo,"DejaVu Sans Mono","Liberation Mono",Consolas,"Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:nowrap;word-spacing:0px;background-color:rgb(250,250,250);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-26 11:01 GMT+03:00 Christophe Geuzaine <span dir="ltr"><<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><span class=""><br><blockquote type="cite"><div>On 25 Apr 2018, at 22:29, Christophe Geuzaine <<a href="mailto:geuzaine@gmail.com" target="_blank">geuzaine@gmail.com</a>> wrote:</div><br class="m_2961845578942865855Apple-interchange-newline"><div><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div>Hi Andrew,<div><br></div><div>Not in the current version. This is something we might indeed want to add in the API.</div></div></div></blockquote><div><br></div></span><div>I've added gmsh::model::getType() which return the string type of an entity ("Circle", etc.) - this could be used to filter the results.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Christophe</div></font></span><span class=""><div><br></div><br><blockquote type="cite"><div><div style="word-wrap:break-word;line-break:after-white-space"><div><br></div><div>Christophe<br><div><br><blockquote type="cite"><div>On 25 Apr 2018, at 17:57, andrew <<a href="mailto:armitatz@gmail.com" target="_blank">armitatz@gmail.com</a>> wrote:</div><br class="m_2961845578942865855Apple-interchange-newline"><div><div dir="ltr"><div style="font-size:small">Hi,</div><div style="font-size:small"><br></div><div style="font-size:small">I would like to select in a model all the arcs that are in a surface. For example if I use the line</div><div style="font-size:small"><br></div><div style="font-size:small">lines[]=Line "*";</div><div style="font-size:small"><br></div><div style="font-size:small">I get all the lines in a model. Is there a similar </div><div style="font-size:small"><br></div><div style="font-size:small">circles[]=Circle "*"; or arcs[]=Arc "*";</div><div style="font-size:small"><br></div><div style="font-size:small">command with I will be able to select the circular elements?</div><div style="font-size:small"><br></div><div style="font-size:small">thank you in advance</div><div style="font-size:small"><br></div><div style="font-size:small">andrew</div><div style="font-size:small"><br></div></div>
______________________________<wbr>_________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/<wbr>listinfo/gmsh</a><br></div></blockquote></div><br></div></div></div></blockquote></span></div><br></div></blockquote></div><br></div></div>