BIM/Arch development news articles from Yorik's blog

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: BIM/Arch development news articles from Yorik's blog

Post by yorik »

Latest one! Cross-post from https://yorik.uncreated.net/blog/2021-0 ... r-december

FreeCAD BIM development news - November/December 2020

Image

Hi there! Happy new year to everybody reading this blog!

Here goes another monthly report about the BIM tools development for FreeCAD.

2020 has been a baffling collection of changes, I guess this is true for just everybody in the world. It has certainly been for me, I relocated to Belgium, and a lot has been taking place. Regarding BIM and open-source, I believe things have been happening in 2020 more than ever before. This is in great part thanks to the astonishing work done by several restless people on BlenderBIM, an add-on for Blender that adds BIM capability and full IFC interface, and osarch.org, where you'll find a wiki with a lot of information about what software is available and how to get started, and a very active community of open-source software developers and advanced users.

With FreeCAD and BlenderBIM, the world now has two open-source good, stable, powerful, multi-platform authoring platforms for doing BIM work. Both still have limitations, both differ from the commercial BIM apps you are used to, both still require some effort to get into and master, but both are in many areas more powerful than most commercial apps, both speak IFC better than most commercial apps, both are deeply hackable and customizable, and there is each day more evidence that you can successfully do full, professional BIM work with any or both of them and that you can build a full BIM production chain entirely on open-source software.

There is still some effort to be done in many areas, mainly to output better 2D drawings, and to ease the learning curve by providing better documentation and learning material. On the FreeCAD side, working on these two points will be my new year resolution.

As each time, thanks a million to everybody who contributes to these efforts by sponsoring me on Patreon, Github or Liberapay, or by donating to the FreeCAD project. You have made a big difference for me and for FreeCAD this last year, I've been able to keep focused on it most of the year regardless of exterior events, and I feel I'm very close to be able to dedicate myself fully to FreeCAD, which would be a dream come true...

Enough of being emotional, though, let's get to the latest changes already!



Default scaling in TechDraw views

Image

In last editions, I introduced some new buttons on the BIM workbench to make TechDraw pages and views. There are now several new ways of defining a default scale for new views that will be created on a page:

* The old way, which is still working, is to set the **Scale** property of a page to a certain value, for ex. 1:100. When a page has a defined Scale value, all new views added to that page will use that scale value by default.
* You can now define a default scaling in a page template, by creating an editable text and naming it "scale" or "scaling" (it is case insensitive, so it can be Scaling or SCALING too). When using that template, if such editable text is found, its value will be used as default page scale.
* Creating a **Mod/BIM/DefaultPageScale** float parameter (under Tools->Parameters) allows to set a default page scale if none is found in the template.

As a reminder, FreeCAD works with float scale factors like 0.01 or 0.05. Working with scale factors like 1:100 is easy, you can simply write the scale factor as an expression (write it as =1/100, or =1in/2ft) and FreeCAD will do the conversion for you.

But the theory is simple too, and is good to keep in mind so you can verify afterwards. You must just think: "1 in relation to 100, or 1cm of the drawing equals 100cm of the reality", that is, the size you see on the drawing is the reality divided by 100, or 1/100, or 0.01.

When working with imperial scales like 1" = 2', it works the same way, 1 inch of the drawing represents 2 feet in the reality, that is, 1in/2f or 1in/24in, or 1/24 or 0.0416



Buttons to switch window opening

Image

Most default windows created with the Window tool now define a hinge edge, so their **Opening** property can be used to show the window half or fully opened in the model.

