1 Star 0 Fork 1

广联达科技股份有限公司 / FamilyAddinSample

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

插件样例

项目介绍

  • 该项目提供一个简单的构件编辑器插件开发样例

  • 该项目提供了创建简单长方体、球体功能

  • 该项目使用了GCMP和构件编辑器的少量API

  • 插件示意图 Alt text

项目架构

文件夹结构示意如下所示:
COMPONENTEDITOR_SDK 目录结构:
	COMPONENTEDITOR_SDK
		|----------include
		|----------lib
		|-----------|--------release
		|-----------|--------debug
        |----------bin

开源项目目录结构:
    FamilyAddinSample
        |----------config
        |-------------|-------ui  // ui配置文件
        |-------------|-------FamilyAddinSample.addin //插件配置文件
        |----------resource   	 //资源文件
  		|----------docs          //文档      
        |----------source  		 //源代码
        |----------LICENSE
        |----------CMakeLists.txt
        |----------README.md

编译与运行

编译环境

  • CMake 3.11 +

  • Visual Studio 2015

  • QT 5.6.3

  • COMPONENTEDITOR_SDK

安装基础依赖组件

编译步骤

  • 使用CMake.exe生成项目文件,构建插件
切换到cmake输出目录
cd /d D:\FamilyAddinSample\bin

指定源代码目录,打开生成的解决方案 FamilyAddinSample.sln
cmake ..\FamilyAddinSample -G "Visual Studio 14 2015 Win64"

打开生成的解决方案FamilyAddinSample.sln,若使用高版本的VS,则注意在打开时均选择无升级。
  • 构建生成FamilyAddinSample.dll

运行步骤

  • 复制 FamilyAddinSample.dll 到 COMPONENTEDITOR_SDK/bin 目录

  • 复制 config/FamilyAddinSample.addin 到 COMPONENTEDITOR_SDK/bin/ component_editor_plugin_config/FamilyAddinSample.addin

  • 复制 config/ui/* 到 COMPONENTEDITOR_SDK/bin/addins/FamilyAddinSample/ui/*

  • 启动 AppComponentEditor.exe

License

MIT

The MIT License Copyright (C) <1998-2024> Glodon Company Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

该项目提供了一个简单的广联达构件设计软件插件的开发样例。 展开 收起
C++ 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C++
1
https://gitee.com/glodon/familyaddinsample.git
git@gitee.com:glodon/familyaddinsample.git
glodon
familyaddinsample
FamilyAddinSample
master

搜索帮助