to Giulio's definition, you should not bake the python component. Setting the toggle to true is equivalent to baking. If you replace the toggle with a button, everytime you press the button, you will be baking the line because the following code is run:
rhino_line = scriptcontext.doc.Objects.Add(geometry, attributes)
When I run Giulio's definition, I do have a line in my rhino document which i can drag around - so there is 'actual' geometry. So answer 1 - yes you can script the baking process. The key is to switch between scriptcontexts (Rhino.ActiveDoc and ghdoc)
As for question 2, why not just bake all of it at once? Is it important for example to bake one first, look at it, then select the next? I attached a modified version of Giulio's definition with just one additional: for line_id in line_ids. Hope it does what you are aiming for.
…
ithout this line.
Basically it is a closed surface generated after lofting a series of oncentric 3-point arches. I need to export the surface to .iges but the arch line is visible and does not fit the purpose.
Your assistance will be much appreciated!
ModeloGH-C.gh…
x direction
2) from the end of this line create an arc which has a perpendicular tangent and a sweep angle of [a] degrees
3) form the end of that arc create a vertical line ....
and so on and so forth.
There are plenty of curve tools available. You can choose to create segments and join them together. Or you can choose to create regions and perform boolean operations on those.
--
David Rutten
david@mcneel.com
Seattle, WA…
Added by David Rutten at 7:07pm on September 15, 2009
Point3d > ();
and:
Rhino.Collections.Point3dList endPtsList = new Rhino.Collections.Point3dList();
i am having a prob that when i call this function:
Branch(line, ang, factor, factorB, iterations, TreeList, endPtsList);
private void Branch(Line line, double ang, double factor, double factorB, int iterations, ref List TreeList, ref Rhino.Collections.Point3dList endPtsList)
i am getting an invalid argument…
ction to your finishing point. But the line starts at one end and finishes, A and finishes at the other, B. You cannot get any negative t with the start in the centre of a line.
…
reference methods with their name and without parentheses, or build the delegate with an explicit constructor but still without parentheses.
The longer syntax for line line 120 is then:
param.ObjectChanged += new IGH_DocumentObject.ObjectChangedEventHandler(Param_ObjectChanged);
that can also be:
param.ObjectChanged += Param_ObjectChanged;
- Giulio _______________ giulio@mcneel.com McNeel Europe…