Jump to content
Developer Wiki and Function Reference Links ×

Setting Wall tool defaults


DanielB

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.

Link to comment

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.

Link to comment

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");

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