DBWIsDeniedFeature

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > DBWARM >

DBWIsDeniedFeature

Description

Returns the DBWorks access right state for the assigned feature code.

Syntax

Function DBWIsDeniedFeature(FeatureCode)

Parameters

You can find below the referende guide for FeatureCod.

General

modify_options = 1
list_locked = 2
explore = 59

Creation

active_document_save_as = 3
active_document_insert_new_component = 4
add_document = 5
new_sub_project = 46
new_bom_item = 47

Modification

open_for_updating = 6
edit_data_part = 7
edit_data_project = 8
edit_data_generic = 9
edit_variant_note = 10
replace_referenced = 11
rename = 12
detach_parent_from_child = 41
allow_delete_in_open_for_browsing = 119
add_attachment = 120
delete_files = 122

Visualization/Open

view_data = 61
open_files = 62
open_files_with = 121

Outputs

plot = 13
plot_all = 14
print_all = 15

Projects

create_new_project = 18
add_remove_project = 19
add_all_to_project = 20
remove_all_from_project = 21
project_users_assignment = 36
project_documents_assignment = 58

Revisions

create_new_revision = 22
approve_revision = 23
activate_restore_revision = 24
checkout_checkin = 25
freeze = 26
create_first_revision = 27
increment_revision = 28
approve_previous_revision = 113
create_new_major_revision = 115
cannot_checkin_if_checked_out_by_other = 116
uncheckout_uncheckin = 117
rollback_revision = 118

Scripts

execute_vbs = 29
execute_sql = 30
backup = 31

System

printer_setup = 32
plot_setup = 33
event_log = 34
reset_event_log = 35

Queries

load = 37
save = 38
modify = 39
run = 40

Remote Access

delete_local_copy = 42
download = 43
refresh_downloaded_components = 44
take_ownership = 45
remote_access_transfer_ownership = 114

BOM

bom = 16
buy_list = 17
change_quantity = 48
change_bom_position_numbers = 60

WorkFlow

eco = 49
eca = 50
reset = 51
super_admin = 54

Briefcase

read = 52
write = 53

WebViewer

can_download_cad_documents = 55
can_view_a_documents_record = 56
can_view_BOM = 57
webviewer_ex_custom_right_1 = 81
webviewer_ex_custom_right_2 = 82
webviewer_ex_custom_right_3 = 83
webviewer_ex_custom_right_4 = 84
webviewer_ex_custom_right_5 = 85
webviewer_ex_custom_right_6 = 86
webviewer_ex_custom_right_7 = 87
webviewer_ex_custom_right_8 = 88
webviewer_ex_custom_right_9 = 89
webviewer_ex_custom_right_10 = 90
webviewer_ex_custom_right_11 = 91
webviewer_ex_custom_right_12 = 92
webviewer_ex_custom_right_13 = 93
webviewer_ex_custom_right_14 = 94
webviewer_ex_custom_right_15 = 95
webviewer_ex_custom_right_16 = 96

SuperAdmin

USE_EXTENDED_CODES = 63
super_admin = 64
ex_custom_right_1 = 65
ex_custom_right_2 = 66
ex_custom_right_3 = 67
ex_custom_right_4 = 68
ex_custom_right_5 = 69
ex_custom_right_6 = 70
ex_custom_right_7 = 71
ex_custom_right_8 = 72
ex_custom_right_9 = 73
ex_custom_right_10 = 74
ex_custom_right_11 = 75
ex_custom_right_12 = 76
ex_custom_right_13 = 77
ex_custom_right_14 = 78
ex_custom_right_15 = 79
ex_custom_right_16 = 80
ex_custom_right_17 = 97
ex_custom_right_18 = 98
ex_custom_right_19 = 99
ex_custom_right_20 = 100
ex_custom_right_21 = 101
ex_custom_right_22 = 102
ex_custom_right_23 = 103
ex_custom_right_24 = 104
ex_custom_right_25 = 105
ex_custom_right_26 = 106
ex_custom_right_27 = 107
ex_custom_right_28 = 108
ex_custom_right_29 = 109
ex_custom_right_30 = 110
ex_custom_right_31 = 111
ex_custom_right_32 = 112

Return values

1

if it is a denied feature

0

otherwise

Example

code = 18
if DBWIsDeniedFeature(code) then
 msgbox "Permission denied!"
else
 msgbox "Ok!"
end if