CAD开发者社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

AutoCAD 2022 开发者帮助

Acad.Editor.getKeywords 函数

2024-5-31 20:11| 发布者: admin| 查看: 169| 评论: 0|原作者: admin|来自: AutoCAD

Acad.Editor.getKeywords 函数

Acad.Editor.getKeywords 函数

文件

Autodesk.AutoCAD.js

语法

JavaScript的

function Acad.Editor.getKeywords(options);

ACAD 命名空间

参数

参数 描述
选项 类型为 Acad.PromptKeywordOptions

返回

Acad.Prompt结果

描述

使用此函数获取关键字作为用户输入。它包装 ObjectARX 函数。acedGetKword()

AutoCAD 用户可以从键盘输入关键字。接受的关键字列表由先前对 的调用设置。如果用户输入的字符串未在调用 中指定,AutoCAD 将显示错误消息并重试(如果指定了提示,则重新显示提示)。如果用户按 Enter,则返回空字符串 (“”),除非对 的调用也不允许 null 输入。GetKeywords()GetInteger()GetInteger()GetKeywords()GetInteger()

此函数返回 promise 模式结果,它必须在 Promise Pattern 中与函数一起调用。.then(onSuccess, onError)

例外

抛出一个物体。TypeError

ACAD 命名空间


路过

雷人

握手

鲜花

鸡蛋

最新评论

群   号:715888130

QQ|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1   苏公网安备32011402011833)

GMT+8, 2025-7-1 17:38

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部