Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
people:gcwebster [2016/03/23]
sandy
people:gcwebster [2016/04/19] (current)
sandy
Line 1: Line 1:
 ====== Scripts, Workspace, and Macros====== ====== Scripts, Workspace, and Macros======
  
-Created by [[http://​en.wiki.mcneel.com/​default.aspx/​McNeel/​RhinoPhiles.html|G.C. Webster (Guilherme Cozer Webster)]] for [[www.rhino3d.com/​|Rhino.]] +Created by G.C. Webster (Guilherme Cozer Webster) for Rhino. ​
  
 > **Info:** //Olá. Welcome to my humble wiki page. I'm not a VB Expert, but I do my best. If you'd like to report a bug (or maybe a spelling / grammar mistake), send a suggestion or just contact me, feel free to send an [[gcwebster36@gmail.com|e-mail.]]//​ > **Info:** //Olá. Welcome to my humble wiki page. I'm not a VB Expert, but I do my best. If you'd like to report a bug (or maybe a spelling / grammar mistake), send a suggestion or just contact me, feel free to send an [[gcwebster36@gmail.com|e-mail.]]//​
Line 7: Line 7:
 ===== VB.NET ===== ===== VB.NET =====
  
-This [[http://​wiki.mcneel.com/​_media/​legacy/​en/​gcwebster-rhinoscripts.zip|.zip file]] (last revision: **03 / Fev / 06**) contains all the scripts described below, saved in **.rvb** format. It is simpler than uploading every single script...+This [[http://​wiki.mcneel.com/​_media/​legacy/​en/​gcwebster-rhinoscripts.zip|.zip file]] (last revision: **03/Feb/06**) contains all the scripts described below, saved in **.rvb** format. It is simpler than uploading every single script...
  
 These .rvb files are ready to be copied and pasted to a button. Take a look at the [[developer:​macroscriptsetup|MacroScriptSetup]] tutorial page to know what I'm talking about. These .rvb files are ready to be copied and pasted to a button. Take a look at the [[developer:​macroscriptsetup|MacroScriptSetup]] tutorial page to know what I'm talking about.
  
-==AbsTol== +**AbsTol** - Quickly change the absolute tolerance of a document.
-Quickly change the absolute tolerance of a document.+
  
-==AnglePivot== +**AnglePivot** - Runs the Angle command with a pivot point.
-Runs the Angle command with a pivot point.+
  
-==AnnotateCrvLengths==+**AnnotateCrvLengths**
  
-==AnnotateCrvRadius==+**AnnotateCrvRadius**
  
-==BothColors== +**BothColors** - Quickly changes both wireframe and render/​material colors of any objects.
-Quickly changes both wireframe and render/​material colors of any objects.+
  
-==ClearAllMeshes== +**ClearAllMeshes** - Runs the ClearAllMeshes command with a secure confirmation box.
-Runs the ClearAllMeshes command with a secure confirmation box.+
  
-==ClearUndo== +**ClearUndo** - Runs the ClearUndo command with a secure confirmation box.
-Runs the ClearUndo command with a secure confirmation box.+
  
-==ClosedPlanarCrvIndAreaCentroids== +**ClosedPlanarCrvIndAreaCentroids** - Creates individual area centroids for each closed planar curve selected.
-Creates individual area centroids for each closed planar curve selected.+
  
-==CopyToPt== +**CopyToPt** - Copies several objects to selected points at the same time. (Original idea by [[people:​davidrutten|Gelfling aka David Rutten]])
-Copies several objects to selected points at the same time.+
  
-(Original idea by [[people:​davidrutten|Gelfling aka David Rutten]] )+**CSec2** - Automatically creates open curves from the intersection between given cross-section and profile curves.
  
-==CSec2== +**DigDisconnect** ​Runs the DigDisconnect command with a secure confirmation box.
-Automatically creates open curves from the intersection between given cross-section and profile curves.+
  
-==DigDisconnect== +**EncloseCrvs** - Encloses open planar curves inside ​closed planar curve boundary.
-Runs the DigDisconnect command with secure confirmation box.+
  
-==EncloseCrvs== +**ExtendCrvs** - One of the most useful scripts I've ever written: extend several ​curves ​at the same time.
-Encloses open planar ​curves ​inside a closed planar curve boundary.+
  
-==ExtendCrvs== +**IndAreaCentroids** - Creates individual area centroids for each srf or polysrf selected.
-One of the most useful scripts I've ever written: extend several curves at the same time.+
  
-==IndAreaCentroids== +**IndBoundingBoxes** - Creates individual ​bounding boxes for each object ​selected.
-Creates individual ​area centroids ​for each srf or polysrf ​selected.+
  
-==IndBoundingBoxes== +**IndProjBB** - Creates ​projected to Cplane ​bounding boxes for each object selected.
-Creates ​individual ​bounding boxes for each object selected.+
  
-==IndProjBB== +**InvBottom** - Sets an Invert Bottom view in any Rhino document.
-Creates projected to Cplane bounding boxes for each object selected.+
  
-==InvBottom== +**InvTop** - Sets an Invert ​Top view in any Rhino document.
-Sets an "Invert ​Bottom" ​view in any Rhino document.+
  
-==InvTop== +**InvDel** - Simply inverts selection and deletes remaining objects with a secure confirmation box.
-Sets an "​Invert Top" view in any Rhino document.+
  
-==InvDel== +**OffsetCrvs** ​Offsets more than one curve at the same time, including ​ ​BothSides ​ option.
-Simply inverts selection and delete remaining objects ​with secure confirmation box.+
  
-==OffsetCrvs== +**OriBB** - Creates an oriented Bounding Box accordingly to 3pt Cplane(Thanks for the help, Pascal!)
-Offsets more than one curve at the same time, including ​ "​BothSides" ​ option.+
  
-==OriBB== +**Orient2pt_pivot** - The orient command with pivot point (same first point on both reference and target).
-Creates an oriented Bounding Box accordingly to 3pt Cplane. ​(Thanks for the help, Pascal!)+
  
-==Orient2pt_pivot== +**ProjBB** - Also extremely useful: creates ​Projected To Cplane Bounding Box.
-The orient command with pivot point (same first point on both reference and target).+
  
-==ProjBB== +**QuadMirror** - Mirror an object twice, first horizontally and then vertically, using the origin, resulting in four equal objects(Hmmm...is this clear enough?)
-Also extremely useful: creates a Projected To Cplane Bounding Box.+
  
-==QuadMirror== +**RenderColor** - Quickly changes ​the render/​material color of objects.
-Mirror an object twice, first horizontally and then vertically, using the origin, resulting in four equal objects.+
  
-(Hmmm...is this clear enough?)+**ResetBothColors** - Re-assigns both wireframe and render/​material color of objects as By Layer.
  
-==RenderColor== +**ResetColor** - Re-assigns ​the wireframe ​color of objects ​as By Layer.
-Quicly changes ​the render/​material ​color of objects.+
  
-==ResetBothColors== +**ResetRenderColor** - Re-assigns render/​material color of objects as By Layer.
-Re-assigns ​both wireframe and render/​material color of objects as "By Layer".+
  
-==ResetColor== +**SelCrvInPlane** ​Selects only the planar curves in a model that coincides with the active CPlane.
-Re-assigns ​the wireframe color of objects as "By Layer".+
  
-==ResetRenderColor== +**SelPlanar**
-Re-assigns render/​material color of objects as "By Layer"​.+
  
-==SelCrvInPlane== +**SelPlanarPolysrf**
-Selects only the planar curves in a model that coincides with the active CPlane.+
  
-==SelPlanar==+**SelPlanarSrf**
  
-==SelPlanarPolysrf==+**ShowE** - All objects of the model on the screen - basically unlocks and shows everything.
  
-==SelPlanarSrf==+**Txt2Crv** - Transforms text objects in curves.
  
-==ShowE== +**UndoViewChangeInAllViewports**
-All objects of the model on the screen - basically unlocks and shows everything.+
  
-==Txt2Crv== +**WireColor** - Quickly ​changes the wireframe color of objects.
-Transforms text objects in curves. +
- +
-==UndoViewChangeInAllViewports== +
- +
-==WireColor== +
-Quicly ​changes the wireframe color of objects.+
  
 ===== Workspace===== ===== Workspace=====
Line 125: Line 91:
 [[rhino:​basicmacros|Macros]] are usually quite easy and simple. Here are some of mine: [[rhino:​basicmacros|Macros]] are usually quite easy and simple. Here are some of mine:
  
-==New file using template== +**New file using template** - Just replace YOURTEMPLATE with the real name of the template wanted.
-Just replace YOURTEMPLATE with the real name of the template wanted.+
  
  
-==_New YOURTEMPLATE==+**_New YOURTEMPLATE**
  
-==SelColor+Hide & SelColor+InvHide==+**SelColor+Hide & SelColor+InvHide**
  
-==_SelColor==+**_SelColor** 
 _pause _pause
 _Hide _Hide
  
-==_SelColor==+**_SelColor**  ​
 _pause _pause
 _Invert _Invert
Line 143: Line 108:
  
  
-==Set the Default layer on== +**Set the Default layer on** - You obviously must have a layer named default.
-You obviously must have a layer named "default".+
  
-==-_OneLayerOn Default== +**-_OneLayerOn Default**
- +
- +
-==Open the Units Tab in Document Properties page==+
  
  
 +**Open the Units Tab in Document Properties page**
 '​_NoEcho '​_NoEcho
 '//​DocumentPropertiesPage //Units '//​DocumentPropertiesPage //Units
  
  
-==Set the Gradient View ON in all viewports & Set the Gradient View OFF in all viewports==+**Set the Gradient View ON in all viewports & Set the Gradient View OFF in all viewports**
  
-==_NoEcho==+**_NoEcho**
 -GradientView -GradientView
 View View
- 
 Enter Enter
  
-==_NoEcho==+**_NoEcho**
 -GradientView -GradientView
 View View
- 
 State State
- 
 Enter Enter
  
-==Show Wireframes on render & Don't show wireframes on render== +**Show Wireframes on render & Don't show wireframes on render** - It works only with TreeFrog as the current renderer .
-It works only with TreeFrog as the current renderer .+
  
-==_NoEcho==+**_NoEcho**
 -_DocumentProperties -_DocumentProperties
 _TreeFrog _TreeFrog
Line 184: Line 142:
 _Echo _Echo
  
-==_NoEcho==+**_NoEcho**
 -_DocumentProperties -_DocumentProperties
 _TreeFrog _TreeFrog
Line 195: Line 153:
  
  
-==Blend curve: tangent - position continuity== +**Blend curve: tangent - position continuity** - Creates a blend curve using G1 and G0 continuities in the first and last input, respectively. You can use this macro as a model to create other continuity combinations.
-Creates a blend curve using G1 and G0 continuities in the first and last input, respectively.+
  
-You can use this macro as a model to create other continuity combinations. +**_Blend**
- +
-==_Blend==+
 continuity=tangency continuity=tangency
- 
 _pause _pause
 continuity=position continuity=position
Line 208: Line 162:
  
  
-==Line: Perpendicular from Curve, Both Sides from First Point==+**Line: Perpendicular from Curve, Both Sides from First Point**
  
-== Line Perpendicular==+**Line Perpendicular**
 _BothSides _BothSides
 _pause _pause
Line 217: Line 171:
  
  
-==Mark Both Curve Start and End==+**Mark Both Curve Start and End**
  
-== _NoEcho==+**_NoEcho**
 _CrvStart _CrvStart
 _CrvEnd _CrvEnd
Line 234: Line 188:
  
  
-**[[gcwebster36@gmail.com|contact]]**+**[[gcwebster36@gmail.com|Contact]]**
people/gcwebster.txt · Last modified: 2016/04/19 by sandy