Jump to content
Developer Wiki and Function Reference Links ×

How to spot Round Walls in VW 2022+ (all scripts broken)


_c_

Recommended Posts

In case you didn't notice, round walls don't respond any longer to the flag 89. Now they are all object type 68. All your scripts relying on objectType =89 are broken.

Similarly, in Worksheets you cannot restrict your criteria to T=89 or ROUNDWALL.

 

Searching for some sort of identifier I found this approach with GetArc, do you have any better?

 

 

GetVersionEx(major, minor, maintenance, platf, build);
vwVersion := Str2num(Concat(major, minor, maintenance));

{...}
  
IF vwVersion < 2700 THEN 
    isRoundWall := (GetTypeN(wallHandle) = 89)
ELSE BEGIN
    GetArc(wallHandle, startAng, endAng);
    isRoundWall := (startAng + endAng <> 0);
END;

 

 

Edited by _c_
Link to comment
  • Vectorworks, Inc Employee

Script?

Procedure WSGetWallType;
VAR
    s1 : STRING;
BEGIN
    CASE GetWallPathType(WSScript_GetObject) OF
        0: s1 := 'Straight';
        1: s1 := 'Round';
    END;
    WSScript_SetResStr(s1);
END;
Run(WSGetWallType);

Link to comment

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...