Jump to content
Sign in to follow this  
lostboy

3d Points

Recommended Posts

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.

Share this post


Link to post

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;

Share this post


Link to post

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

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