The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Everything about using Libraries and Library Parts - Doors/Windows/Objects/Stairs etc. (Example: How can I display a Transom above my Door?)

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, Gordana Radonic, nbalogh, mnguyen, gkmethy, Gergely Feher

User avatar
By Lingwisyer
#287627
Those lines are drawn manually in 2D. Project2 does not seem to show the edges of the Wallhole. I have manage to get a workable display of the Wallhole edges using a set of Planes to case the hole. They also allow me to set the material of the Wallhole. The down side of this is that these planes conflict with the wall itself in 3D...

I have now toggled these to show only in 2D. The wall hole has been resolved using the WallNiche command. Script can be found on this thread.

I found an page about the Project2{3} command on the page before the Project2{4} command. By the explanation provided it sounds like it is designed to work with a Cutplane and by the example object linked on the page, it is what I am wanting, though I cannot seem to get it to work...

Code: Select all
fill gs_fill_type
pen gs_cut_pen

Project2{3} 5, 90, 3+32+4096, 1+2+8,
	gs_back_pen,
	0, 0, 0



Ling.
User avatar
By Barry Kelly
#287628
In your 3D script have you set up the cutplane and SECT_FILL before the elements you want to project?
Make sure the cutting plane is in the correct position, angle and direction.

The example object in the HelpCenter works fine.

Barry.
User avatar
By Lingwisyer
#287631
Their object works fine for me. I have attempted to match my equivalent sections to no success so far.

Code: Select all
IF GLOB_CONTEXT = 2 THEN				!Plan view
	SECT_FILL gs_fill_type, gs_fill_pen, gs_back_pen, gs_pen_2d
	CUTPLANE 0, (gs_fw_lower + gs_int_fw + 2*gs_louvre_width)

	If abs(gs_louvre_opening_angle) > 0 then
			If abs(gs_louvre_opening_angle) < 90 then
					gs_louvre_opening_angle = 45
			endIf
	endIf

	If LouvreOri = "Horizontal" then
			Louvre_over = 0
	endIf

ENDIF

That is the code at the start of my 3D Script.




Ling.
User avatar
By Barry Kelly
#287662
GLOB_CONTEXT has been deprecated since version 20, so I wouldn't use it.
GLOB_VIEW_TYPE is the new command.

But I am not sure that will work because it is in your 3D script, and the 3D script is not used in plan view.
Yes the PROJECT2 is a projection of the 3D script, but I am not sure if it will invoke the GLOB_VIEW_TYPE = 2 in the 3D script.
If that makes sense.

Comment out that line and you should see if the PROJECT2 is working as you want it to.

I am not sure how you can invoke the CUTPLANE without experimenting myself.
In the example they have a manual switch which I guess you want to avoid.

I think this might be why there is the PROJECT2{4} where you set the cutplane and height in the command itself.

Barry.
User avatar
By Lingwisyer
#287668
GLOB_CONTEXT in the 3D script is executed before the Project2 in the 2D script. If GLOB_VIEW_TYPE is the successor, I would assume I should work as well.

The Cutplane is defined at the start of the 3D script, same as in the example object. The only difference there, is that mine is only active in plan view, but even disabling that limitation does not solve the issue.

Project2{4} creates contours at the heights defined in the script rather than an exclusion zone. That is all I have manage to get and how I have interpreted the introduction page.



Ling.
User avatar
By Barry Kelly
#287672
I just tried this in the sample object and it works fine.
Code: Select all
IF GLOB_VIEW_TYPE = 2 THEN
!IF GLOB_CONTEXT = 2 THEN		!!this one works as well but is deprecated
!if bUseCutPlane then                        !!comment out the manual cutplane option
	addz A/10
	cutplane{2} 60, bUseSameSurface	
	del 1
!endif                                                     !!comment out the manual cutplane option
endif
Barry.
User avatar
By Lingwisyer
#288175
The Cutplane works fine, but I cannot find a way to get cut fills to show...

It would appear that Project2{4} does not take into consideration the Projection Code when making it's cuts. When the Projection Code is set to 3 (plan), it works as expected. When Projection Code is set to 5 (Side View 2) you instead get a contour along the object as if you are looking at a cut from the side, hence why it was not working for me before.



Ling.
Last edited by Lingwisyer on Mon Oct 29, 2018 10:03 am, edited 1 time in total.
User avatar
By Barry Kelly
#288176
I believe it is all correct.
The cut planes are measured vertically from the X-Y plane regardless of the projection code, so you are seeing a side view with the horizontal cut planes.
Try it with a projection code of 6 (front axonometry) and you will see what you will see from the side.

Barry.
User avatar
By Lingwisyer
#288177
I have managed to get Project2{4} to produce the desired plan view by including a Rotx 90 in my plan view part of the 3D Script. Just have to get it to use the right line colours for the wall closure now.



Ling.
User avatar
By Lingwisyer
#289627
Back to fiddling with this window.

window.jpg
window.jpg (15.93 KiB) Viewed 628 times

Projection on the left, symbolic on the right.

So I have managed to get the symbolic representation to show the correct lines but the lines are all shown hairline... The pens used are the same between the Projection and Symbolic views. The Wallhole created by the window tool also takes the Cut Pen used in the script resulting in the wall closure using the pen of the window instead of the wall...

On a side note, I am not sure why the wall beyond in the Projected view is not shown. Is it due to the interaction with the Wallhole command?



Ling