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

#294810
Hi there,

I´m creating a complex object that is being controlled by a myriad of parameters and conditions ... to which I have used cutplane and project2{4} to generate it's cut view in plan.

So I tried to generate an elevation view on plane of the object using project2 (along side the plan cut), and as expected , the elevation view on plan was presented with a cut.

Can anyone of you tell me how to bypass this bummer ?
#294812
Code: Select all
If GLOB_VIEW_TYPE = 2 THEN				!Plan view
	CUTPLANE 0, cutplane_height
endIf

Though, why are you using a cutplane? Project2{4} already creates cutplanes. If it is due to the object being a windows / doors instead of a "wall with openings" include:

Code: Select all
If GLOB_VIEW_TYPE = 2 THEN				!Plan view
	Rotx 90
endIf

The cutplane in Project2{4} only works in the z-axis, so for doors and windows which are modelled in the x/y-axis, you need to rotate the object for the cutplanes to work. Rather annoying as you can choose a view type which is made redundant in this version due to the above fact....

generate an elevation view on plane of the object using project2 (along side the plan cut)

If you are talking about creating multiple views of your object in the floor plan, this should also fix that as then the cutplane is contained withing the projection rather than externally to it.



Ling.
Last edited by Lingwisyer on Tue Feb 26, 2019 3:25 am, edited 1 time in total.
#294814
I think I didn't make myself clear :oops:

I have already created the plan view using a cut (because I couldn't find the right combination of parameters values using project2{4} and with it, it will fit just nice).

I have already used the GLOB_VIEW_TYPE, but what I need/wish is to be able to deactivate the cutplane in the 2D script (or another trick that would have the same result) so that I the elevation representation on Plan, alongside with the cut plan view.

Anyway, the a trial that wasn't good enough, is to pass the 2D & 3D script that generate those view to the Master Script, but it didn't work as was planned, as the cutend messes things up in the plan view
#294815
If you want the cut plane active only in the plan view then
Code: Select all
If GLOB_VIEW_TYPE = 2 THEN				!Plan view
	CUTPLANE 0, cutplane_height
endIf

... 3D model script ...

If GLOB_VIEW_TYPE = 2 THEN				!Plan view
	CUTEND
endIf

So this way both the cutplane and cutend will only activate in plan view.

Barry.
#294816
Code: Select all
PROJECT2{4} 3, -90,						!projection_code, angle,
	0, 1+2,							!useTransparency, statusParts,		
	1,							!numCutplanes,
	gs_fw_lower + gs_int_fw + 2*gs_louvre_width,		!cutplaneHeight1, ..., cutplaneHeightn,

	3+32, 1+2+4+8+64,					!method1, parts1,
	gs_fill_type,						!cutFillIndex1,
	gs_fill_pen, gs_back_pen,				!cutFillFgPen1, cutFillBgPen1,
	0, 0, 0,						!cutFillOrigoX1, cutFillOrigoY1, cutFillDirection1,
	gs_cut_pen,	1,					!cutLinePen1, cutLineType1,
	65,							!projectedFillIndex1,
	19, 19,							!projectedFillFgPen1, projectedFillBgPen1,
	0, 0, 0,						!projectedFillOrigoX1, projectedFillOrigoY1, projectedFillDirection1,
	gs_pen_2D, 1,						!projectedLinePen1, projectedLineType1

	4+64, 1+2,						!method1, parts1,
	gs_fill_type,						!cutFillIndex1,
	gs_fill_pen, gs_back_pen,				!cutFillFgPen1, cutFillBgPen1,
	0, 0, 0,						!cutFillOrigoX1, cutFillOrigoY1, cutFillDirection1,
	gs_cut_pen,	4,					!cutLinePen1, cutLineType1,
	65,							!projectedFillIndex1,
	19, 19,							!projectedFillFgPen1, projectedFillBgPen1,
	0, 0, 0,						!projectedFillOrigoX1, projectedFillOrigoY1, projectedFillDirection1,
	gs_pen_2D, 4						!projectedLinePen1, projectedLineType1

add2 0, 0.05
PROJECT2 4, -90, 3
Attachments
planele.jpg
planele.jpg (42.22 KiB) Viewed 366 times
#294817
Using a cutplane in 3D script and the following code

Code: Select all
project2{4}	3,	270,	0,	0,	1,		__h,

			3,	1+2+8,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1,

			3,	1+2+4+8,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1

And I get this result:
Capture.PNG
Capture.PNG (2.26 KiB) Viewed 351 times

But without the cutplane and with the modifications of @Lingswisyer, I get the following result
Code: Select all
project2{4}	3, 270,	0, 0,	1,		__h,
			3+64,	1+2+8+64,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1,

			3+64,	1+2+4+8,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1,
			1,	1,	1,	0.0,	0.0,	0.0,	1,	1
Capture2.PNG
Capture2.PNG (3.16 KiB) Viewed 351 times

So I need the a way to get the first result, without recurring to a cutplane.
#294818
Another thing that I tried to do is to create a condition in the 3D script that in some way should have forced to excute the 2D script twice.

Once for the cut plan view with cutplane, and the second with the elevation on plan without the cutplane.

And I have failed :( :( .
#294820
@Lingwisyer
rotating around the X-axis is not the solution, and yes I have already tried it out.