登入區塊
帳號:

密碼:


遺失密碼?
我要註冊!
相關連結

簡繁切換 切換為簡體
誰在線上區塊
線上目前共1
(1人在瀏覽REVIT技術論壇)

會員: 0
訪客: 1

尚有...
搜尋區塊
輪播區塊
REVIT CLUB-普通用戶模式下如何使用API應用程式 [REVIT技術論壇 - 小秘訣&技巧]
本站首頁 聯絡管理員

正在瀏覽:   1 名遊客





普通用戶模式下如何使用API應用程式

註冊日期:
2006/9/26 17:44
來自 中華民國 台灣台北
帖子: 2052
離線
在使用REVIT 2009系列產品時,可能會因為登入權限問題,造成無法執行API程式的狀況
如果用戶不能使用本機管理員權限執行REVIT程式,可以請MIS協助,透過下列方法解決
一、提高用戶權限
二、由管理者權限安裝/設定
先以系統管理員身份登入並執行以下幾個步驟:
(1)安裝Revit。
(2)將Revit安裝目錄及其子目錄的所有檔設置為所有用戶可以完全控制。
(3)編輯Revit安裝目錄Program子目錄下的Revit.ini檔,增加以下文字:
 [API]
 UnregisterOnExit=0
(4)安裝第三方基於Revit API的應用程式。
(5)執行Revit並執行一次API外掛程式,確保它可以正常執行。
之後就可以用一般用戶權限登入,並測試該API外掛的執行狀況。

完整原文如下:
Autodesk Revit Architecture / Structure / MEP 2009
API Tech Note
Working with User and Administrative privileges and the Autodesk Revit API
Overview
As of Autodesk Revit Building 9 / Structure 3 Beta 2 / MEP 2008 the Revit API will permit users with less than Power User status to execute external commands. This document will explain how system administrators can set Autodesk Revit to support this behavior and also how users will be notified if the system administrator has not set such support.
Current Problem
When Autodesk Revit is run by a user with insufficient registry privileges and external commands are present, the application will fail to run correctly.
Reason
To keep the registry clean, Autodesk Revit only populates the registry with API related details on start up of the main application. It also unregisters and removes these entries on exit thus keeping the registry as clean as possible. This permits multiple versions of Autodesk Revit to run on any given machine without issue.
Solutions & Workarounds
There are two known solutions to this problem at this time:
1. Increase the privileges of the user such that they are a Power User or higher.
2. Have a system administrator set Autodesk Revit not to remove the registry information at the end of their session. Details of this option are given below:
Multi User Revit API Pre Setup
While the system administrator is setting the machine for a standard user use, the steps below can be taken to ensure that the external commands will work successfully without the standard user’s intervention:
System Administrator

1. Install Autodesk Revit.
2. Set the file access rights to the Autodesk Revit installed directory and its sub directories and file to Full Control for all users. (This is standard procedure for Autodesk Revit multi user installations.)
3. Edit the Revit.ini file and add the following lines:
[API]
UnregisterOnExit=0
4. Install the 3rd Party API based applications and any associated links.
5. Run Autodesk Revit and execute the external command to ensure that it is working.

At this point the system administrator can log out and provide the machine to the standard user who should be able to execute external commands without issue.
Multi User Revit API Post Setup.
If the system administrator is not aware of the above approach and installs Autodesk Revit for multi user use in the recommended manner the following chain of events will occur and procedure will need to be taken.
Standard User
1. When the user logs on and attempts to use Autodesk Revit, they will be notified that they have insufficient privileges to execute API commands and must have the system administrator log on and start Autodesk Revit. When the user has seen this message, Autodesk Revit will automatically write the UnregisterOnExit=0 entry into the Revit.ini file. (Note : user must have sufficient files privileges to do so).
2. The user can continue their use of Autodesk Revit if they desire however the external commands will not function.
3. The user ends the session of Autodesk Revit and logs off.
System Administrator
4. The system administrator logs on.
5. The system administrator runs Autodesk Revit. At this point the API will fully register in the system registry.
6. The system administrator exits Revit. Normally Revit would clean all of its entries from the system registry, but since the UnregisterOnExit=0 the entries are not removed.
7. The system administrator can log off and the user log on and use Revit. The external commands will function.

2009/5/19 2:09
_________________
請大家提問時寫出使用的環境,例如:Windows 10 20H2、Revit 2021.1.7...
提問時請盡量提供截圖、錯誤訊息、問題檔,以玆判斷!
如問題已解決,也請協助修改標題為[已解決]
,謝謝...
應用擴展 工具箱







[進階搜索]


Copyright © 2007. www.revit.com.tw 為協勤資訊提供之網站,請尊重所有文章原創者之著作權,勿任意轉載!謝謝。
Theme Design by IMAGO:THEMES.