Jump to content

How to reset tops of walls that have previously been fitted to roof


Recommended Posts

Hi... Got a script for that sir!

Made it into a plug-in for convenience... you could do the same...

Here it is...

PROCEDURE RemoveWallPeaksProc;

VAR

WallZ : REAL;

WallDZ : REAL;

BEGIN

GetLayerElevation(GetLayer(FSActLayer), WallZ, WallDZ);

WallDZ := WallDZ / (25.4 / GetPrefReal(152));

ClearWallPeaks(FSActLayer);

HWallHeight(FSActLayer, WallDZ, WallDZ );

ResetObject(FSActLayer);

END;

RUN(RemoveWallPeaksProc);

:-) ENJOY!

Edit: Just so you know though; they make the wall horizontal, but at the Delta Z that the Design Layer is set to. So, if for some reason you have it set to 0, do not be surprised. Oh... Just select the wall and run the command/script...

Edited by Farookey
Link to comment
  • 3 weeks later...

PROCEDURE RemoveWallPeaksProc;

VAR

WallZ : REAL;

WallDZ : REAL;

BEGIN

GetLayerElevation(GetLayer(FSActLayer), WallZ, WallDZ);

WallDZ := WallDZ / (25.4 / GetPrefReal(152));

ClearWallPeaks(FSActLayer);

HWallHeight(FSActLayer, WallDZ, WallDZ );

ResetObject(FSActLayer);

END;

RUN(RemoveWallPeaksProc);

Great script, Farookey. Doesn't seem to work in VW2012, though. Does anyone have any idea why?

Link to comment

It does work here, you just need to make sure you've only selected one wall that has a wall peak.

Here is the script again, rewritten a little bit so it will work on all selected walls on the active layer.

PROCEDURE RemoveWallPeaksProc;
{original script by Farookey}
{all selected walls on the active layer will get their wall peaks removed}
VAR
LayerH : HANDLE;
Criteria : STRING;
WallZ : REAL;
WallDZ : REAL;

PROCEDURE RemoveWallPeaks(h : HANDLE);
BEGIN
	ClearWallPeaks(h);
	HWallHeight(h,WallDZ,WallDZ);
	ResetObject(h);
END;

BEGIN
LayerH:=ActLayer;
GetLayerElevation(LayerH,WallZ,WallDZ);
WallDZ:=WallDZ/(25.4/GetPrefReal(152));
Criteria:=Concat('(L=',Chr(39),GetLName(LayerH),Chr(39),') & (T=WALL) & (SEL=TRUE)');
ForEachObject(RemoveWallPeaks,Criteria);
END;
RUN(RemoveWallPeaksProc);

Link to comment
  • 4 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...