Window objects now have two context (right-click) menu options, to switch the opening direction (same hinge, but opening towards the other side) or opening side (the hinge edge is switched to the other side). This will work with all preset windows, and will also work with most custom windows too, as long as their hinge edge is part of a rectangle (so it's possible to deduce which edge is on the other side).

A quick reminder to how windows opening work: Windows are built from different window components, which each is an extrusion of one or more polylines from a base sketch, so they define frames and panels. For each component, you can define a hinge edge, which will affect that component and all of the next ones in the stack. So the order of the components is important, you should start from the fixed ones (outer frame, for example), then group all the components that will open from the same edge together.



Forum dark theme

Image

I created a dark theme for the FreeCAD forum, which you can use simply by visiting your forum preferences and switching to "FreeCAD dark".



FreeDesktop thumbnails in Start page

Image

When running on Linux, the FreeCAD start page will now show FreeDesktop thumbnails when available, that is, file thumbnails saved by file managers or any other application that follows FreeDesktop specifications (Gimp, etc..).

Note that FreeCAD will not run any thumbnailing service by itself, only locate and use existing file thumbnails if available.

I plan to extend this to other platforms too, but have not much clue to where to find those thumbnail files. If you know anything about that, let me know!

By the way, some long, long time ago, I made a DXF thumbnailer for Linux, that you might find useful (it still works!). I tried doing one for dwg using LibreDWG's dwg2svg utility, but unfortunately the svg it creates is rarely usable...



Integrated 3dfindit.com into BIM library

Image

The 3dfind.it website is a large catalog of 3D models available, both for free and for fee on the internet. It offers since a couple of months a full FreeCAD plugin, which integrates 3DfindIt directly into the FreeCAD interface.

I now also added a 3DFindIt button to the BIM Library dialog, so you can now also search 3DFindIt directly from that tool, with or without the plugin installed (it doesn't use it, it just sends you to the search results page on the web).



Workaround for orientation bug in TechDraw views

Image

When using TechDraw arch views and solid rendering mode, the view sometimes appears with a different rotation than when using wireframe rendering mode. This is due to OpenCasCade's HTL (Hidden Line Removal) algorithm, which produces the wireframe view, so we unfortunately cannot fix it from within FreeCAD.

This is usually of no consequence, you can simply use the **Rotation** property to give your view the correct rotation. But in some cases, where a view is made of a mix of both modes, you cannot solve it that way. Typically, dimensions and other 2D elements in a same Arch view don't have the same orientation of the underlying solid rendered view. There is now a workaround possible to give both parts of the view the same orientation, by tweaking the rotation of the solid render.



Updated CADExchanger addon

Image

CADExchanger is a paid (there is a 30-day free trial), multiplatform application that converts between a large array of commercial CAD formats, such as DWG, SolidWorks, Siemens-NX, Catia and many more. It can be used by FreeCAD to import and export from/to all these commercial file formats, something that would otherwise be very hard or impossible for an open-source project like FreeCAD, as these formats would all require extensive decoding and reverse engineering.

The CADExchanger addon, that you can install from the FreeCAD addons manager found under menu Tools, is free and open-source, but it requires the CADExchanger app to be installed on your computer. Once this is done, FreeCAD will transparently open, import and export from/to all the file formats supported by CADExchanger.

The addon has now been updated to work with the newest version of CADExchanger.





New WebGL exporter

Image

This has not be coded by me, but I found it worth mentioning here, since I had made the first exporter many years ago and it was really decaying. The new one now has a much better interface, and even offers you additional tweaks such as enabling or disabling objects or changing the color.



Release 0.19 plans

This is obviously a hot subject, and, as you certainly know if you've followed FreeCAD for some time, "it's done when it's done", which means, there is no scheduled date, and there won't be. However, we all more or less try to prepare things for it now, and are all more or less in feature freeze mode, which means we don't add any new features but only fix things. There are still a couple of blocking bugs, but it shouldn't take that long now.

You can already test and use the 0.19 version, which is pretty stable. You can have a look at the release notes which are being written. You can also help us to make the release happen faster by helping translation, or reporting or triaging bugs.



Save/restore annotation styles

Image

The annotations style editor now features import and export buttons, so you can export your current styles to a json file, or import them back in another file. Importing will overwrite any existing style with a same name.



Webdoc repo

The FreeCAD API documentation which is generated automatically from the source code, and was previously uploaded manually from time to time, is now handled by a git repository, which will make it much easier to keep updated, and hopefully will motivate more people to work with it.



Additional colors in layers

Image

Draft layers now have received an additional **print line color**, which can be set from their properties or using the Layers manager tool from the BIM workbench. When that color is set, it is used on TechDraw pages instead of the object line color.



TechDraw space projection bugfix

Image

A small but useful fix, when TechDraw views are created, that contain spaces, the label of those spaces is now printed at its original place in the model when viewed in top view, but at the center of the space in other view directions.



IFCjson support

IFCJson is now an additional IFC export format available from FreeCAD. It requires the IFCJson python module installed, which must be done manually at the moment. Internally, it builds the IFC document exactly as the original IFC format export, but at the end it is converted to IFCJson before being written to disk.

IFCJson has still not much use, so far I think only BlenderBIM and a couple more apps support it, but people at BuildingSmart seem eager to push it forward, so it's interesting to keep an eye on it. And it's always nice to support something before all the big (commercial) guys out there ;)



libreDWG support

libreDWG is a free and open-source software component to read and write the proprietary DWG format. A lot of sweat and ink has already been spent over the years as to why libreDWG is not used more in other open-source projects (check the wikipedia page) but to make it short, its license is too strict to be used in most open-source projects, and it actually prevents bundling it withing FreeCAD.

Just for the story, for who is not used to the open-source license havoc, know that it can sometimes be a real hell, as there are a great many, with small differences that provoke infuriated and never-ending debates over what is compatible or not and epic philosophy clashes. However, it is also those vibrant, active and dedicated (and sometimes very nit-picking) debates that actually make the solidity of all the open-source world and turn it legally strong.

Now, if libreDWG's **dwg2dxf** and **dxf2dwg** utilities are found on your system, they will be used by FreeCAD at DWG import or export instead of the ODA convertor. You are responsible, at the moment, to install libreDWG yourself. On Linux it's relatively easy to compile it yourself, I don't know of any handier way for other platforms.

This is annoying but at least it allows us to use it without having to bundle it with FreeCAD. Hopefully if the use of libreDWG grows, better packaging alternatives will start to appear.

From what I have tested so far it works really well, I still need to test with very recent and more complex DWG files, though. Any help is welcome there!



Red/green/blue Draft grid axes

Image

The main axes of the Draft grid will now be shown in red, green or blue if they match the global X, Y and Z axes, as they appear on the small location widget at the lower right corner of the FreeCAD 3D window. This is consistent with many other 3D applications such as Blender or SketchUp and a nice visual help when switching views often. You can disable this in the Draft preferences if you'd like to revert to monochromatic axes.

Aside many other bugfixes, that's it for this one I think, thanks for reading and see you net month!
benkoren
Posts: 4
Joined: Fri Mar 19, 2021 3:11 pm

Re: BIM/Arch development news articles from Yorik's blog

Post by benkoren »

Thank you very much for this update, Yorik.

I do have one question though: in regards to the new layer manager, it was said that "When that color is set, it is used on TechDraw pages instead of the object line color." However, I'm not seeing this in my attempt in which I've created a Draft object, added it to a Layer, set the Line Print Color, added it to a Section View, and used that to create an ArchView within a TechDraw document. Am I correctly understanding the intended workflow for this new feature?

(For more context, I'm attempting to create an Electrical-Mechanical diagram.)

Thank you.


(EDIT: This issue was addressed over in this thread: https://forum.freecadweb.org/viewtopic.php?f=23&t=57504)
Last edited by benkoren on Thu Apr 08, 2021 12:49 pm, edited 1 time in total.
lalberts
Posts: 87
Joined: Fri Feb 05, 2016 2:40 pm
Location: Esslingen am Neckar

Re: BIM/Arch development news articles from Yorik's blog

Post by lalberts »

need to grub on OSArch.org.. they have a list of applications suitable for AEC purposes.
diagrams.net ?
then one would like to have the intelligence within the diagram. graphs? coupled to openmodelica for simulations?
KiCAD is for electronics..wonder how it could apply for building electrical equipment.
QelectroTech.org is also such an attempt.
Good Luck
Lukas
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: BIM/Arch development news articles from Yorik's blog

Post by paullee »

yorik wrote: Ping
Looking forward to another news :)
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: BIM/Arch development news articles from Yorik's blog

Post by ragohix769 »

paullee wrote: Wed Apr 28, 2021 6:53 pm
yorik wrote: Ping
Looking forward to another news :)
Me too :-) I check every day Yorik's Blog to see any news about Arch/BIM FreeCad :-)
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: BIM/Arch development news articles from Yorik's blog

