C# Class RevitLookup.Test.SDKSamples.StructuralSample.StructSample

.Net sample: StructSample. This command places a set of coulmns in the selected wall. /// Note that Revit uses Feet as an internal length unit. (1) Draw some walls, and constrain their top and bottom to the levels in the properties dialog. (2) Run the test. It will place columns along each wall with the interval of 5 feet. (The interval is also hard coded.)
Show file Open project: jeremytammik/RevitLookup Class Usage Examples

Public Methods

Method Description
ExecuteStructSample ( ) : System.Boolean

StructSample ( Autodesk app, ICollection ids ) : System

Private Methods

Method Description
ACos ( double d ) : double

FrameWall ( Autodesk rvtApp, Autodesk wall, double spacing, FamilySymbol columnType ) : void

Frame a wall.

PlaceColumn ( Autodesk rvtApp, System.Windows.Forms.Document rvtDoc, Autodesk point2, double angle, FamilySymbol columnType, ElementId baseLevelId, ElementId topLevelId ) : void

Create a column instance and place it on the wall line.

VecAngle ( UV va, UV vb ) : double

VecDot ( UV va, UV vb ) : double

VecLength ( UV v ) : double

VecNormalise ( UV v ) : UV

Method Details

ExecuteStructSample() public method

public ExecuteStructSample ( ) : System.Boolean
return System.Boolean

StructSample() public method

public StructSample ( Autodesk app, ICollection ids ) : System
app Autodesk
ids ICollection
return System