Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5884

How can I script user select to run a linked rsCommand?

$
0
0

@CalypsoArt wrote:

I haven’t played with coding since Basic and Pascal in the late '80’s. However, Id like to create a script to change the scale in Layout Details. Pascal Golay provided me with the Rhino commands and I’ve made a start that works.

“”“Allows the selection of Scales for Detail Viewports”""

import rhinoscriptsyntax as rs
import scriptcontext as sc
import Rhino

“”"(1/4"=1’-0)"""
rs.Command ("! _Detail Scale _Pause 1 48 _EnterEnd")


However, this is only for 1/4" =1’-0". I’d like to get options. I’d like that after selecting the DETAIL, I would get a select-able choice (1/8"), (1/4"), etc. And clicking on it would call/run the appropriate rs.Command for the scale I want.

I realize there are probably better ways to do this. Anyway I’m hoping some one here point me to info on syntax for creating the input selection, and how to link that input to the correct scale rs command.

(I also have no idea how the text above got changed in size or how to fix it.)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5884

Trending Articles