Post by bitacovir »

paullee wrote: Wed Apr 28, 2021 6:53 pm

Looking forward to another news :)
ragohix769 wrote: Thu Apr 29, 2021 12:10 pm
Me too :-) I check every day Yorik's Blog to see any news about Arch/BIM FreeCad :-)
If you supported Yorik in Patreon, you could demand updates. ;)
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: BIM/Arch development news articles from Yorik's blog

Post by paullee »

Indeed, wondering Werner has no channel for sponsor?

EDIT: I select Patreon :) FreeCAD is on Liberapay then :D The process is very easy..


Let's support Yorik and FreeCAD !
User avatar
ragohix769
Posts: 565
Joined: Sat Jul 18, 2020 7:04 am
Location: Rome - Italy

Re: BIM/Arch development news articles from Yorik's blog

Post by ragohix769 »

bitacovir wrote: Thu Apr 29, 2021 6:31 pm If you supported Yorik in Patreon, you could demand updates. ;)
I'll do for sure :D
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough :-(
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same :-)
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: BIM/Arch development news articles from Yorik's blog

Post by yorik »

Cross-posting from https://yorik.uncreated.net/blog/2021-0 ... -september

Image

Hi all!

I know, there has been almost a year since last FreeCAD BIM development update (I have written a couple of related articles on the way, though). There are several valid reasons to this, basically I've been quite busy with more administrative stuff with FreeCAD, but I'm afraid it might also be due to shameless natural laziness...

Anyway, here we are finally, and since I also haven't stayed without coding, I dare to say there is a lot of new stuff. There is (much) more to come too, but that's for another report...

Most of the coding I've been doing this year is aimed at improving the BIM model to 2D process. This is one of the areas of FreeCAD that still didn't offer a really fluent workflow, and one of the most sorely needed area to be able to use FreeCAD as a full BIM platform.

If you ever used Revit, I often think Revit is no so good for modelling, but it is a real pleasure to produce views and annotate them. It's fast and convenient to place dimensions, texts and all these annoyances that you often find in other CAD apps, like configuring texts and styles, is really simple and out of your way so you can just place and align annotations.

I dare say we're there with FreeCAD too now, and we can produce 2D documents as good as any other CAD or BIM app, and with basically the same speed and ease. Most of the features below are rather small, but together they make the whole workflow much better and comfortable.

Thanks a million to each of you who support me on Patreon or Liberapay, specially for your patience while I wasn't writing anything here. As things are getting a bit calmer for me now, I'll try to resume posting once per month.

So here we go!



Foreword

Almost all the features presented below deal with a BIm -> Draft -> TechDraw workflow. That means, there is an intermediary, Draft-based step between your BIM model and the final TechDraw page. The typical workflow is:

1. Model your building using BIM or any other FreeCAD tools
2. Use Building parts for your levels (not mandatory, but they carry an automatic, built-in section plane)
3. Place Section planes where you want sections and elevations (and plans if you didn't use Building parts)
4. Create Shape 2D views from your Building parts and section planes
5. Create other Shape 2D views for views that cut through your model, and set them in Cut Faces mode. That way, you can give a different aspect to viewed and cut geometrty
6. Annotate these views with texts, dimensions, symbols, hatches...
7. Put everything related to one view (Shape 2D views, annotations,...) into one same group or Building part
8. On a TechDraw page, create a TechDraw view from that group or Building part.

This might seem annoying, unneeded, counterproductive. But it turns out to be very fast. It separates the whole computation (which is the main speed hog in the process) into two distinct processes: 1) The sectioning of the BIM model to obtain 2D views, and 2) the turning of that 2D data into TechDraw elements.

By inserting all the annotation phase in the middle, between these two operations, we make it depend on only half the computation. And in turn, since everything is 2D already, the second step is very fast. You also get a much more reliable DXF/DWG export possibility, at the view level.

This is also not different than what many other BIM applications such as Revit do, where there is an intermediary "view" system between your model and the final page. This is exactly what we're aiming at here.

The only difference, up to now, is that your 2D views live in the same space as the BIM model. This has its advantages too (one can easily snap between the two, etc), but at some point it probably won't be too hard to separate the 2D contents into dedicated views.

Image

I really encourage you to explore this workflow. I have used it for several projects now, and it turns out to be very stable, fast and powerful.

Here are the improvements I've added these last months:



"Apply to dims/texts" button

Image

