Search found 4018 matches

Go to advanced search

by wandererfan
Thu Aug 06, 2020 2:39 pm
Forum: Help on using FreeCAD
Topic: [Solved] Centering Substring Text
Replies: 16
Views: 346

Re: Centering Substring Text

Using this to find bearingX made it so I could account for it, thank you so much. Glad it worked for you. What I wrote is still rubbish. :oops: The formula should of course be simplified to just use BoundBox.XMin, and it only works if the Placement.Base of the ShapeString is the origin. I'll have a...
by wandererfan
Wed Aug 05, 2020 3:28 pm
Forum: TechDraw
Topic: InsertMultiple View Dialog
Replies: 6
Views: 268

Re: InsertMultiple View Dialog

Is there a way that the "Insert Multiple View" dialog remembers its settings from last use? I don't know of a standard method of storing session "variables" in FC. I'll have a look. When I have multiple drawings for part components with non-standard settings. Each time I need to set the same settin...
by wandererfan
Wed Aug 05, 2020 3:13 pm
Forum: Help on using FreeCAD
Topic: Sketching an Egg
Replies: 5
Views: 237

Re: Sketching an Egg

chrisb wrote:
Wed Aug 05, 2020 12:31 am
How about these two ellipses?
:idea: :idea: :idea:
Nice. Thank you. I get it now.
by wandererfan
Wed Aug 05, 2020 3:04 pm
Forum: Help on using FreeCAD
Topic: TechDraw: scripting
Replies: 11
Views: 223

Re: TechDraw: scripting

vanuan wrote:
Wed Aug 05, 2020 1:33 am
That's unfortunate. There should be another way to identify selected sub-elements, without relying on the hacky name parsing.
We have that for CosmeticEdges - getCosmeticEdgeBySelection("Edge1"). Should implement getEdgeBySelection("Edge1") sometime.
by wandererfan
Wed Aug 05, 2020 3:00 pm
Forum: Help on using FreeCAD
Topic: [Solved] Centering Substring Text
Replies: 16
Views: 346

Re: Centering Substring Text

I would have indeed expected that the bounding box would have the width of advance from your image, which includes some white space before the character - it is called bearing here - and soome white space after the character - not named in your image. Instead it seems that the bound box is just wid...
by wandererfan
Wed Aug 05, 2020 1:25 am
Forum: Help on using FreeCAD
Topic: TechDraw: scripting
Replies: 11
Views: 223

Re: TechDraw: scripting

drmacro wrote:
Tue Aug 04, 2020 9:28 pm
so I was cheating by knowing the index
As @vanuan said, SelectionEx is your friend here. Just remember that names ("Edge1") start at 1 and indexes start at 0.
by wandererfan
Wed Aug 05, 2020 1:18 am
Forum: Help on using FreeCAD
Topic: [Solved] Centering Substring Text
Replies: 16
Views: 346

Re: Centering Substring Text

Then I moved it by half of the BoundBox to the left and down. This works almost but not quite: You need to also allow for "bearingX" (the empty space in the "em square" before the actual shape): glyphMetrics.png EDIT: this calculation is rubbish. Don't know what I was thinking. WF >>> s = App.Activ...
by wandererfan
Wed Aug 05, 2020 12:17 am
Forum: Help on using FreeCAD
Topic: Sketching an Egg
Replies: 5
Views: 237

Sketching an Egg

I made this sketch using Part primitives and DraftToSketch after I failed miserably with elliptical arcs in Sketcher. egg1v02Sketch.png Any hints on how to do it with Sketcher? From wikipedia: "The shape of an egg is approximated by the "long" half of a prolate spheroid (ellipse around major) joined...
by wandererfan
Tue Aug 04, 2020 3:07 pm
Forum: Help on using FreeCAD
Topic: FreeCAD ( not responding )
Replies: 2
Views: 101

Re: FreeCAD ( not responding )

Everytime that I merge projects and when I add some dimensions at TechDraw workbench, FreeCad start to bug and keep saying (not responding), does anyone know how can I fix that ? Please post the FCStd files. Thanks. If there are geometry errors in the model, TechDraw can go into very long processin...
by wandererfan
Sun Aug 02, 2020 11:11 pm
Forum: Developers corner
Topic: [How to ?] Expose C++ functions to FreeCAD Python API
Replies: 34
Views: 1363

Re: [How to ?] Expose C++ functions to FreeCAD Python API

Could that be that I need to do a clean build ? :? SpreadsheetViewPy/Gui::MdiViewPy doesn't have the same base class chain as say DocumentObjectPy, so the result of the xml->c++ generation is missing a bunch of methods, even after resolving the missing files problem. I couldn't find another example...

Go to advanced search