Skip to content

Instantly share code, notes, and snippets.

View sheetd's full-sized avatar

Neil Meredith sheetd

  • New York
  • 18:30 (UTC -04:00)
View GitHub Profile
// 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)
// 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" , "")
// 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)
@sheetd
sheetd / Env.txt
Created August 2, 2017 13:36
CATEnv
!----------------------------------------------------------
! DASSAULT SYSTEMES - ENVIRONMENT FILE
!----------------------------------------------------------
! MODE : Global
! PRODUCT LINE : COMMON
! TMSTMP : 1483632277
! ARGS :
! MARKETING VERSION :
!----------------------------------------------------------
// 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>"
// 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() )
let F (Feature)
let i , j , k (Integer)
i = 1
j = 1
k = 1
// Inputs
// Loop for Row
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)
import sys
print(sys.platform)
x='text!'
print (x*9)