Jump to content
Sign in to follow this  
DanielB

Setting Wall tool defaults

Recommended Posts

Is there a way to set the wall tool defaults for a document from a script? I would like to have several scripts that will set different wall configurations. I could use the SetWallPrefStyle but have 10 installations with VW Fundamentals which don't have access to wall styles.

Share this post


Link to post

We're using 12.0.1 Fundamentals on ten computer's and one with Architect. My understanding is fundamentals doesn't allow access to styled walls, hense the need for a work around.

thanks for any help.

Share this post


Link to post

This actually works, at least in some cases.

PROCEDURE TwoByFourWallLow;

VAR

h :HANDLE;

boo :BOOLEAN;

BEGIN

NameClass('plan-walls low');

CallTool(-208);

h := FSActLayer;

boo := SetWallHeights(h,48,48);

boo := SetWallThickness(h,3.5);

END;

RUN(TwoByFourWallLow);

What's not working is the script only sets the first wall segment created. The width and height of the second segment reverts to whatever the tool preference was befor. I would think VectorScript capable of setting the Wall Attributes Preferences.

Share this post


Link to post

It seems the WallObject Fields are required before their preference attributes can be set via script. Otherwise as noted the script operates on the First Active Handle in the Layer if the object is a wallobject then reverts to attribute preferences for all subsequent objects.

NameClass('Wall');

SetZVals(1'0.000000000000002",1'0.000000000000002");

DoubLines(1'0.000000000000002");

ClearCavities;

PenSize(1);

PenPat(2);

AddCavity(FALSE,0.8125",0.8125",0);

AddCavity(FALSE,-0.8125",-0.8125",0);

FillPat(1);

PenFore(0,0,0);

PenBack(65535,65535,65535);

FillFore(0,0,0);

FillBack(65535,65535,65535);

Wall(-6'0.000000000000014",0",6'0.000000000000014",0");

WallCap(FALSE,FALSE,FALSE,0",0");

WallCap(TRUE,FALSE,FALSE,0",0");

Share this post


Link to post

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.

Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...