Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

How to adjust the "elevational view" of an object?

rob2218
Enthusiast
Can anyone here gimme the quick lowdown on the best way to adjust the 2d view "in elevation" of an objects programming code?

Meaning..I'm able to adjust how an object looks in plan by removing the 2d written script information in the 2d view but how do I do the same thing in the 2d elevational view the 3d model generates???

thanks,
...Bobby Hollywood live from...
i>u
Edgewater, FL!
SOFTWARE VERSION:
Archicad 22, Archicad 23
Windows7 -OS, MAC Maverick OS
13 REPLIES 13
rob2218
Enthusiast
here's the image (a picture "IS" worth a thousand words).
...Bobby Hollywood live from...
i>u
Edgewater, FL!
SOFTWARE VERSION:
Archicad 22, Archicad 23
Windows7 -OS, MAC Maverick OS
Erich
Booster
The elevation view is an aspect of the 3D view. In the case you illustrate, I would guess that this is an imported object from another program. I believe that this could be fixed by adjusting the status settings of some of the objects in the code, but I can't tell you more without seeing the object's code since I do not import object very often.

Perhaps someone who does can give you more pointers or you could post the object to see if someone can clean it up.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
rob2218
Enthusiast
YES....the object I imported came from 3dWarehouse from Google.
it's a Kitchenaid microwave/hood combo unit.

it's what I need but..as you can see the 2d elevational view generated from the 3d model object has hiddeous lines everywhere....I know how to make the 2d plan view simple but...the 2d elevational view??....humm...not sure there.

Anyone else feel free to chime in?....anyone, Bueller, Bueller?...
...Bobby Hollywood live from...
i>u
Edgewater, FL!
SOFTWARE VERSION:
Archicad 22, Archicad 23
Windows7 -OS, MAC Maverick OS
Karl Ottenstein
Moderator
With the GDL editor open with the object, you can capture the 3D view to the Symbol editor and clean it up. Put it in its own Fragment. Clean up the plan view in its own Fragment. Then, a 2D script can test where it is being called from (plan or elevation/section) and display the appropriate symbolic view by turning on the appropriate Fragment.

Haven't tried this in many years, so cannot remember if there is any shifting (in coordinates) of the displayed symbols vs the actual 3D counterpart.

It seems like the process described above could be automated by the object importers (3ds, warehouse, etc) if GS had the time to spiff them up ... leaving the only work for users to be the visual editing of the symbols...

Cheers,
Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
rob2218
Enthusiast
How does one actually "capture the 3d view to the symbol editor"? thats where I'm not sure what commands I'm doing.

How do you actually "put it in it's own Fragment"?
...Bobby Hollywood live from...
i>u
Edgewater, FL!
SOFTWARE VERSION:
Archicad 22, Archicad 23
Windows7 -OS, MAC Maverick OS
Karl Ottenstein
Moderator
Set your 3D projection to be top or front view, set 3D engine to Internal, mode to Hidden Line, then click the Add to Symbol button shown in the attached.

Open the Symbol window and change the fragment (like layers) for the linework to one of the 16 fragments available. Write your script to make this display. (Maybe someone else will take the time to show you the script - kind of busy at the moment.)

Cheers,
Karl
Screen shot 2011-04-12 at 5.46.53 PM.png
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
Erich
Booster
Ah, yes! Karl, we can always count on you for sage advise. The beauty of this method is it does not rely on the model for the elevation view then. It is merely a 2D drawing much the same as the plan view.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Barry Kelly
Moderator
GLOB_CONTEXT=4 will determine if your object is being viewed in a section or elevation but it won't determine the direction that it is being viewed from.
So the microwave will look the same in every elevation.
The trick then is to hide the layer of the object in side / rear view elevations if you don't need to see it in those.

If you do need to see it from all elevations then I think you are back to adjusting the code from the original object if you can to simplify it.


FRAGMENT2 fragment_index,use_current_attributes_flag
This is the command you need to show the fragment you create.


i.e.

if GLOB_CONTEXT = 4 then
FRAGMENT2 fragment_index,use_current_attributes_flag
endif


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Karl Ottenstein
Moderator
Barry wrote:
GLOB_CONTEXT=4 will determine if your object is being viewed in a section or elevation but it won't determine the direction that it is being viewed from.
So the microwave will look the same in every elevation.
The trick then is to hide the layer of the object in side / rear view elevations if you don't need to see it in those.

If you do need to see it from all elevations then I think you are back to adjusting the code from the original object if you can to simplify it.
Right.
Spent the entire day doing taxes, so have a good excuse for my brain mis-firing. Hope the damage isn't permanent. 😉

Thanks, Barry.

Karl
One of the forum moderators
AC 28 USA and earlier   •   macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB