use formula in A2+ WB constraints properties - offset

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
MishaLjusha
Posts: 3
Joined: Thu Nov 04, 2021 8:26 am

use formula in A2+ WB constraints properties - offset

Post by MishaLjusha »

Hi.
My "data"

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.922.24301 +3888 (Git)
Build type: Release
Branch: LinkStage3
Hash: 399863d7e37b354fea6687767605e661beace504
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Slovenian/Slovenia (sl_SI)

My problem:
I use FC for small woodworking projects. In assembly (which I do with A2+) I mainly use Plane Coincident Constraints, many times with OFFSET option. I can set FIX offset but my "wish" is to make it somehow parametric i.e. enter formula like <<Spreadsheet>>.OffsetDistance or maybe <<Spreadsheet>>.B10 instead of fixed number.

There is no blue fx sign In offset "control", only Up and Down buttons

I was trying to find some "alike" topic on this forum, but i haven't find nothing that could help me .
I have also tried to do something in/from Python console but I only get
>>> # Gui.Selection.addSelection('Unnamed1','planeCoincident_015') ---> changes are not "recorded"
I also tried >>> Gui.Selection.addSelection('Unnamed1','planeCoincident_015').Offset = ... but it doesn't work.
I get following error: AttributeError: 'NoneType' object has no attribute 'Offset'

Any suggestions, solutions, help
PLS
Regards
mhost
Posts: 5
Joined: Fri Jan 14, 2022 12:38 am

Re: use formula in A2+ WB constraints properties - offset

Post by mhost »

MishaLjusha... Did you ever solve this problem? I have been searching for a solution myself

-mhost

Code: Select all

OS: Windows 11 build 22631
Word size of FreeCAD: 64-bit
Version: 0.21.1.33668 +26 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.1)
Hash: f6708547a9bb3f71a4aaade12109f511a72c207c
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.61
  * Assembly4 0.50.4
  * Behave-Dark-Colors 0.1.1
  * Dracula 0.0.5
  * ExplodedAssembly
  * Woodworking 0.21.30486
Post Reply