+ Reply to Thread
Results 1 to 5 of 5

Thread: "PullCurve" - Workaround via Command-Line ?

  1. #1

    "PullCurve" - Workaround via Command-Line ?

    Hi,
    I would like to use the command "PullCurve" in a RhinoPython-Script, but the help tells me that it's not implemented yet. I can do a workaround by using "PullPoints" and fit a curve or "PullCurveToMesh" if I convert my surface to a mesh, pull, convert mesh to surface...

    I was thinking: Is there a way to directly call commands on the command-line, similar to the AutoCad's AutoLisp (Command "") functionality? Or to call a macro from a script?

    Thanks!
    Bernhard

  2. #2
    Hi Bernhard,

    with rs.Command() you can call any Rhino Command.
    In your Case rs.Command(_Pull) then add all parameters as strings like here:
    Python Code:
      rs.Command ("_DimAngle _SelID "+line01+" _SelID "+line02)

    Best,
    grischa

  3. #3
    Thanks! Works great, although I have problems when finishing a command by ending a selection
    >> rs.Command("_Enter")
    doesn't seem to do the trick.

  4. #4
    Hi berndbla,

    try rs.Command(" _Enter"). So with a whitespace between " and _.

  5. #5
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    I also just added PullCurve to rhinoscriptsyntax so the function will be available in the next V5 beta.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts