New experimental feature: Hi-res property in Arch

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: New experimental feature: Hi-res property in Arch

Post by paullee »

All 3 tabs of drawing views are fine in Win 7 though !

I just upgrade from Fedora / Przemof 0.17.10459 (git) to 10460. I am not sure if this make some difference - I notice the 1st drawing tab show the model now, but still not the 2nd and 3rd !?.... Oops, it find it is a random phenomenon - I open it and close it for a few times, the tabs randomly show something, part of them or nothing :?: And the drawing tabs order seems random.

Screenshot from 2017-03-11 08-27-48.png
Screenshot from 2017-03-11 08-27-48.png (154.71 KiB) Viewed 2717 times
Screenshot from 2017-03-11 08-30-55.png
Screenshot from 2017-03-11 08-30-55.png (127.09 KiB) Viewed 2717 times
Screenshot from 2017-03-11 08-37-38.png
Screenshot from 2017-03-11 08-37-38.png (148.79 KiB) Viewed 2717 times
Screenshot from 2017-03-11 08-38-24.png
Screenshot from 2017-03-11 08-38-24.png (148.73 KiB) Viewed 2717 times
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10460 (Git)
Build type: Unknown
Branch: master
Hash: 91c59c7910436c44ede608e29d9a90a287121a11
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
User avatar
Eneen
Posts: 61
Joined: Wed Aug 12, 2015 9:06 pm

Re: New experimental feature: Hi-res property in Arch

Post by Eneen »

I was thinking about:
none - will not display 3D at all (as archicad), useful for extreme modelling cases to show only part of model, maybe should be connected to "layer" properties?
User avatar
yorik
Founder
Posts: 13642
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: New experimental feature: Hi-res property in Arch

Post by yorik »

That exists already, just set "Visible" property to false :)
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: New experimental feature: Hi-res property in Arch

Post by paullee »

yorik wrote:This file implements it, for who wants to see it in action: https://github.com/uncreatednet/wikilab ... ilab.FCStd

scr.jpg
Hi, I am trying to use this feature and have a few problems:-

1. I have built a 'simple' version of a building by ArchWall in git 9747. When I try to use the latest git with Hi-Res support and open the file in latest git (10967), the property is just not there. I find I need to create the same object in latest version to get the Hi-Res link. Any workaround to avoid double-handling?

2. I have a 'full' / 'Hi-Res' of original model in a Building Object (see screenshot). I create a 'simple' version in ArchWall the Hi-Res / full model of the Building Object, and add the 'full' / 'Hi-Res' Building Object in the Hi-Res link. When I turn the display mode to "Hi-Res", everything disappear. "Hi-Res" does not work with building objects?

Thanks for any idea!

'Full' / 'Hi-Res' of original model in a Building Object
Screenshot from 2017-05-01 02-07-02.png
Screenshot from 2017-05-01 02-07-02.png (233.48 KiB) Viewed 2509 times
'Simple' version of a building by ArchWall - Link to full model of building object
Screenshot from 2017-05-01 02-07-40.png
Screenshot from 2017-05-01 02-07-40.png (243.94 KiB) Viewed 2509 times
Turn the display mode to "Hi-Res", everything disappear.
Screenshot from 2017-05-01 02-08-32.png
Screenshot from 2017-05-01 02-08-32.png (225.32 KiB) Viewed 2509 times
OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10967 (Git)
Build type: Unknown
Branch: master
Hash: 38388cf650ef49cbce48af5dd33bdbe2487c8cbe
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
damian
Posts: 583
Joined: Sun May 31, 2015 6:16 pm

Re: New experimental feature: Hi-res property in Arch

Post by damian »

Hello @paullee
paullee wrote:Any workaround to avoid double-handling?
1º) do a simple wall with FreeCAD 0.16. Save the file and close
2º) open the file with FreeCAD 0.17 and select the wall

Code: Select all

w=App.ActiveDocument.Wall
3º) give it the property

Code: Select all

from PySide.QtCore import QT_TRANSLATE_NOOP
wall.addProperty("App::PropertyLink","HiRes","Arch",QT_TRANSLATE_NOOP("App::Property","An optional higher-resolution mesh or shape for this object"))
save the file. It seems to work. does it?
Obviously, for a complete file, like your building, it's necessary a script
I hope it helps you
Goodbye
User avatar
yorik
Founder
Posts: 13642
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: New experimental feature: Hi-res property in Arch

Post by yorik »

I really need to make a system that updates the needed properties on file opening... Someone did that for the DrawingView and it works pretty well.

