convert c# to python - Grasshopper2024-03-29T05:38:46Zhttps://www.grasshopper3d.com/forum/topics/convert-c-to-python?feed=yes&xn_auth=noMany thanks Anders.
Looks gr…tag:www.grasshopper3d.com,2014-02-02:2985220:Comment:10009602014-02-02T12:33:14.133Zhamia Aghaiemeybodihttps://www.grasshopper3d.com/profile/hamiaAghaiemeybodi
<p>Many thanks Anders. </p>
<p>Looks great.</p>
<p>H/</p>
<p>Many thanks Anders. </p>
<p>Looks great.</p>
<p>H/</p> Edit: Had a variable name whi…tag:www.grasshopper3d.com,2014-01-29:2985220:Comment:9985822014-01-29T16:07:20.441ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p><strong>Edit:</strong> Had a variable name which was not updated. Just reattached the file.</p>
<p><strong>Edit:</strong> Had a variable name which was not updated. Just reattached the file.</p> Hi Guys, I'll just reply here…tag:www.grasshopper3d.com,2014-01-29:2985220:Comment:9986372014-01-29T16:02:38.926ZAnders Holden Deleuranhttps://www.grasshopper3d.com/profile/AndersHoldenDeleuran
<p>Hi Guys, I'll just reply here. I had a quick go at updating the script to work with single stroke fonts (find attached). You'll need to install the fonts and then select which one to use in the GH def. It is not exactly a foolproof update as it assumes that we will always want to remove the last segment of the text polycurve. One could add some if statements to catch more cases (such as a 0 should keep the last segment etc.). But hopefully this at least will help a bit :)</p>
<p>Hi Guys, I'll just reply here. I had a quick go at updating the script to work with single stroke fonts (find attached). You'll need to install the fonts and then select which one to use in the GH def. It is not exactly a foolproof update as it assumes that we will always want to remove the last segment of the text polycurve. One could add some if statements to catch more cases (such as a 0 should keep the last segment etc.). But hopefully this at least will help a bit :)</p> Thanks mostapha,
it's almost…tag:www.grasshopper3d.com,2014-01-29:2985220:Comment:9983612014-01-29T09:05:18.263Zhamia Aghaiemeybodihttps://www.grasshopper3d.com/profile/hamiaAghaiemeybodi
<p>Thanks mostapha,</p>
<p></p>
<p>it's almost the same, here is what i got:</p>
<p>import Rhino as rc<br></br>import rhinoscriptsyntax as rs</p>
<p><br></br>if(size == 0):<br></br> size=1</p>
<p>if( (not(face is None)) and (size>0) and (not (content is None))and type(pl) == rc.Geometry.Plane ):<br></br> print "yes"<br></br> te=rc.RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics)<br></br> txt = rc.RhinoDoc.ActiveDoc.Objects.Find(te)<br></br> print txt<br></br> if not(txt is None):…<br></br></p>
<p>Thanks mostapha,</p>
<p></p>
<p>it's almost the same, here is what i got:</p>
<p>import Rhino as rc<br/>import rhinoscriptsyntax as rs</p>
<p><br/>if(size == 0):<br/> size=1</p>
<p>if( (not(face is None)) and (size>0) and (not (content is None))and type(pl) == rc.Geometry.Plane ):<br/> print "yes"<br/> te=rc.RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics)<br/> txt = rc.RhinoDoc.ActiveDoc.Objects.Find(te)<br/> print txt<br/> if not(txt is None):<br/> #txt.decode("utf-8")<br/> tt = txt.Geometry<br/> #tt= rc.Geometry.TextEntity<br/> print tt<br/> a = tt.Explode()<br/> rc.RhinoDoc.ActiveDoc.Objects.Delete(te, True)</p>
<p></p>
<p></p>
<p>issue is that it produce double curve text, which mean too much time for cutting, im looking for a way to make it single curve text.</p>
<p>Best,</p>
<p>H/</p> Hey Hamia! Is this the functi…tag:www.grasshopper3d.com,2014-01-28:2985220:Comment:9980382014-01-28T16:38:41.594ZMostapha Sadeghipour Roudsarihttps://www.grasshopper3d.com/profile/MostaphaSadeghipour
<p>Hey Hamia! Is this the function that you are looking for: <a rel="nofollow" href="https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1793" target="_blank">https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug...</a></p>
<p>Hey Hamia! Is this the function that you are looking for: <a rel="nofollow" href="https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug_ladybug.py#L1793" target="_blank">https://github.com/mostaphaRoudsari/ladybug/blob/master/src/ladybug...</a></p> Got it,
Perfect,
Thanks...tag:www.grasshopper3d.com,2014-01-28:2985220:Comment:9977562014-01-28T15:04:44.437Zhamia Aghaiemeybodihttps://www.grasshopper3d.com/profile/hamiaAghaiemeybodi
<p>Got it,</p>
<p>Perfect,</p>
<p>Thanks...</p>
<p>Got it,</p>
<p>Perfect,</p>
<p>Thanks...</p> Thx
Yap but this part doesn't…tag:www.grasshopper3d.com,2014-01-28:2985220:Comment:9978672014-01-28T15:02:29.258Zhamia Aghaiemeybodihttps://www.grasshopper3d.com/profile/hamiaAghaiemeybodi
<p>Thx</p>
<p>Yap but this part doesn't work in this format :<br/><strong>var tt = txt.Geometry as Rhino.Geometry.TextEntity</strong></p>
<p>Thx</p>
<p>Yap but this part doesn't work in this format :<br/><strong>var tt = txt.Geometry as Rhino.Geometry.TextEntity</strong></p> Thanks Marcus,
Do you know ho…tag:www.grasshopper3d.com,2014-01-28:2985220:Comment:9979732014-01-28T14:23:49.468Zhamia Aghaiemeybodihttps://www.grasshopper3d.com/profile/hamiaAghaiemeybodi
<p>Thanks Marcus,</p>
<p>Do you know how to deal with this part?</p>
<p></p>
<p>var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);<br/> Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;</p>
<p><strong>if(txt != null)</strong><br/> <strong>{</strong><br/> <strong>var tt = txt.Geometry as Rhino.Geometry.TextEntity;</strong><br/> <strong>A = tt.Explode();</strong></p>
<p>Thanks Marcus,</p>
<p>Do you know how to deal with this part?</p>
<p></p>
<p>var te = RhinoDoc.ActiveDoc.Objects.AddText(content, pl, size, face, bold, italics);<br/> Rhino.DocObjects.TextObject txt = RhinoDoc.ActiveDoc.Objects.Find(te) as Rhino.DocObjects.TextObject;</p>
<p><strong>if(txt != null)</strong><br/> <strong>{</strong><br/> <strong>var tt = txt.Geometry as Rhino.Geometry.TextEntity;</strong><br/> <strong>A = tt.Explode();</strong></p>