Create a geometric construction macro - Intergraph Smart 3D - Reference Data - Hexagon PPM

Intergraph Smart 3D Molded Forms Reference Data

Language
English (United States)
Product
Intergraph Smart 3D
Subproduct
Molded Forms
Search by Category
Reference Data
Smart 3D Version
13

The follow steps describe the general workflow for creating a GC macro. For detailed workflows, contact Intergraph Support.

Create geometry

  1. Click GC > Place GC.

  2. In the Geometric Construction box, select a geometric construction interface.

  3. Follow the system prompts and options on the ribbon to create the needed geometry.

  4. Repeat the previous steps to create all needed geometry.

Create a geometric construction set

  1. Click GC > Create GCSet.

  2. 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

  1. Click Select .

  2. Select a GC set in the Workspace Explorer.

  3. Click Properties .

    The Geometric Construction Set Class Properties dialog box displays.

  4. Define inputs, outputs, and parameters that will be visible on the ribbon bar of the compiled macro.

  5. On the Print Graph tab, click Print Graph, and click Finish.

    A Visual Basic 6.0 project is created.

Create the geometric construction macro

  1. Open the project in Visual Basic 6.0.

  2. Compile the project into a DLL.

  3. Add the DLL to the symbol share for the catalog database.

  4. Bulkload the DLL into the catalog database. For more information, see Geometric Construction Workbooks.

  5. In Project Management, click Tools > Update Custom Symbol Configuration.

  6. 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 advanced_plate_systems_i command of software. For more information, see Molded Forms User's Guide.

Test the macro

  1. Using Advanced Plate System advanced_plate_systems_i in the Molded Forms task, place an object in the model using the macro.

  2. If the macro does not behave as expected, modify geometry and the geometric construction set, and generate new source code.

  3. Recompile the DLL and copy it to the symbol share for the catalog database.