This Client Server article is republished in its entirety from 2004 for reference purposes.
By Todd Cassel, Technical Support Analyst, Bentley Corporate Office 18 May 2004
A very useful function of the JSpace MicroStation Connection is its ability to extract MicroStation tag data from the drawing to a JSM file. To accomplish this, you need to complete a few steps prior to creating the JSM.
In order for the tag data for MicroStation TriForma elements to extract to the JSM file, you have to add the appropriate properties into the triforma.lib class library, which by default is located in the \Program Files\Bentley\Program\TriForma\mdlapps directory. For example, assume the tag data required is defined as:
Tag Set Name: Component
Tag Name: ID, as shown in Figure 1
You need to add a new property to the class TRIFORMA_GROUP using the syntax tagesetname^tagname. The property for the example above would be named COMPONENT^ID. This property would also have a single input property source, which would be defined as: .COMPONENT^ID. Follow the steps below to see how this would be set up.
Open the triforma.lib file with the JSpace Class Editor and select the TRIFORMA_GROUP class as shown in Figure 2.
By double clicking on the TRIFORMA_GROUP class, you will open a second window listing the TRIFORMA_GROUP properties, as shown in Figure 3.
Select the Add button to open the Property Editor so the new property can be added, as shown in Figure 4.
Finally, select the A= button to add the input property source as shown in Figure 5.
Save and close the triforma.lib file.
For Design Series Components in a TriForma Project
This is similar to the steps outlined above, except that the class library that needs to be modified is the ams.lib, located in the \Program Files\Bentley\Workspace\Projects\Examples\TriForma_Imperial (or TriForma_SI)\intmgr\setting directory.
The format for adding the class and the property is the same, except for the class that will be chosen. For example, for a flange, the class PIPE_PFLG will be the one to have the tag property added.
For Design Series Components within a Design Series Project
The class library to be modified for this example is the ams_user.lib file, which is normally located in the \project\etc directory. The steps are the same as the two previous scenarios with only one difference: the library and/or class to be modified.
After modifying this library, remember to synchronize the ams.lib and ams_user.lib files with the Database Setup tool (see Figure 6).
Running the JSpace MicroStation Connection
Once the applicable set of steps have been completed:
Open the JSpace MicroStation Connection from the appropriate application.Check the Tag Data box on the MicroStation Connection dialog.Set the File Format to Object Model to ensure that the modified libraries are called at the time of the JSM creation.Extract the JSM file (see Figure 7).
Opening the JSM file in Bentley Navigator or the JSpace Class Editor should display the desired result, which is the MicroStation Tag data appearing in the completed JSM file, as shown in Figure 8.
Client Server Archive
Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!