Coder Social home page Coder Social logo

martcram / freecad-aplan Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 385 KB

Assembly PLANning workbench for FreeCAD

License: GNU Lesser General Public License v2.1

Python 51.25% C++ 37.97% CMake 1.83% CSS 0.51% JavaScript 7.53% HTML 0.91%
cad freecad freecad-addons freecad-workbench kuleuven

freecad-aplan's People

Contributors

jercram avatar martcram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

freecad-aplan's Issues

Error compiling

Hello,

We are trying to compile the repository to test the tool for our usecase, but we are getting compile errors.
FreeCAD compiles, but not the APLAN module.
Would really appreciate it if you could take a look at the error, as your project seemed perfect to build upon for my thesis.
Thanks!

Built with

Windows 11
FreeCAD: 20.2
LibPack(Dependencies): LibPack-OCC76-V2-8.7
Aplan: latest code of the repo

Couldn't find the exact versions of all the libraries in the repo, but used the latest official dependency pack for windows for FreeCAD 20.2

Errors

The errors seem to all revolve around the Part Compound

"C:\fc\freecad-build\ALL_BUILD.vcxproj" (default target) (1) ->
"C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj" (default target) (55) ->
(Link target) ->
  AplanCompound.obj : error LNK2019: unresolved external symbol "protected: static struct App::PropertyData const * __cdecl Part::Compound::getPropertyDataPtr(void)" (?getPropertyDataPtr@Compound@Part@@KAPEBU
PropertyData@App@@XZ) referenced in function "public: static void __cdecl Aplan::Compound::init(void)" (?init@Compound@Aplan@@SAXXZ) [C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj]
  AplanCompound.obj : error LNK2019: unresolved external symbol "public: __cdecl Part::Compound::Compound(void)" (??0Compound@Part@@QEAA@XZ) referenced in function "public: __cdecl App::FeaturePythonT<class A
plan::Compound>::FeaturePythonT<class Aplan::Compound>(void)" (??0?$FeaturePythonT@VCompound@Aplan@@@App@@QEAA@XZ) [C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj]
  AplanCompound.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl Part::Compound::~Compound(void)" (??1Compound@Part@@UEAA@XZ) referenced in function "public: virtual __cdecl App::Featu
rePythonT<class Aplan::Compound>::~FeaturePythonT<class Aplan::Compound>(void)" (??1?$FeaturePythonT@VCompound@Aplan@@@App@@UEAA@XZ) [C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj]
  AplanCompound.obj : error LNK2019: unresolved external symbol "public: virtual short __cdecl Part::Compound::mustExecute(void)const " (?mustExecute@Compound@Part@@UEBAFXZ) referenced in function "public: vi
rtual short __cdecl App::FeaturePythonT<class Aplan::Compound>::mustExecute(void)const " (?mustExecute@?$FeaturePythonT@VCompound@Aplan@@@App@@UEBAFXZ) [C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj]
  AplanCompound.obj : error LNK2019: unresolved external symbol "public: virtual class App::DocumentObjectExecReturn * __cdecl Part::Compound::execute(void)" (?execute@Compound@Part@@UEAAPEAVDocumentObjectExe
cReturn@App@@XZ) referenced in function "public: virtual class App::DocumentObjectExecReturn * __cdecl App::FeaturePythonT<class Aplan::Compound>::execute(void)" (?execute@?$FeaturePythonT@VCompound@Aplan@@@A
pp@@UEAAPEAVDocumentObjectExecReturn@2@XZ) [C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj]
  C:\fc\freecad-build\Mod\Aplan\Aplan.pyd : fatal error LNK1120: 5 unresolved externals [C:\fc\freecad-build\src\Mod\Aplan\App\Aplan.vcxproj]

[Bug] APLAN fails to build for FreeCAD 0.20

Issue description

FreeCAD's release version 0.19.1 had been selected in the initial development phase. However, when switching to FreeCAD 0.20, configuration and build errors occur related to the APLAN workbench.

FreeCAD version

0.20 (Release)

Full FreeCAD version info

OS: Ubuntu 22.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: (HEAD detached at 0.20)
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.10.4, Qt 5.15.3, Coin 4.0.0, Vtk 7.1.1, OCC 7.5.1
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56
  * 3DfindIT 1.2.0

README tweaks

  • Please put Description section before Installation section
  • Please Add just a little more depth to the Description section before directing users to the wiki
  • Maybe create a Prerequisites section

Also, I can add this to the addon manager when you think it's ready but it would be useful if you posted about it on the forum.freecadweb.org so the community could vet it...what do you think?

[Feature] Provide toolbar commands with tailored icons

Feature description

The toolbar commands of the APLAN workbench are still provided with the default icon (i.e. black cross on a white background). Tailored icons have to be designed following FreeCAD's artwork guidelines.

Status

Name Type Icon Description Designer(s) Commit
Analysis Object Container object collecting all objects (i.e. part filters, constraints, results etc.) related to a specific assembly analysis. Inspired by FEM Analysis martcram a43b79e
Compound Object Object representing a group of assembly components (i.e. subassembly). During analysis, all components composing a Compound are treated as a single part. jercram 4cf4815
CompoundGroup Object Object representing a group of Compound objects. An APLAN analysis container can contain at most one CompoundGroup object. jercram 0ecb342
CompoundsPurge Command Command used for purging all Compound and CompoundGroup objects of the active APLAN analysis. jercram 6a14633
ConnectionDetectorSwellOCCT Object Object representing a connection detector (i.e. topological constraints) using bounding box intersections and OpenCascade's tools. jercram 744336c
ConstraintGroup Object Object representing a group of GeomConstraints and TopoConstraints objects. An APLAN analysis container can contain at most one ConstraintGroup object. jercram 1351076
ConstraintsInspect Command Command used for inspecting and modifying the selected geometrical or topological constraints using a force-directed graph layout. jercram 119c2f4
ConstraintsPurge Command Command used for purging all GeomConstraints, TopoConstraints, and ConstraintGroup objects of the active APLAN analysis. jercram c1eddc8
GeomConstraints Object Object representing the geometrical constraints (i.e. obstructions) present among the available components, and along the specified disassembly direction. jercram 2d76754
ObstructionDetectorOCCT Object Object representing an obstruction detector (i.e. geometrical constraints) using bounding box intersections and OpenCascade's tools. jercram d515b40
PartFilter Object Object representing a filter for grouping (compounding) and/or excluding parts from analysis. jercram 3be982a
ToggleTransparency Command Command used for toggling the transparency of the available parts. jercram cb392f7
TopoConstraints Object Object representing the topological constraints (i.e. connections) present among the available components. jercram f3084a0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.