lostboy Posted February 17, 2008 Share Posted February 17, 2008 I have been trying to figure this one out for a while. I'm trying to pull data out of Vectorworks, initially wall data. I need the 3d co-ordinates of all external points of a wall. I have figured out a few methods to use, such as Get2dPt(), which will give me the start and end, and I can get the height to figure a few things out. This doesn't help me when the panel is an odd shape, and not rectangular, which would be quite common. I have searched through the Function Reference a few times, and have been unable to find anything to give me this data. Quote Link to comment
islandmon Posted February 17, 2008 Share Posted February 17, 2008 Try this neat trick ... just write a script to do this : 1) Create a WALL 2) Convert it into 3dPolys 3) Export Vectorscript here's the result for a Wall duplicated & converted: {Object Creation Code} NameClass('None'); SetZVals(0",5'0"); DoubLines(1'0.000000000000002"); ClearCavities; PenSize(1); PenPat(2); AddCavity(FALSE,0",0",0); AddCavity(FALSE,0",0",0); FillPat(1); PenFore(0,0,0); PenBack(65535,65535,65535); FillFore(0,0,0); FillBack(65535,65535,65535); Wall(0",0",10'0",0"); WallCap(FALSE,TRUE,FALSE,0",0"); WallCap(TRUE,TRUE,FALSE,0",0"); {the 3dPoly data of interest } BeginGroup; ClosePoly; Poly3D( 0",10'6.000000000000002",0", 10'0",10'6.000000000000002",0", 10'0",9'6.000000000000002",0", 0",9'6.000000000000002",0" ); Poly3D( 0",10'6.000000000000002",5'0", 0",10'6.000000000000002",0", 0",9'6.000000000000002",0", 0",9'6.000000000000002",5'0" ); Poly3D( 10'0",10'6.000000000000002",0", 10'0",10'6.000000000000002",5'0", 10'0",9'6.000000000000002",5'0", 10'0",9'6.000000000000002",0" ); Poly3D( 10'0",9'6.000000000000002",0", 10'0",9'6.000000000000002",5'0", 0",9'6.000000000000002",5'0", 0",9'6.000000000000002",0" ); Poly3D( 0",10'6.000000000000002",0", 0",10'6.000000000000002",5'0", 10'0",10'6.000000000000002",5'0", 10'0",10'6.000000000000002",0" ); Poly3D( 10'0",10'6.000000000000002",5'0", 0",10'6.000000000000002",5'0", 0",9'6.000000000000002",5'0", 10'0",9'6.000000000000002",5'0" ); EndGroup; Quote Link to comment
Pat Stanford Posted February 18, 2008 Share Posted February 18, 2008 Check out the section of the VS Function Reference on Object-Walls. GetWallPeaks and GetNumWallPeaks will get you a lot of information on non rectangular walls. Pat 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.