The Draft styles dialog allows you to quickly set up a style for texts and dimensions. It now features a new button at the bottom, that applies the style currently set in the editor to all texts and dimensions in the active document. If you are using different styles for, for example, different clients or jobs, this allows to quickly convert one document to another style.



BIM Leader tool

Image

This is a very simple tool, now available in the BIM workbench: It is simply the same Draft Polyline tool, but it will automatically add an end arrow (following the current dimension style) to it and take the text color instead of the normal line color.

This makes it really easy to place leader annotations: Place your text first using a common Draft Text, then use it tool to place a leader line, starting from your text and ending where it should point at.

Of course there is already a Draft Label tool, that achieves ore or less the same result, with a couple of advantages (the text can be automatic, and the text stays "attached" to the leader line), but I found this workflow very fast and flexible, since the leader lines are simple polylines. For example, you can edit/stretch several of them at once, or delete them without deleting the text, etc.



Move TechDraw views

Image

When you begin to deal with multiple TechDraw pages, you begin to need to do a lot of copy/pasting operations, for example to duplicate view titles and annotations. The main problem is, when you copy/paste a TechDraw view, it lands in the document root, outside a page. If you add it to a page via Python (`myPage.addView(myView)`), not only it is tedious, but its position is reset to the center of the page.

Now, in the BIM workbench, once you have pasted a view (or even with any other view), right-clicking it shows a new Move to page... option, that allows you to pick an existing page to move the view to. Position won't be reset anymore.



Background color switch button

Image

If you are like me, sometimes you like to use the world-famous FreeCAD gradient background, mostly when looking at the model in perspective view, other times you prefer a flat, white (or black if you are AutoCAD-nostalgic) background. But the process of going through the preferences screen is tedious.

Cry no more! The BIM workbench now features an easy button to switch between the two. Make sure both gradient and simple colors are correctly configured in preferences, and you're set!



Create Draft texts when using the C++ DXF importer

The new default C++ DXF importer of Draft was still creating older Annotation objects from the texts found in the DXF file. This usually gave poorly looking imports, with wrongly configured texts. The importer will now create Draft Texts instead, which correctly take your current styling settings. Your DXF files will now look immediately more decent on import!



Texts are now supported by Draft Edit

The Draft Edit command is one of those versatile commands I use all the time. It works similarly to Blender's TAB key to switch between object mode and edit mode (I gave my Draft Edit command the E,E shortcut, it works pretty well for me). It works with almost all Draft objects, but one was missing: The text object. This is now solved, when edited, the text will show you the same edit task panel used at text creation. This alone is a huge speed-up when working witch a lot of annotations.



Edit order tool

Image

Similar to the Path Group tool, the BIM workbench now adds a right-click option to reorder the contents of groups (or any other object with a Group property, such as Building parts). Upon choosing that option, a task panel opens that allows you to reorder child objects by drag-and-dropping them. You can also sort the children alphabetically automatically.

This has cosmetic uses, only to reorder your model contents and keep things better organized, but it has another very important use: When producing a TechDraw view from a group of 2D objects, the order is important. As that view is created in SVG format, each object is added to the SVG result in the group order, which means the first objects are drawn before the next ones. Some objects can therefore hide other objects that come earlier in the list. This is usually not a problem if the view is made only of lines, but can be a problem if some of the objects have faces.

With this tool, it's now possible to replace everything in the right order and obtain perfect-looking TechDraw views.



Fix non-XY text positioning in techdraw

Image

When projecting texts that weren't directly drawn on the XY plane on a TechDraw view, there were often problems, and objects with automatic text, such as Spaces, were often not drawn correctly when viewed in non XY projections (in section views, for example).

This is now fixed and much more reliable. Space labels are now drawn at the center of the space by default, when viewed in non-XY directions.



Support for global DXF variables at export

The DXF exporter of FreeCAD is now able to write global DXF variables, which allows us now to export basic document-wide things like default text or dimension styles.



Grabcad BIM library tool

Image

Even with all the BIM objects sites out there, most of which already supported by the BIM Library tool, it is still hard to find proper, well-modelled BIM objects such as appliances or furniture for FreeCAD. On most of these sites, objects are published under proprietary formats, and the IFC version they propose is a low-quality mesh export that is almost unusable.

