Solid Edge Framework Type Library
OnPlacePartUI Method
Specifies the name of the file.
Specifies the name appended to the title.
Description
Occurs before the user interface is created for a part placed by Solid Edge Assembly.
Syntax
Visual Basic
Public Sub OnPlacePartUI( _
   ByRef Filename As String, _
   ByRef AppendToTitle As String _
) 
Parameters
Filename
Specifies the name of the file.
AppendToTitle
Specifies the name appended to the title.
Remarks
If you do not want to handle this event, return E_NOTIMPL so that Solid Edge proceeds as if no application was listening to the event and displays its dialog box. If you want to cancel the command, return S_OK (or S_FALSE) while returning all the strings as NULL strings so that Solid Edge proceeds to cancel the command without displaying its dialog box. If you return any other error, Solid Edge aborts the command just as it does when an error is received from one of its methods. If you return S_OK with valid output strings, Solid Edge proceeds to use the strings accordingly. The Place Part command in Solid Edge is actually two commands in one - Place Part and Create In-Place Part. These commands are handled by a tabbed dialog, and the interactive user picks the corresponding tab to indicate a preference. However, within the product, Solid Edge fires two distinct events in succession, and the third-party applications must listen to both events to correctly override the Place Part dialog. The OnPlacePartUI event is always fired first. If you return E_NOTIMPL, the OnCreateInPlacePartUI is fired next. But if you return S_OK and a file name, Place Part with the file name is executed, and OnCreateInPlaceUI is not fired. If you return any other error code or NULL strings, Solid Edge cancels the command, and OnCreateInPlaceUI is not fired. The OnCreateInPlaceUI event behaves the same way as OnPlacePartUI except that when the OnCreateInPlaceUI event is fired, returning E_NOTIMPL causes Solid Edge to display its native dialog box and proceed with the command normally. This event also requires that you specify the template for creating the new part. The full path to the template file must be specified. The Solid Edge templates are delivered to the Solid Edge\Program\Tempate directory. Note that these two events are fired only one time for each instance of the Place Part command. It is advisable to handle any toggle between the two modes in the code for the OnPlacePartUI event. Once you return control to Solid Edge with E_NOTIMPL, the OnPlacePartUI event is not fired again unless the PlacePart command is cancelled and invoked again.
See Also

DISEFileUIEvents Object  | DISEFileUIEvents Members

Send comments on this topic.