Search found 379 matches

Go to advanced search

by onekk
Mon Jul 06, 2020 5:14 pm
Forum: Forum Italiano
Topic: Nuova versione Guida allo Scripting
Replies: 5
Views: 301

Re: Nuova versione Guida allo Scripting

Ciao, innanzitutto grazie della segnalazione. La guida ha subito una modifica importante, molti listati non hanno la parte iniziale che è comune, e porta via molte righe di codice, sprecando inutilmente spazio. La cosa è citata chiaramente a pagina 26 della versione 0.31 pubblicata al link della gui...
by onekk
Fri Jun 19, 2020 11:04 am
Forum: Draft, Arch & BIM
Topic: [Discussion] A different approach to Arch modelling (Arch Assembly?)
Replies: 199
Views: 8822

Re: [Discussion] A different approach to Arch modelling (Arch Assembly?)

Yes, it seems a reasonable approach, but OCC is the base of every solid you create with FreeCAD, only text and maybe mesh is not using the Part module. From what i know if a module is already loaded, it is not loaded twice, but the overload of having python to check if the module is loaded is more d...
by onekk
Wed Jun 17, 2020 5:13 pm
Forum: Draft, Arch & BIM
Topic: [Discussion] A different approach to Arch modelling (Arch Assembly?)
Replies: 199
Views: 8822

Re: [Discussion] A different approach to Arch modelling (Arch Assembly?)

Sorry for the intrusion, importing the Part module I think is not a big problem, it is the "base" ot FreeCAD, or not? Not counting that every line that is not a comment is parsed and so it is using some time, maybe a very little time to be executed. One caveat, is to time the execution, (only for te...
by onekk
Wed Jun 17, 2020 4:50 pm
Forum: Python scripting and macros
Topic: Python connecting primitive shapes into one.
Replies: 1
Views: 113

Re: Python connecting primitive shapes into one.

Yes, make them using the MakeRuledSurface and then put in the document only the fusion of the ruledsurfaces. in pseudocode (i.e not working as is): Supose you have two created objects, toposhapes not documentobjects obj and obj1, with the same number of edges, generally they are created by a script ...
by onekk
Tue Jun 16, 2020 2:37 pm
Forum: Draft, Arch & BIM
Topic: [Discussion] A different approach to Arch modelling (Arch Assembly?)
Replies: 199
Views: 8822

Re: [Discussion] A different approach to Arch modelling (Arch Assembly?)

ping Hey there! I've simplified it more: https://github.com/yorikvanhavre/BIM_Workbench/blob/master/archobjects/window_presets.py It's not necessary to create a new placement and assign it when you just need to move something up by 5mm. Just change shape.Placement.Base.z :) Part is imported on ever...
by onekk
Sun Jun 14, 2020 3:41 pm
Forum: Draft, Arch & BIM
Topic: [Discussion] A different approach to Arch modelling (Arch Assembly?)
Replies: 199
Views: 8822

Re: [Discussion] A different approach to Arch modelling (Arch Assembly?)

#*************************************************************************** #* Copyright (c) 2020 Carlo Dormeletti (onekk) carlo.dormeletti@yahoo.com * #* * #* This program is free software; you can redistribute it and/or modify * #* it under the terms of the GNU Lesser General Public License (LGP...
by onekk
Tue Jun 09, 2020 3:39 pm
Forum: Forum Italiano
Topic: Esportazione solidi per CamBam
Replies: 3
Views: 205

Re: Esportazione solidi per CamBam

No STEP è un formato di interscambio dati, il problema è che è un formato abbastanza complesso e destinato a scopi che vanno ben oltre l'esportazione di solidi o mesh (STL + un mesh). https://it.wikipedia.org/wiki/ISO_10303 Esportare STL in FreCAD è un pochino particolare, prima devi convertire il s...
by onekk
Tue Jun 09, 2020 3:19 pm
Forum: Python scripting and macros
Topic: Get oriented minimum possible volume bounding box of a shape
Replies: 3
Views: 239

Re: Get oriented minimum possible volume bounding box of a shape

Maybe you are not interpreting the term boundig box, the box, is a square that give you some data of a contained object. These data are Xmin, Xmax, Ymin, Ymax. The Bounding box is doing what is created for. The data you are searching maybe could be derived using these data to make some analysis. The...
by onekk
Tue Jun 09, 2020 1:39 pm
Forum: Draft, Arch & BIM
Topic: [Discussion] A different approach to Arch modelling (Arch Assembly?)
Replies: 199
Views: 8822

Re: [Discussion] A different approach to Arch modelling (Arch Assembly?)

Fro the sill, the only vlue needed for now are for the protruding part, sides lenght, and front length plus, the thickness: sill_wid = opening.width + sides_length * 2 sill_th = <desidered value> sill_len = wall_thickness * 0.95 + protruding length obj = Part.makeBox(sill_len, sill_wid, sill_th) obj...
by onekk
Tue Jun 09, 2020 1:28 pm
Forum: Draft, Arch & BIM
Topic: [Discussion] A different approach to Arch modelling (Arch Assembly?)
Replies: 199
Views: 8822

Re: [Discussion] A different approach to Arch modelling (Arch Assembly?)

Very nice! It works really good :) Mind that the glass is a bit bigger than what expected. It's good in the reality, but it cause to miss one visible edge in the drawing, so i'd suggest to make it exactly the size of the inner frame. What do you think? just modify this value: # glass margin into th...

Go to advanced search