GrabCAD, which does a lot in the CAD world but is often unknown to BIM people, also manage a very interesting objects library fueled by user contributions. Although it is not principally BIM-oriented, objects are often well modelled and published in reliable formats. By browsing their library and activating the STEP/IGES filter, you will encounter objects that import with a very high quality into FreeCAD. I would definitely recommend looking there when you need basic, default objects such as chairs, sinks, washing machines, etc.

From the BIM Library tool, you can now search directly the STEP/IGES-enabled objects on GrabCAD.



Horizontal / vertical dimension tools

Image

This is a very small cosmetic tweak, but sometimes these have a surprising impact on the general workflow and drawing speed... In he BIM workbench, the Dimension icon has now been split into three: Horizontal, vertical, and free-directional (aligned). These three buttons execute the same command, but start it with different setups. The former, free-directional tool is still there, and it still allows you make horizontal or vertical dimensions too, by pressing SHIFT while drawing.



Alternative BIM Icons for arch component, draft shape2dview, page and view tools

Image

This is another cosmetic fix, but since I'm trying to promote the BIM to Draft to TechDraw workflow, changing the icons to reflect that workflow more has its meaning.

These changes are only in BIM so far so people can test, but the idea is of course to unify everywhere later on.



Imperial scales macro

Image

This is a very simple-and-stupid macro that prints a table of common imperial drawing scales, and the corresponding factor to be used in TechDraw views.

Should we embed this somewhere? Any idea how?

If you are interested in the making-of, this macro was simply created with QDesigner, then converted to a PYthon script using pyside-uic and the two last lines were added to make the dialog show when the macro is run.



Load/save Draft styles

Image

The Draft styles panel has gained load/save preset buttons, so you can save your styles for future uses. The styles are saved in a .json file that is located in your FreeCAD user folder and is easily editable.



Arch References can now fuse base objects by material

Image

When using an Arch Reference object to include a Building Part, there is now a new property on the reference object to fuse the shape geometry by material, so all solids that share a same material in the referenced file will be fused together, the same way as what was already available in the TechDraw Arch view. This is typically useful for walls, for example.

This allows you to separate completely your BIM model in one file, and the 2D drawings you create from it in another file. The files are therefore smaller, and there is also less computation happening, which gives a big boost in speed and comfort.



SWAG page

Want your own, official FreeCAD t-shirt? Yes, we now have a swag page!

It's not a webshop, mind you (we don't have the resources to maintain one just yet), just DIY instructions to get your very own.



Section depth settings

Image

The section plane object has gained a new *Depth* property, that indicates the maximum distance this section plane can consider. If you set a non-zero value there, the viewed objects will be clipped out past that distance.



Section plane marks

Image

I added a couple of new modes to he Arch axis so they can be used to represent secton marks on a 2D drawing. By setting their *Limit* property, the axis will be displayed as two short lines at each end instead of a continuous one. By setting their *Bubble style* to bar or arrow, they will appear as a section mark.

This will appear correctly on a TechDraw page, but I still have to adapt the DXF exporter to support it.

This is just a 2D symbol, and is not automatically tied to a section plane,for example, but that should be pretty easy to do, in most cases it's just a matter of tying the X position of the axis to the X position of the section plane.



Shape2Dview exclusion points

Image

This is a kind of experimental hack, but it could turn to be pretty useful: The Shape2Dview object has gained an *Exclusion Points* property, where you can indicate a list of 3D points. Any line of the Shape2Dview that passes through any of these points, is not drawn.

This basically allows to hide lines of a Shape2Dview. It is still a bit cumberstone to use, should certainly gain a good UI to set/manage those points (anyone interested in trying? ;) ), but I wanted first to see if the concept works and holds the distance.



Text spacing in draft style panel

A simple fix, the text spacing setting, which controls the distance between the dimension line and the dimension text, was missing in the Draft style panel. This is now fixed...



Topologic

Image

Topologic is a super interesting open-source application that allows to generate space, structures and more complex systems based on rules and relationships. It has other uses too such as providing an interface for energy analysis. With Topologic, you can study things such as floor/use ratios, distances to travel, or any other relationship, and have your building design driven by these values.

