Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

scale curve revit api

public void ScaleCurves()
{
  CurveArray cArray = PrepareCurveArray();
 
  Transform x = Transform.Identity;
  x = x.ScaleBasis( 1.0 / 12.0 );
 
  int numCurves = cArray.Size;
  for( int i = 0; i < numCurves; ++i )
  {
    Curve curve = cArray.get_Item( i );
 
    Curve newCurve = curve.get_Transformed( x );
 
    cArray.set_Item( i, newCurve );
  }
 
  WriteProfile( "After transformation", cArray );
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: RemoveClaim 
Csharp :: create star rating using loop in c# 
Csharp :: Open Windows Explorer to a certain directory from within a WPF app 
Csharp :: TTTTTTTTTTTTTTTTTTTTESTTT 
Csharp :: unity having virtual start 
Csharp :: AutoFixture ignore property 
Csharp :: c# compare char arrays 
Csharp :: unity button text changes when clicked 
Csharp :: c# .net calculate md5 
Csharp :: c# check word length 
Csharp :: conevrt list to pipe separated string c# 
Csharp :: how to authorize token when consuming api in c# 
Csharp :: how to coppy a portion of an array in c# 
Csharp :: vb.net delete a line from text file 
Csharp :: vb.net how insert event inside an event 
Csharp :: find first occurrence of character in string 
Csharp :: c# enum to string 
Csharp :: shallow copy vs deep copy c# 
Csharp :: c# web scraping get images from specific url 
Csharp :: c sharp or operator in if statement 
Csharp :: convert string to int tryparse c# 
Csharp :: ik nothing is happening unity 
Csharp :: webbrowser control feature_browser_emulation compatible 
Html :: You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0). 
Html :: font awesome icon 6 cdn 
Html :: rs logo html 
Html :: autoredirect html 
Html :: space character in react html 
Html :: html5 embed pdf base64 
Html :: html5 pattern for numbers only 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =