• Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

Export spline points

Scheduled Pinned Locked Moved CAD Modeling
python
3 Posts 2 Posters 137 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LJ
    wrote on last edited by Sylvain
    #1

    Hi, Does anyone know how to use the python interface to export the locations of the points making up a spline that I manually drew on a model?

    Thanks!

    1 Reply Last reply
    0
  • SylvainS Offline
    SylvainS Offline
    Sylvain ZMT
    wrote on last edited by
    #2

    hi,
    something like that might work:

    import s4l_v1.model as model
    
    spline = model.AllEntities()['Spline 1']
    points = [p.Value for p in spline.Parameters.Points]
    
    print(points)
    
    1 Reply Last reply
    1
  • L Offline
    L Offline
    LJ
    wrote on last edited by
    #3

    That worked- thanks a lot!

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Search