-- EXEC MIG_INSERT_AUTOCAD_MAPPING_INFO_Sp
CREATE PROCEDURE MIG_INSERT_AUTOCAD_MAPPING_INFO_Sp
AS
BEGIN
	
	DELETE FROM MIG_PROP_NAMES_MAPPING WHERE AppName = 'AUTOCAD'
	
	INSERT INTO MIG_PROP_NAMES_MAPPING(AppName, Category, PropName, PropDescription, ControlType, LegacyPropName) 
	VALUES
	 ('AUTOCAD', 'LOCATIONS', 'a027', 'Edit Location', 'Text And Browse Button', 'EDIT_LOCATION')
	,('AUTOCAD', 'LOCATIONS', 'a028', 'View Location', 'Text And Browse Button', 'VIEW_LOCATION')
	,('AUTOCAD', 'INITAL_SAVE_OPTION', 'a023', 'Set Object Attribute During Save', 'Check Box', 'SET_ATTRIBUTES_MANUALLY')
	,('AUTOCAD', 'INITAL_SAVE_OPTION', 'a024', 'Specify Manual ID for Documents', 'Check Box', 'DOCUMENT_MANUAL_ID')
	,('AUTOCAD', 'INITAL_SAVE_OPTION', 'a025', 'Specify Manual ID for Items', 'Check Box', 'ITEM_MANUAL_ID')
	,('AUTOCAD', 'INITAL_SAVE_OPTION', 'a026', 'Create Documents Only', 'Check Box', 'CREATE_DOCUMENTS_ONLY')
	,('AUTOCAD', 'GENERAL', 'a008', 'Support Mechanical Desktop Title-Blocks', 'Check Box', 'SUPPORT_MDT_TITLE_BLOCKS')
	,('AUTOCAD', 'GENERAL', 'a009', 'Allow Link to Released Items', 'Check Box', 'ALLOW_LINK_TO_RELEASED_ITEMS')
	,('AUTOCAD', 'GENERAL', 'a010', 'File Name Uniqueness', 'Combo Box', 'UNIQUE_FILE_NAMES')
	,('AUTOCAD', 'GENERAL', 'a011', 'Disable actions on view files', 'Combo Box', 'DISABLE_ACTIONS_ON_VIEW_FILES')
	,('AUTOCAD', 'GENERAL', 'a012', 'Query Search Default', 'Combo Box', 'QUERY_SEARCH_DEFAULT')
	,('AUTOCAD', 'GENERAL', 'a013', 'Allow reload of already opened files', 'Check Box', 'ALLOW_RELOAD_OF_ALREADY_OPENED_FILES')
	,('AUTOCAD', 'GENERAL', 'a014', 'Show message on successful open', 'Check Box', 'SHOW_MESSAGE_ON_SUCCESSFUL_OPEN')
	,('AUTOCAD', 'GENERAL', 'a015', 'Warn user when the same item is linked to parent and child components', 'Check Box', 'SHOW_BOM_ERROR_PARENT_AND_CHILD_WITH_SAME_ITEM')
	,('AUTOCAD', 'GENERAL', 'a016', 'Take Ownership during Edit File in Integration', 'Check Box', 'TAKE_OWNERSHIP_DURING_EDIT_FILE_IN_INTEGRATION')
	,('AUTOCAD', 'GENERAL', 'a017', 'Skip Meta Data comparison during Download', 'Check Box', 'SKIP_META_DATA_COMPARISON_DURING_DOWNLOAD')
	,('AUTOCAD', 'GENERAL', 'a018', 'Skip Mapping for Released files during Download', 'Check Box', 'SKIP_MAPPING_FOR_RELEASED_FILES')
	,('AUTOCAD', 'GENERAL', 'a019', 'Perform mapping during download based on File Mapping rules value', 'Check Box', 'PERFORM_MAPPING_DURING_DOWNLOAD_BASED_ON_FILE_MAPPING_RULES')
	,('AUTOCAD', 'GENERAL', 'a020', 'Skip Item Manager update during download', 'Check Box', 'SKIP_ITEM_MANAGER_UPDATION_DURING_DOWNLOAD')
	,('AUTOCAD', 'GENERAL', 'a021', 'Disable modify event prompt to check-out', 'Check Box', 'DISABLE_MODIFY_EVENT_PROMPT_TO_CHECK_OUT')
	,('AUTOCAD', 'GENERAL', 'a022', 'Retain Item-Drawing Links', 'Check Box', 'PLM_RETAIN_ITEM_DRAWING_LINKS')
	,('AUTOCAD', 'AFTER_SAVE', 'a001', 'Show message on successful save', 'Check Box', 'SHOW_MESSAGE_ON_SUCCESSFUL_SAVE')
	,('AUTOCAD', 'AFTER_SAVE', 'a002', 'Check In Cleanup', 'Combo Box', 'CHECK_IN_CLEANUP')
	,('AUTOCAD', 'AFTER_SAVE', 'a003', 'Save and Unlock Cleanup', 'Combo Box', 'SAVE_AND_UNLOCK_CLEANUP')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a029', 'Generate Neutral Files', 'Check Box', 'GENERATE_NEUTRAL_FILES')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a030', 'Generate Neutral Files during', 'Combo Box', 'NEUTRAL_FILES_GENERATION')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a031', 'Show Neutral files during Save', 'Check Box', 'SHOW_GENERATE_NEUTRAL_FILES_DURING_SAVE')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a032', 'BMP', 'Check Box', 'NEUTRAL_FILES_DRAWING_BMP')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a033', 'PDF', 'Check Box', 'NEUTRAL_FILES_DRAWING_PDF')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a034', 'Layouts for BMP Generation', 'Combo Box', 'LAYOUTS_FOR_BMP_GENERATION')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a035', 'Layouts for PDF Generation', 'Combo Box', 'LAYOUTS_FOR_PDF_GENERATION')
	,('AUTOCAD', 'SAVE_NEUTRAL_FILES', 'a036', 'Include Model Space Layout in every PDF', 'Check Box', 'INCLUDE_MODELSPACE_LAYOUT_IN_EVERY_PDF')
	,('AUTOCAD', 'ATTACHED_TO_WKFL', 'a004', 'Attached to Business Process', 'Combo Box', 'ATTACHED_TO_BP')
	,('AUTOCAD', 'ATTACHED_TO_WKFL', 'a005', 'Attach all related objects', 'Check Box', 'DISPATCH_ATTACH_ALL_RELATED_OBJECTS')
	,('AUTOCAD', 'ATTACHED_TO_WKFL', 'a006', 'Allow edit Workflow', 'Check Box', 'ALLOW_EDIT_WORKFLOW')
	,('AUTOCAD', 'ATTACHED_TO_WKFL', 'a007', 'Action for objects locked by Business Process', 'Combo Box', 'ACTION_FOR_OBJECTS_LOCKED_BY_BP')
	,('AUTOCAD', 'THUMBNAILS', 'a042', 'Generate thumbnails during Save to PLM', 'Check Box', 'GENERATE_THUMBNAILS_DURING_SAVE_TO_PLM')
	,('AUTOCAD', 'THUMBNAILS', 'a043', 'Generate thumbnails for CAD file structure', 'Combo Box', 'THUMBNAIL_GENERATION_FOR_SUBSTRUCTURE')
	,('AUTOCAD', 'THUMBNAILS', 'a044', 'Layout for thumbnail generation', 'Combo Box', 'LAYOUT_FOR_THUMBNAIL_GENERATION')
	,('AUTOCAD', 'THUMBNAILS', 'a045', 'Thumbnails Size', 'Text Box', 'THUMBNAILS_SIZE')
	,('AUTOCAD', 'TROUBLESHOOTING', 'a046', 'Generate Log files', 'Check Box', 'GENERATE_LOG_FILES')
	,('AUTOCAD', 'SET_ITEM_ID_INITIAL_SAVE', 'a039', 'Set Item-ID based on', 'Combo Box', 'INITAL_SETTING_OF_ITEM_ID_TO_MATCH_FILENAME')
	,('AUTOCAD', 'SET_ITEM_ID_INITIAL_SAVE', 'a040', 'Action to take if Item-ID exists in PLM database', 'Combo Box', 'ACTION_TO_TAKE_IF_ITEMID_EXISTS_IN_PLM')
	,('AUTOCAD', 'SET_ITEM_ID_INITIAL_SAVE', 'a041', 'Action to take when same Item-ID is generated for multiple files', 'Combo Box', 'DUPLICATE_ITEM_IDS_ACTION')
	,('AUTOCAD', 'SET_FILE_NAMES_BASED_ON_DOCUMENT_ID', 'a037', 'Set filename for', 'Combo Box', 'SET_FILE_NAME_FOR')
	,('AUTOCAD', 'SET_FILE_NAMES_BASED_ON_DOCUMENT_ID', 'a038', 'Generate Document-ID before displaying Set Object Attributes dialog', 'Check Box', 'GENERATE_DOCUMENT_ID_BEFORE_DISPLAYING_SET_ATTRIBUTES_DIALOG')

END 

