DanielB Posted April 28, 2006 Share Posted April 28, 2006 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. Quote Link to comment
Guest Posted April 29, 2006 Share Posted April 29, 2006 What version of VW is this? Quote Link to comment
DanielB Posted May 3, 2006 Author Share Posted May 3, 2006 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. Quote Link to comment
Guest Posted May 3, 2006 Share Posted May 3, 2006 You need Architect to do that. Quote Link to comment
DanielB Posted May 8, 2006 Author Share Posted May 8, 2006 So, in Fundamentals, there is no way to set the Wall Attributes from a script? Quote Link to comment
DanielB Posted May 8, 2006 Author Share Posted May 8, 2006 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. Quote Link to comment
islandmon Posted May 10, 2006 Share Posted May 10, 2006 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"); Quote Link to comment
Recommended Posts
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.