This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
print(sys.platform) | |
x='text!' | |
print (x*9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let CRV (Curve) | |
let PL (Plane) | |
let PTMove, PT1 , PT2 (Point) | |
let i (Integer) | |
i =1 | |
for i while i <= Const\STF\Parameters\Count { | |
CRV = CreateOrModifyDatum("Curve" , Const\STF\Curves , `Const\STF\Relations\KP_Curves\List.Curves` , i) | |
PTMove = pointoncurve(Const\STF\Const\Centerline\CRV_CL , Const\STF\Const\Centerline\PT_Seed ,(i-1)*STF\StiffSpacing , true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let F (Feature) | |
let i , j , k (Integer) | |
i = 1 | |
j = 1 | |
k = 1 | |
// Inputs | |
// Loop for Row |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extracts vertices from a polyline. Used on SNC Framing template | |
let crvInput (GeometricFeature) | |
let listInput (List) | |
let mySeg (Curve) | |
let i (Integer) | |
// Select segments form polyline | |
crvInput = Wireframe\Vert\CRV_VertMid | |
set listInput = crvInput.GetSubElements(1 , false) | |
Notify("segments: #", listInput.Size() ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Searches for string in tree, then renames all parts/shapes/drawings to new value | |
let root (VPMReference ) | |
let allInstances(List) | |
let vpmInst (VPMInstance ) | |
let shapeRep (VPMRepInstance ) | |
let dwg (Drawing ) | |
let newInstanceName, newDwgName, new3DShapeName (String) | |
let toReplace = "<REPLACE>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!---------------------------------------------------------- | |
! DASSAULT SYSTEMES - ENVIRONMENT FILE | |
!---------------------------------------------------------- | |
! MODE : Global | |
! PRODUCT LINE : COMMON | |
! TMSTMP : 1483632277 | |
! ARGS : | |
! MARKETING VERSION : | |
!---------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Action to instantiate Document Templates and set attributes | |
//let rootProduct (VPMReference) //Defined in Action dialog | |
//let gs (OpenBodyFeature) //Defined in Action dialog | |
let curGS (OpenBodyFeature) | |
let listCurveLong , listCurveShort , listAxs (List) | |
let mySurf (Surface) | |
let DT (Feature) | |
let i , j , k (Integer) | |
let axsName (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Outputes attributes (length in this case) of a feature to the console | |
// Let myGS (OpenBodyFeature) | |
Let myList (List) | |
Let myFeature (Curve) | |
Let myLength (Length) | |
Let sID (String) | |
Let i (Integer) | |
myList = myGS.Query("Curve" , "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creates input curves based on point intersection (VIK) | |
let listAllCurves, listLocalCurves (List) | |
let ptCenter (Point) | |
let myCurve (Curve) | |
let i, k (Integer) | |
let P (Point) | |
let myAngle (Angle) | |
let listPointsUnsorted, listPointsSorted (List) | |
let F (Feature) |