Desctivating a cutplane from 2D script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 02:45 AM
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 (
Can anyone of you tell me how to bypass this bummer ?
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-27 01:47 AM
I think I have just found the solution , that can by pass my problem, but it's not optimised although it will work perfectly.
This solution needs a little bit of imagination.
- First, create 2 groups, one for the object in it upright position "
object_untrimmed", and the other for the cutting plane & the previous defined group " object_trimmed"; all at the top of the "3D Script".
- Second, always place the group "
object_trimmed", that way you will always get the correct cut plan representation in plans.
- Third, create a parameter for activating elevation on plan.
- Fourth, in the "3D Script" create an "if" condition that will place the "
object_untrimmed" rotated around one of the X or Y or Z axis.
That way you will always use the same "PROJECT2" (or one of its variants) for the same purpose view type.
- Fifth, in case you need to modify the Elevation on plan in the 2D view, you will have to remember that you will have to control it in the "3D Script".
- Sixth, don't forget to kill the groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 03:10 AM
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:
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.
AC22-28 AUS 3001 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 03:24 AM
I have already created the plan view using a cut (
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 (
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 03:35 AM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 03:36 AM
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
AC22-28 AUS 3001 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 04:16 AM
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:
But without the cutplane and with the modifications of @Lingswisyer, I get the following result
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
So I need the a way to get the first result, without recurring to a cutplane.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 04:55 AM
Once for the cut plan view with cutplane, and the second with the elevation on plan without the cutplane.
And I have failed .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 05:25 AM
If GLOB_VIEW_TYPE = 2 THEN !Plan view Rotx 90 endIf
Ling.
AC22-28 AUS 3001 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 05:34 AM
rotating around the X-axis is not the solution, and yes I have already tried it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-02-26 08:15 AM
AC22-28 AUS 3001 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |