Don't wanna be here? Send us removal request.
Text
views for interior as well. use proximity and destination concept for interior as well.for program disrib
find conceptual tools
6 notes
·
View notes
Photo

Jean Mathiot, Rue de Javel (1963, Paris XVe)
ph. DR
23 notes
·
View notes
Text
https://mcneel.myjetbrains.com/youtrack/issue/RH-47603 https://discourse.mcneel.com/t/rhino-6-service-release-9-available/72230
0 notes
Text
#modify objects inside blocks import rhinoscriptsyntax as rs def modify(block_objects): # here the objects inside the block get modified breps = [] for block_object in block_objects: if rs.IsBrep(block_object): breps.append(block_object) joined_surfaces= rs.JoinSurfaces(breps, delete_input=True) return (joined_surfaces) instances = rs.GetObjects ( message=None, filter=0, group=True, preselect=True, select=False, objects=None, minimum_count=1, maximum_count=0, custom_filter=None ) for instance in instances: block_name = rs.BlockInstanceName(instance) all_instances = rs.BlockInstances(block_name) block_point = rs.BlockInstanceInsertPoint(instance) newinstance = rs.CopyObject(instance) block_objects = rs.ExplodeBlockInstance (newinstance) all_instances_pt =[] for block_insance in all_instances: all_instances_pt.append(rs.BlockInstanceInsertPoint (block_insance)) rs.DeleteBlock(block_name) new_block_objects=[] # Stuff happens here: the modify function returns the new objects for blocks new_block_objects.append(modify(block_objects)) # End of stuff happening block_name = block_name+"newblock" rs.AddBlock(new_block_objects, block_point, name=block_name, delete_input=True) for instances_pt in all_instances_pt: rs.InsertBlock(block_name, instances_pt, scale=(1, 1, 1), angle_degrees=0, rotation_normal=(0, 0, 1))
0 notes
Text
#rotate block by axis import rhinoscriptsyntax as rs blockinstances = rs.SelectedObjects() for blockinstance in blockinstances: xform = rs.BlockInstanceXform(blockinstance) plane = rs.WorldXYPlane() plane.Transform(xform) rs.RotateObject(blockinstance,plane.Origin,180,plane.ZAxis)
2 notes
·
View notes
Text
#-RunPythonScript (K:\PythonScripts\SelectByLayer.py) import rhinoscriptsyntax as rs objs = rs.GetObjects ( message=None, filter=0, group=True, preselect=True, select=False, objects=None, minimum_count=1, maximum_count=0, custom_filter=None ) layer_list = [] for obj in objs: obj_layer = rs.ObjectLayer ( obj, layer=None ) layer_list.append(obj_layer) layer_list = set(layer_list) for layer_name in layer_list: rs.ObjectsByLayer (layer_name, select=True)
0 notes
Text
#-RunPythonScript (K:\PythonPlugins\SelBlockInstancePick.py) import rhinoscriptsyntax as rs blocknames=[] object_ids = rs.GetObjects(message="Pick block instance", filter=4096, preselect=True, select=True, custom_filter=None) for object_id in object_ids: blocknames.append(rs.BlockInstanceName(object_id)) blocknames = set(blocknames) #print blocknames for blockname in blocknames: blocklist = rs.BlockInstances(blockname) rs.EnableRedraw(False) rs.SelectObjects(blocklist) rs.EnableRedraw(True) print blockname+'= '+str(len(blocklist))
0 notes
Text
cplane rotate y 90 _section _pause _pause _pause cplane P Enter
0 notes
Text
#cut breps 180129 import rhinoscriptsyntax as rs obj = rs.GetObjects(message=None, filter=0, preselect=True, select = True) rectangle = rs.GetRectangle (mode=2, base_point=None, prompt1=None, prompt2=None, prompt3=None) rectangle_vector = rs.VectorCreate(rectangle[0],rectangle[2]) srf1 = rs.AddCutPlane( obj, rectangle[0],rectangle[1],rectangle_vector) rs.MatchObjectAttributes(srf1, obj[0]) for each_obj in obj: if rs.IsBrep(each_obj)==True: breps_split = rs.SplitBrep (each_obj, srf1, delete_input=False) if breps_split: rs.MatchObjectAttributes(breps_split, srf1) for breps in breps_split: if rs.IsPolysurface(breps)==True: rs.CapPlanarHoles(breps) rs.SelectObjects(breps) rs.DeleteObject(each_obj) if rs.IsCurve(each_obj)==True: crv_point = rs.CurveSurfaceIntersection (each_obj, srf1, tolerance=-1, angle_tolerance=-1) if crv_point: param=[] for pt in crv_point: param.append(rs.CurveClosestPoint(each_obj,pt[1])) #print intersect param.sort() curves = rs.SplitCurve(each_obj, param) rs.DeleteObject(srf1)
0 notes