| Creating an image module in Niagara AX for QA Graphics' 3D Symbol Library |
|
|
|
|
1. Create a folder somewhere on your workstation hosting your user interface (WorkPlace, WorkBench, ProBuilder). (i.e. C:\Niagara\QAGBASLibrary) 2. In your user interface go to Tools >> New Module. 3. Browse to the directory that you created in Step 1. 4. Name the module the same as the folder name. (i.e. QAGBASLibrary.)
5. Fill in the remaining fields based on the information below (referenced page 137 in the docDeveloperPDF_3_2.pdf). 6. Check the Lexicon and Create Palette checkboxes. 7. On the next screen, check the Baja Version and Vendor Version checkboxes and click Next.
8. On the final screen, click Finish. 9. Browse to the directory where the Module is located, e.g. C:\Niagara\QAGBASLibrary, and create a directory \src\res. 10. Under the res directory, copy all the files you’d like to be added to the module. 11. Open the Build.xml file using a text editor (Wordpad, Notepad, etc.) or using the text editor in your user interface (e.g. WorkPlace, WorkBench, etc.). 12. Add the Resources section similar to the format listed below. Be sure to include the *.* to include all files under that folder. <module <!-- Dependencies --> <!-- Resources --> </module> The directory above, res/Static/Ductwork/, can be seen below in the screen shot.
13. Once you have updated your Build.xml file, click the Save and Compile button to save the file. 14. To get this module to show up in your user interface, you’ll need to shutdown the user interface, then run the Platform Daemon (for procedures on setting up the Platform Daemon, see Section 2.1). 15. Once the Platform Daemon has been started, open up the user interface again. Your module should now appear in your My Modules directory on your workstation. To get the module to work as a Palette in your Station, follow the steps in Section 3. Return to top. 2 Platform Daemon 1. On the desktop of your workstation, right-click and choose New >> Shortcut. 2. In the Create Shortcut wizard, type the following into the field 3. Click Next. 4. Name the Shortcut and click Finish. Return to top. 2.2 Running the Platform Daemon 1. Double-click the Platform Daemon shortcut on your desktop. Return to top. 3 Module.Palette To add a new component to a palette (module.palette file), follow these steps: 1. Double-click on the desired module.palette file. It should be located in a module directory on your station file system. 2. The default (Wire Sheet) view appears. 3. Add a component to the wire sheet view using one of the following methods: 4. Select File->SaveBog from the main menu. 5. From the console command line (press F3 to open console window) navigate to the working directory and type the build command followed by a space and then the name of the module folder. For example: 6. Press the Return key to initiate the build process. If the build is successful, the updated jar file is built and overwrites the old jar file located in the modules folder. If the build is not successful, no jar file is built and error messages are generated to help you troubleshoot the problem. 7. Refer to Section 1 for more detailed instructions about creating a module. Return to top. 3.2 Copying a Component to a Palette For convenience and good organization, it is a good idea to create a "palette" folder on the file system to hold all your custom palette files. To copy a component to a palette, using the Wire Sheet view, follow these steps: 1. In the nav tree, double-click on the file palette file that you want to open. 2. The default (Wire Sheet) view appears. 3. From the nav side bar, palette side bar, or other source, drag and drop the desired component to the wire sheet. 4. The copied component is added to the palette file. 5. Select File->SaveBog from the main menu. 6. The palette file is updated to contain the new component. 3.3 Copying a Component from a PX Page to a Palette 1. Create a new PX file on your station. 2. Copy the components, from the Module that was compiled in Section 1, (images, etc.) to the PX file that you want to add to your palette. 3. Edit the image component as needed (e.g. add binding). For more information on adding bindings to an image component, see Section 3.4. 4. From the PX page, click the component and copy it. 5. Go to your module.palette file on your local C drive, not the module located under My Modules, and create the desired file structure within the wire sheet. 6. Paste the component that you copied from the PX page to the proper directory. 7. Repeat these steps for all components you want to copy to your palette. 8. Click the Save Bog button to save the module.palette file. 9. Open the Build.xml file with a text editor and click the Save and Compile button to recompile the module. 10. Close the user interface and open it back up. This will update your module. 3.4 Adding Bindings to an Image Component The procedures below take you through how to add a binding to an image. These procedures assume that you have followed the procedures in the section above and the proper images are located in the module and the module is on your Station. 1. On the Px page with your image, double-click the image to bring up the Properties. 2. In the upper right-hand corner, click the Add Binding button to add binding to the image. Be sure to add Value Binding. 3. In the Ord field, click the button and choose the Component Chooser from the Open Folder drop down. Figure 3.4-1
4. Browse through your Station to bind the image to a point. It doesn’t matter what point at this time, it will be relativized later. Click OK and then OK again. 5. On the Properties page, right-click in the Image field and select Animate. 6. On the Animate window, select the proper image(s) from your module based on the type of point added to the image (binary, enumeration, etc.).
Figure 3.4-3
7. Click OK once images have been added. 8. You should now be able to relativize your Ord. Click on the button to open the Ord. Relativize the Ord to something like: slot: points/Fan$2dS (for the Fan-S point on my Station) Click Ok and then Ok again. Return to top. 4 References “Creating an Image Module in Niagara AX” Blog from Niagara-Central. |
Your are currently browsing this site with Internet Explorer 6 (IE6).
Your current web browser must be updated to version 7 of Internet Explorer (IE7) to take advantage of all of template's capabilities.
Why should I upgrade to Internet Explorer 7? Microsoft has redesigned Internet Explorer from the ground up, with better security, new capabilities, and a whole new interface. Many changes resulted from the feedback of millions of users who tested prerelease versions of the new browser. The most compelling reason to upgrade is the improved security. The Internet of today is not the Internet of five years ago. There are dangers that simply didn't exist back in 2001, when Internet Explorer 6 was released to the world. Internet Explorer 7 makes surfing the web fundamentally safer by offering greater protection against viruses, spyware, and other online risks.Get free downloads for Internet Explorer 7, including recommended updates as they become available. To download Internet Explorer 7 in the language of your choice, please visit the Internet Explorer 7 worldwide page.
Creating Image Module in Niagara AX



Figure 1.1-3

