LocaleID 属性 (ActiveX) 
获取当前 AutoCAD 任务的区域设置 ID。 支持的平台:仅限 Windows 属性值只读:是的 类型:长 当前 AutoCAD 进程的区域设置 ID。 言论区域设置 ID 由操作系统定义。 例子VBA: Sub Example_LocaleID()
    ' This code retrieves the Locale ID and displays it in a message box
    MsgBox "The locale ID is " & ThisDrawing.Application.LocaleId, , "LocaleID Example"
    
End Sub
可视化 LISP: (vl-load-com)
(defun c:Example_LocaleId()
    ;; This code retrieves the Locale ID and displays it in a message box
    (setq acadObj (vlax-get-acad-object))
    (setq doc (vla-get-ActiveDocument acadObj))
    (alert (strcat "The locale ID is " (itoa (vla-get-LocaleId acadObj))))
)
 | 
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1   苏公网安备32011402011833)
GMT+8, 2025-11-4 15:06
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.