So far, Topologic was available only as a plug-in for some proprietary BIM applications. In the last months, the Topologic developers have done an amazing job at porting it to Python. As a result, it became instantly available to Python-hungry applications such as Blender or FreeCAD.

Furthermore, Topologic uses OpenCasCade under the hood, the same geometry engine as FreeCAD. This turns the geometry produced by Topologic instantly and natively translatable to FreeCAD geometry.

So far none of us has explored much the path of using Topologic inside FreeCAD, but it has already been tested successfully (it works!) and the Topologic people have also gone way forward in integrating it with Blender too. So all the pieces are there to make something cool :)

As you might know, all the Arch/BIM objects in FreeCAD are already able to use a shape generated by another FreeCAD workbench. I plan to extend this so they become capable to use shapes generated by other software and modules too. That would allow BIM objects, for example, to be made with Topologic or the amazing new native IFC framework of BlenderBIM...

Lots to play with!



Updated translation scripts

The main script has been updated to be much more straightforward to use, and now automatically adds any new language that reaches 25% of translated content. Strings are now updated more or less each week, which allows much better detection of problems.

Do you maintain a FreeCAD external workbench and would like to have it translated? We now have a series of tools and methods (included automation scripts) to do it properly.



Extended text tool

Image

The Text tool found in the BIM workbench, which was before just the original Draft Text tool, has now been extended to also produce a TechDraw Annotation if you use it on a TechDraw page.

Do you find this convenient? Or is it confusing? Tell me!



Arch unit override

The Dimension tool found in Draft and BIM workbenches already allowed you to force a dimension to be displayed in a given unit, no matter the current units settings of your FreeCAD session. It was just not possible to force the use of imperial arch style. Now, you can just use "arch" as a *Unit Override*, and the problem is solved!



New feature page

Image

I started a new Features page on the FreeCAD homepage, to better showcase the different powerful features of FreeCAD. To be extended!

Shape2dview autoupdate

Image

The Shape2DView object also gained an *Auto Update* property., that works the same way as TechDraw views: If you turn it off, the Shape2Dview is not updated automatically anymore when its source object changes. You need to right-click it and force update.

This allows for much more efficiency when you have many views of a same model in a document.



freecad.org

This is certainly the big news of this year: freecad.org is ours!!! It is not fully connected to the different parts of the FreeCAD web world (wiki, tracker, forum...) yet, but we go step by step to make sure nothing breaks existing links. This happened thanks to the KiCAD people who stepped in and made this possible. This is a huge step in having FreeCAD more recognised as a professional tool. Thanks a million, folks!

There is more to come soon in that area, stay tuned!



Hatch tool

Image

I kept the best (in my opinion) for the end: The Draft and BIM workbenches now have a proper Hatch tool. This still needs some testing, but this is how it works so far:

* You select an existing object containing faces, click the tool, and the faces get filled with a hatch pattern. If the base object changes, so does the hatching.
* It produces a standard Part shape, so it works everywhere (TechDraw, DXF export, booleans,...)
* It uses the TechDraw patterns code. By default it uses the included PAT file of TechDraw, but I would recommend googling for an acad.pat out there and use that instead... The default PAT file in TechDraw preferences will affect both TechDraw and this tool.
* The PAT file used by this tool is recorded in the object, so you can have several objects using different PAT files. Opening that file on a computer without the appropriate PAT files will open fine, but the hatch objects won't be modifiable. The PAT file itself is not included in the saved file.
* The TechDraw system doesn't handle well dashed patterns yet. So for now stick with patterns that have continuous lines (anyone up to trying to solve this? ;)
* The TechDraw algorithm only works well in the XY plane. So the Draft Hatch code translates all faces to the XY plane, calculates the hatch, and moves the hatch back to the face location. This is still buggy sometimes, so there is a Translate property that can be turned off, so it doesn't perform this relocation. If your base faces are in the XY plane, that option can be safely turned off. Here too, if someone wants to help me to look into the relocating bug...



That's it for this month, more to come soon, I swear!
paullee
Veteran
Posts: 5097
Joined: Wed May 04, 2016 3:58 pm

Re: BIM/Arch development news articles from Yorik's blog

Post by paullee »

Wow! Long news indeed! Have a glance and would be interested to test Topologic in FreeCAD, there had been some discussion in OSArch :D
Post Reply