Move Normal

Move Normal is a command that has been included in Rhino 7, right?
Do you have a sample source?

The Move command has a Normal option.

I know.
I would like to add Normal to the command options of a plugin I am working on, so I would like to have the sample source for MoveNormal.

Here is a C# sample that demonstrates how to move objects:

SampleCsMove.cs

To move normal to a surface, first determine the normal direction using Surface.NormalAt. Then based the translation transformation on this vector.

– Dale

Thank you so much:)

Is it the same theory as OrientOnSrf to select the target surface and move the object in the normal direction?

Hi @jack3,

A Circle has a Plane property, and a Plane has a Normal property. Base the translation transformation on this vector.

– Dale