Arch Reference - lightweight mode

Info about new community or project announcements, implemented features, classes, modules or APIs. Might get technical!
User avatar
Site Admin
Posts: 11567
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil

Arch Reference - lightweight mode

Postby yorik » Thu Jul 11, 2019 11:01 pm

I can't find the original announcement topic for Arch References... Would I have forgotten to write one? :oops:

In git commit 7eccda34d09 the Arch Reference tool now has a new lightweight mode.

How it works:

The Arch Reference allows you to insert, in the current document, an object that is a copy of an object from another file (Part-based or BuildingPart only). If the other file gets changed, the reference will change too (it gets marked to recompute, actually)

Internally it's quite simple, the shape and the color of the target object are loaded from the file (by reading the zipped contents, no actual file opening is performed, which is quite fast) and applied to the reference object.

There were two modes previously: Transient and non-transient. In non-transient mode, the reference's shape is saved with the file ("normal" behaviour), while in transient mode, the shapes of references get discarded when they are hidden (and reloaded when they are made visible again). The file gets much smaller, but there is an additional time to reload when making the object visible.

Now there is a third mode: Lightweight. It doesn't load the full shape of the object, but only its OpenInventor representation. So the object appears in the 3D view, as it was a "real object", but it has no real shape behind.

Note that this only works with BuildingPart objects saved after the commit above, with their "Save Inventor" property turned on.
Screenshot from 2019-07-11 19-40-14.png
Screenshot from 2019-07-11 19-40-14.png (348.13 KiB) Viewed 395 times
What happens under the hood when you turn the "Save Inventor" property on is that an OpenInventor node of the BuildingPart is generated and saved in a text file inside the FCStd file. So the Arch Reference object is able to load that file.

To tell the truth, I thought the performance gain would be very high over the "Normal" mode, but it's not that baffling.. I'm curious to see others testing this, though.
User avatar
Posts: 712
Joined: Sat Apr 19, 2014 6:23 am

Re: Arch Reference - lightweight mode

Postby bitacovir » Fri Jul 12, 2019 4:02 pm

Cool!! I´ll try once it is available.
(just seeing your screenshot I remember that you can split the 3D window. You could implement that feature too.)
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

My Blog
Mini Airflow Tunnel Project