The follow steps describe the general workflow for creating a GC macro. For detailed workflows, contact Intergraph Support.
Create geometry
-
Click GC > Place GC.
-
In the Geometric Construction box, select a geometric construction interface.
-
Follow the system prompts and options on the ribbon to create the needed geometry.
-
Repeat the previous steps to create all needed geometry.
Create a geometric construction set
-
Click GC > Create GCSet.
-
Follow the system prompts and options on the ribbon to select the geometry and save it to a set.
Edit the geometric construction set and generate source code
-
Click Select .
-
Select a GC set in the Workspace Explorer.
-
Click Properties .
The Geometric Construction Set Class Properties dialog box displays.
-
Define inputs, outputs, and parameters that will be visible on the ribbon bar of the compiled macro.
-
On the Print Graph tab, click Print Graph, and click Finish.
A Visual Basic 6.0 project is created.
Create the geometric construction macro
-
Open the project in Visual Basic 6.0.
-
Compile the project into a DLL.
-
Add the DLL to the symbol share for the catalog database.
-
Bulkload the DLL into the catalog database. For more information, see Geometric Construction Workbooks.
-
In Project Management, click Tools > Update Custom Symbol Configuration.
-
Create a symbol icon for the new macro and update the palette configuration XML file. For more information, see Catalog Palette Configuration File.
The macro is now available through the Geometric Construction Palette dialog box or the Advanced Plate Systems dialog box in the Advanced Plate System command of software. For more information, see Molded Forms User's Guide.
Test the macro
-
Using Advanced Plate System in the Molded Forms task, place an object in the model using the macro.
-
If the macro does not behave as expected, modify geometry and the geometric construction set, and generate new source code.
-
Recompile the DLL and copy it to the symbol share for the catalog database.