Search found 795 matches

Go to advanced search

by Joel_graff
Sat Jan 19, 2019 6:52 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 527
Views: 31843

Re: Civil engineering feature implementation (Transportation Engineering)

To be honest with you, I would center in another part of the development until the geometry extensions get merged for two reasons: 1) Geometry extensions will allow you to have whatever you want to have, 2) It is likely that together or immediately after the geometry gets merged, I will include par...
by Joel_graff
Thu Jan 17, 2019 8:25 pm
Forum: Python scripting and macros
Topic: [Solved] Disabling auto-updates in Sketcher by default
Replies: 2
Views: 60

[Solved] Re: Disabling auto-updates in Sketcher by default

Gift wrote:
Thu Jan 17, 2019 8:14 pm

Code: Select all

FreeCAD.ParamGet('User parameter:BaseApp/Preferences/Mod/Sketcher').SetBool('AutoRecompute', False)
Works like a charm! Thanks!
by Joel_graff
Thu Jan 17, 2019 5:57 pm
Forum: Python scripting and macros
Topic: [Solved] Disabling auto-updates in Sketcher by default
Replies: 2
Views: 60

[Solved] Disabling auto-updates in Sketcher by default

So is it possible to disable sketcher auto-updates in Python? I ask because I have objects which depend on a sketch and I don't want them rebuilding every time something in the Sketch changes - only when it closes. Of course, this can be achieved by unchecking the 'Auto-Update' box, but I'd rather i...
by Joel_graff
Thu Jan 17, 2019 1:28 pm
Forum: Python scripting and macros
Topic: Notify other objects of a sketch object change
Replies: 10
Views: 246

Re: Notify other objects of a sketch object change

What means FPO? FPO = Feature Python Object, or scripted object. :) Now that I understand what you had in mind for an implementation, I think I can handle that. I was wondering if there was a more specific loft object or method I wasn't familiar with, like sketcher has the SketchObjectPython class....
by Joel_graff
Thu Jan 17, 2019 1:20 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 527
Views: 31843

Re: Civil engineering feature implementation (Transportation Engineering)

This uuid is not Sketch specific, but FC global, you won't find a repeated number in any other geometry in FC. Tomorrow (v.19): If I manage to make Python defined geometry extensions, you will be able to associate whatever you like to a Sketcher Geometry AND this will be serialized. This is an exam...
by Joel_graff
Wed Jan 16, 2019 5:44 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 527
Views: 31843

Re: Civil engineering feature implementation (Transportation Engineering)

On your problem, I used 'non-driving' constraints (on both X and Y) and name them. Then you can 'trace' the position of that point. The only risk is user delete it. I thought of that originally, and in most cases, it might be an acceptable solution. In fact, I'd bet there will almost always be a 'd...
by Joel_graff
Wed Jan 16, 2019 5:21 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 527
Views: 31843

Re: Civil engineering feature implementation (Transportation Engineering)

Just got 3D splines working. I can now generate a 3D highway alignment from two existing 2D alginments (horizontal and vertical). Works pretty slick! Many thanks to @microelly2 for coding the algorithm a few months ago! Seems you have a complicated solution to solve :) Can you share how you get 3d ...
by Joel_graff
Wed Jan 16, 2019 5:19 pm
Forum: Open discussion
Topic: Civil engineering feature implementation (Transportation Engineering)
Replies: 527
Views: 31843

Re: Civil engineering feature implementation (Transportation Engineering)

This is a method to define a fix point in the sketch with constraints x y AAA,BBB Whenever a user deletes it it will be reconstructed: Hmm.. Maybe not quite what I'm after. ;) I don't exactly want the point itself to be permanent... I just want to make sure I can always find that point using a cons...
by Joel_graff
Wed Jan 16, 2019 4:52 pm
Forum: Python scripting and macros
Topic: Notify other objects of a sketch object change
Replies: 10
Views: 246

Re: Notify other objects of a sketch object change

If you create a custom loft you can simply link the sketch from the loft, and on loft recompute you update the dump polygons first and than the loft itself. This gives you the possibility to use the freecad recompute logic. Is there an example you can point me to? It sounds like you mean an FPO tha...
by Joel_graff
Wed Jan 16, 2019 2:20 pm
Forum: Python scripting and macros
Topic: Notify other objects of a sketch object change
Replies: 10
Views: 246

Re: Notify other objects of a sketch object change

What I could imagine is that you build "dump" polygons from the sketches which as objects don't know how they have been created. Is that correct? ... the objects themself don't have any information how to be rebuild themself, and it is not enough to inform them of the sketch change, as they don't k...

Go to advanced search