×
热门分类
微信扫码登陆

QQ登录

只需一步,快速开始

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即加入SketchUp吧! 微信扫码登陆

x
Sketchup.send_action
可以执行一些命令到消息队列。
result = Sketchup.send_action "selectArcTool:" 返回 true 则成功,false则失败。
记住这些数值真的很困难,Sketchup.display_name_from_action 会提供一个比较友好的方法,你可以自定义显示的名称。 例如:vr=Sketchup.display_name_from_action("viewRight:"),此时 vr 为 10503,然后用Sketchup.send_action vr 即可。

可用的命令有:showRubyPanel:
viewBack:
viewBottom:
viewFront:
viewIso:
viewLeft:
viewRight:
viewTop:
viewPerspective:
viewShowAxes:
viewShowHidden:
viewZoomExtents:
viewZoomToSelection:
viewUndo:
selectOrbitTool:
selectPositionCameraTool:
selectDollyTool:
selectTurnTool:
selectWalkTool:
selectZoomTool:
selectFieldOfViewTool:
selectZoomWindowTool:
pageAdd:
pageDelete:
pageUpdate:
pageNext:
pagePrevious:
renderWireframe:
renderHiddenLine:
renderMonochrome:
renderShaded:
renderTextures:
selectArcTool:
selectAxisTool:
selectCircleTool:
selectEraseTool:
selectFreehandTool:
selectLineTool:
selectMeasureTool:
selectMoveTool:
selectOffsetTool:
selectPaintTool:
selectPolygonTool:
selectProtractorTool:
selectPushPullTool:
selectRectangleTool:
selectRotateTool:
selectScaleTool:
selectSectionPlaneTool:
selectTextTool:
selectDimensionTool:
selectExtrudeTool:
selectSelectionTool:
editUndo:
editRedo:
editHide:
editUnhide:
fixNonPlanarFaces:
addBuilding:
getPhotoTexture:
selectImageIglooTool:
selectNorthTool:

在PC电脑中,你可以使用一些数值来操作(不保证未来的版本中支持这些数字):
10501: set view to Top
10502: set view to Front
10503: set view to Rear
10504: set view to Left
10505: set view to Right
10506: set view to Bottom
10507: set view to Axonometric
10510: set render mode to Wire
10511: set render mode to Hidden lines removal
10512: set render mode to Surfaces Shading
10513: set render mode to Transparency
10519: set camera to ortho (removes perspective)
10520: walk tool
10521: display the System Preferences dialog box (Files tab)
10522: removes axes display
10523: pan tool
10525: set the interactive eye height feature
10526: zoom window
10527: zoom extents
10529: zoom out 2
10531: toggle the Standard toolbar
10532: toggle the Camera toolbar
10533: display the Shadows Settings dialog box
10537: toggle the Views toolbar
10538: display the System Preferences dialog box (Display tab)
10545: toggle Color ByLayer
10546: toggle Shadows toolbar
10551: toogle Large icons
10576: toggle Render Mode toolbar
10596: set Render Mode to No Transparency (Preferences)
10597: set Render Mode to Wire (Preferences)
10598: set Render Mode to Transparency (Preferences)
10599: set Render Mode to Surfaces Shading (Preferences)
10600: set Render Mode to Texture (Preferences)
10601: set Render Mode to No Texture (Preferences)
10602: toggle Shadows
10603: toggle Profiles
10604: toggle Extension Lines
10605: toggle Jitter edges
21019: hide Status bar and VCB
21020: show Status bar and VCB
21022: hide Status bar and VCB
21023: place 3d text box
21024: select the Measure tool
21031: select the Freehand Draw tool
21041: select the PushPull tool
21048: select the Move tool
21052: hide selected objects
21056: create face with selected edges closed loop
21057: select the Protractor tool
21060: display Components Window
21061: toggle Draw toolbar
21063: toggle Model Bounding Box display
21065: select the Arc tool
21067: creat a new Page
21074: show the Materials Browser Window
21076: display the Preferences dialog box (Text activated)
21077: display the Tip of the day Window
21078: select the Paint Bucket tool
21080: display the Page Manager Window
21082: display the Macros Dialog Box
21086: display the Components Browser Window
21094: select the Rectangle tool
21095: select the Polygon tool
21096: select the Circle tool
21098: open the Open Window
21100: select the Offset tool
21101: slect all objects
21112: open the Import Window
21124: launch the validity check tool
21126: select the Axes tool
21029: select the Rotate tool
21032: toggle Layer toolbar
21036: display the Save as Window
21046: spin the model a full 360° and display report
21047: fast Pick Time report
21049: open the Export model Window
21169: select the Position Camera tool
21170: display the Preferences, Tour Guide activated
21180: create a new Page just right of selected page
21200: display the Insert Image Window
21233: display Area of selected face
21234: display Area of all faces with selected material
21236: select the Scale tool
21237: display the Export 2D Graphics Window
21245: display a Polygon Offset Factors dialog box
21276: reverse selected face(s)
21287: select the Divide feature
21337: select the Section Plane Placement tool
21354: open the Layer Window
21386: open the Export Animation Window
21405: select the Text tool
21406: display Fog dialog box
21410: select the Dim tool
21433: toggle Edit toolbar
21442: select the FollowMe tool
21448: select the Axes tool
21453: select all objects
21460: display Licence
21462: display Authorization dialog box
21463: display un-authorizing message
21464: display Open Licence files (Network) Window
21466: display Quick reference Card in Adobe Reader
21467: display Licences in use dialog box
21469: zoom extents to selected objects
21476: perform a non-planar check on selected objects
21477: list accelerators in window
21485: erase selected objects
21487: display Edit current material dialog box
21485: erase all new created pages
21488: display Entity Info Window
21490: display Soften Edges Window
21491: display Profiles
21492: display Extended Edges
21493: display Jitter Lines
21494: select Field of view tool
21513: display the outliner
21520: override Tile Rendering Size dialog box
21525: select the FollowMe tool
21542: display the Insert Image Window
21560 and up: causes a runtime Error
超级讲吧

精彩评论

文明上网理性发言、请文明用语

成为第一个回答人

ODM

网站创始人

  • 主题

    128

  • 吧币

    218830

  • 红宝石

    1129

关闭

站长推荐上一条 /1 下一条

发布主题 快速回复 返回列表 客服中心 搜索 官方QQ群
关于我们/小黑屋/手机app/国土人/SketchUp吧 /京ICP备16008035号/