As for your issue, no, the HiRes object must have a shape, and the building doesn't have one, it's a simple group container...
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: New experimental feature: Hi-res property in Arch

Post by paullee »

yorik wrote:I really need to make a system that updates the needed properties on file opening... Someone did that for the DrawingView and it works pretty well.

As for your issue, no, the HiRes object must have a shape, and the building doesn't have one, it's a simple group container...
Thanks! This Hi-Res idea is great! I just find and am further testing Part Compound (and just note there is Arch Component but which is not parametric) with some success. (Maybe Xref could be added to the Display Mode as well? The Arch (any objects) may now be just an visual indicator / symbol of the referenced objects... lots of possibilities.)


However,
there seem to be some 'bug' in the Part Compound but the basic concept seems works - I just create a piece of arbitrary Arch Wall to house the whole Bldg Object, cloning and relocating the Flat Lines 'version' become quite easy, though file size grow almost 80% - (2 blocks in 2nd last image, 2 walls in last image). Now I just clone one building. I can create a Radiant City in FC? yet to test.

The 'problem' is the created Part Compound seems 'buggy' on appearance - there is some walls seems become slightly transparent and some lines of the models behind shown up (see screenshots 1st to 3rd images below - the walls are solid in original models before Part Compound). I remember there is discussion / updates that Part Clone etc. respect each of the visual properties of its components. I am not sure if this is related.

Screenshot from 2017-05-01 12-38-33.png
Screenshot from 2017-05-01 12-38-33.png (268.57 KiB) Viewed 2476 times
Screenshot from 2017-05-01 12-40-01.png
Screenshot from 2017-05-01 12-40-01.png (228.86 KiB) Viewed 2476 times
Screenshot from 2017-05-01 12-40-24.png
Screenshot from 2017-05-01 12-40-24.png (239.84 KiB) Viewed 2476 times
Screenshot from 2017-05-01 12-44-37.png
Screenshot from 2017-05-01 12-44-37.png (277.17 KiB) Viewed 2476 times
Screenshot from 2017-05-01 12-52-05.png
Screenshot from 2017-05-01 12-52-05.png (195.93 KiB) Viewed 2476 times
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: New experimental feature: Hi-res property in Arch

Post by paullee »

paullee wrote:
Now I just clone one building. I can create a Radiant City in FC? yet to test.
Further test !

1. Array of the Arch Object with Hi-Res does not work - simply an array of the Flatlines 'version' of the objects (the 4 wall on left of screenshots).
2. Clone works as tested before (not a complete bldg in the test shown, not head and bottom etc, just quick test to confirm the workflow works)...
2a. ... and with 1 block it is about 12mB file size
with 2 blocks it is about 22mB
... i made 4 blocks which are still about 22mB !!!
... (I want to try 30 blocks or more now :) )

Screenshot from 2017-05-01 13-16-58.png
Screenshot from 2017-05-01 13-16-58.png (203.28 KiB) Viewed 2476 times
Screenshot from 2017-05-01 13-17-31.png
Screenshot from 2017-05-01 13-17-31.png (265.7 KiB) Viewed 2476 times
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: New experimental feature: Hi-res property in Arch

Post by paullee »

damian wrote:Hello @paullee
paullee wrote:Any workaround to avoid double-handling?
1º) do a simple wall with FreeCAD 0.16. Save the file and close
2º) open the file with FreeCAD 0.17 and select the wall

Code: Select all

w=App.ActiveDocument.Wall
3º) give it the property

Code: Select all

from PySide.QtCore import QT_TRANSLATE_NOOP
wall.addProperty("App::PropertyLink","HiRes","Arch",QT_TRANSLATE_NOOP("App::Property","An optional higher-resolution mesh or shape for this object"))
save the file. It seems to work. does it?
Obviously, for a complete file, like your building, it's necessary a script
I hope it helps you
Goodbye

Definitely helpful, will test soon !
User avatar
yorik
Founder
Posts: 13642
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: New experimental feature: Hi-res property in Arch

Post by yorik »

Great tests! The size increase is most probably because some shape is duplicated somehow... Hard to tell. But indeed the Hi-Res system doesn't save anything on disk, so the size increaze should be zero.

Actually we could add a mode to the Draft clone that acts like the Hi-Res mode (it would clone only the coin node, not the shape), that might be pretty useful...

As for the transparency problem, I saw that too, it happens when a same shape has transparent and not transparent faces... Couldn't find what the problem is yet.
Post Reply