mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 06:31:32 +00:00
28 lines
2.2 KiB
Plaintext
28 lines
2.2 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 MoveLinear\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 8.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Parameters, Elements\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Move an element which is based on Line.\line\b Summary:\b0 \line This sample demonstrates how to move element which is based on a Line.\par
|
|
\par
|
|
\b Classes:\par
|
|
\pard\ltrpar\nowidctlpar\fi360\b0 Autodesk.Revit.UI.IExternalCommand\f1\tab\f0 \par
|
|
Autodesk.Revit.DB.LocationCurve\f1\par
|
|
\f0 Autodesk.Revit.Creation.Application\par
|
|
Autodesk.Revit.DB.Curve\par
|
|
\pard\ltrpar\nowidctlpar\f1\par
|
|
\b\f0 Project Files:\b0 \par
|
|
Command.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720\f0 This file contains the class \ldblquote Command\rdblquote which inherits from \ldblquote IExternalCommand\rdblquote interface and implements the \ldblquote Execute\rdblquote method\f1 .\f0 The movement operation is implemented in \ldblquote Execute\rdblquote method.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Description:\b0 \par
|
|
This sample demonstrates the following functionality:\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 -\tab How to move an object based on a curve\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\f0 Implementations:\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 -\tab This movement can be done via properties \ldblquote Autodesk.Revit.Element.Location\rdblquote and \ldblquote Autodesk.Revit.LocationCurve.Curve\rdblquote\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\li360\par
|
|
\pard\ltrpar\nowidctlpar\b\f0 Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Draw a line\f1 ,\f0 Wall or Beam which is based on a Line.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Select an object, and run the command.\par
|
|
3.\tab After returning to Revit, it is obvious that the selected object has been moved to a new location in the view.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
}
|
|
|