Skip to content

15831944/rhino.inside-bricscad

 
 

Repository files navigation

Grasshopper-BricsCAD Connection

Grasshopper-BricsCAD Connection is a plugin based on the Rhino.Inside technology. It provides a bi-directional connection between Grasshopper and BricsCAD. BricsCAD geometry can be used as input parameters in Grasshopper, as well as Grasshopper geometry can be converted back to native BricsCAD geometry. For additional information and documentation see BricsCAD Help Center. The latest installer can be found at BricsCAD Application Store

Project structure

  • GrasshopperData - BRX project where custom object (DbGrasshopperData) and corresponding property extension are defined. DbGrasshopperData is database object which links database entity and grasshopper script. DbGrasshopperData keeps properties defined in grasshopper script, these properties are used as input parameters for the script. Property changes and modification of linked database entity are processed in Grasshopper-BricsCAD-Connection project.
  • GrasshopperDataManaged - managed wrapper for GrasshopperData project. This project is loaded by Grasshopper-BricsCAD-Connection project and register GrasshopperData as BRX extension.
  • Grasshopper-BricsCAD-UI is responsible for the UI initialization in BricsCAD. It loads a partial CUI file and enables grasshopper tools in menu, toolbar, quad, and ribbon. This module is autoloaded at BricsCAD start.
  • Grasshopper-BricsCAD is the implementation of the connection between BricsCAD and Grasshopper. This module is loaded on demand.

Build from source

Prerequisites

  • Visual Studio (download)
  • .NET Framework 4.5.1 (download)
  • Rhino WIP (download)
  • BricsCAD V20 (download)
  • Download BRX library and set BRX_SDK_PATH system variable (optional, nessesary for GrasshopperData and GrasshopperDataManaged build)

Getting Source & Build

  1. Clone the repository.
  2. In Visual Studio: open Grasshopper-BricsCAD-Connection.sln.
  3. Update path to BricsCAD and Rhino references. Copy Local property should be False. If there is no necessity to build GrasshopperData and GrasshopperDataManaged projects, you can use prebuild binaries GhDataApp.dll and GhDataManaged.dll.
  4. Navigate to Build > Build Solution to begin your build.

Launch

  • Run NETLOAD command in BricsCAD to load the .NET application.
  • Or edit the Windows Registry to enable mechanism of DLL AutoLoad or DemandLoad:
    1. Add a folder to the following path :
      HKEY_LOCAL_MACHINE\SOFTWARE\Bricsys\Bricscad\V20x64\en_US\Applications\Grasshopper-BricsCAD-Connection
      
    2. Add the following keys :
      "LOADER"="Grasshopper-BricsCAD-Connection.dll" ("Grasshopper-BricsCAD-Connection.UI.dll")
      "DESCRIPTION"="Grasshopper-BricsCAD-Connection"
      "LOADCTRLS"=dword:0000000e for AutoLoad or 0000000c for DemandLoad
      "MANAGED"=dword:00000001
      

About

Grasshopper integration into BricsCAD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 80.8%
  • C++ 17.4%
  • C 1.8%